function overMenu(obj){
        obj.className='level2_over';
        obj.innerHTML = "&raquo; "+ obj.innerHTML;
}

function outMenu(obj){
        obj.className='level2';
        obj.innerHTML = obj.innerHTML.replace("» ", "");
}

function sub(id){
        obj = document.getElementById("sub_"+ id);

        obj.style.display = (obj.style.display == "block") ? "none" : "block";
}


function init(){


        var height = document.getElementById('top').offsetHeight;
        height += document.getElementById('text').offsetHeight;

        height = height < document.body.offsetHeight ? document.body.offsetHeight-4 : height;

        document.getElementById('all').style.height = height +"px";
        if(!document.all){
                if(height < document.body.offsetHeight){
                        document.getElementById('grey_right').style.height = document.body.offsetHeight-200 +"px";
                }
                else{
                        document.getElementById('grey_right').style.height = height-168 +"px";
                }
        }


        var links = document.getElementsByTagName("a");
        for(var i=0; i<links.length; i++){
                var link = links[i];

                if(link.className == "level2"){
                        link.onmouseover = function(){ overMenu(this); this.style.cursor="hand"; }
                        link.onmouseout = function(){ outMenu(this); this.style.cursor="hand"; }
                }
        }
}


// POPUP
function PopUp(url,width,height,scroll,top,left)
{
newWindow = window.open(url,'newwindow',
'width=' + width +
',height=' + height +
',scrollbars=' + scroll +
',toolbar=no,directories=no,status=no,resizable=1,menubar=no',
',top=' + top +
',left=' + left);
}