/* Script: headscript.js
	HeadScript by AKQA v3.1 */
	
	
	function popRemote(winurl,winname,winfeatures)
	{
	    if (winfeatures == null){
	      //var scrheight = window.screen.height;
	      //var scrwidth = window.screen.width;
	      //winfeatures = 'WIDTH=' + scrwidth/2 + ',HEIGHT=' + scrheight/2 + ',SCROLLBARS=1,RESIZABLE=1,DIRECTORIES=0,menubar=0,screenX=' + scrwidth/4 + ',screenY=' + scrheight/4 + ',LEFT=' + scrwidth/4 + ',TOP=' + scrheight/4 ;
	
	      var scrheight = 500;
	      var scrwidth = 720;
	      winfeatures = 'WIDTH=' + scrwidth + ',HEIGHT=' + scrheight + ',SCROLLBARS=1,RESIZABLE=1,DIRECTORIES=0,menubar=0,screenX=' + scrwidth/4 + ',screenY=' + scrheight/4 + ',LEFT=' + scrwidth/4 + ',TOP=' + scrheight/4 ;
	
	    }
	
	    var newwin = window.open(winurl,winname,winfeatures);
	    newwin.focus();
        }
	
	

  			window.addEvent('load', function() {
  				if(parseInt($$('#leftNav .lvl1')[0].offsetHeight)<500){
					$$('#leftNav .lvl1').setStyle('height',500);
				}
				
				colAH = parseInt($('colA').offsetHeight);
				colBH = parseInt($('colB').offsetHeight);
				
				if(colAH>colBH){
					$('colB').setStyle('height',colAH);
					colBH = colAH;
				}else{
					$('colA').setStyle('height',(colBH-5));
					$$('#leftNav .lvl1').setStyle('height',(colBH - 18));
				}
				
				
				colBContentH = parseInt($('pageContentArea').offsetHeight) +20;
				if ( $('footerBanner') != null){
					colBContentH += parseInt($('footerBanner').offsetHeight);
				}
				
				if(($defined(window.ie6) && window.ie6==true) || ($defined(window.ie7) && window.ie7==true)){
					colBContentH += 18;
				}				
				
				if(colBContentH < colBH){
					hDiff = colBH - colBContentH;
					$('pageContentArea').setStyle('height', parseInt($('pageContentArea').offsetHeight) + hDiff);
				}
				
				if ( $('footerBanner') != null){
					$('footerBanner').setStyle('visibility','visible');
				}
				
				as = $$('.lvl1')[0].getChildren('li');
				
				for(x=0; x<as.length; x++){
					as[x].getChildren('div')[0].getElements('a')[0].onmouseover = function(){this.parentNode.addClass('linkContainerOver')};
					as[x].getChildren('div')[0].getElements('a')[0].onmouseout = function(){this.parentNode.removeClass('linkContainerOver')};
				}
				
  			})
  			
			var currTopItem = null;
			var currTopItem2 = null;