divHeight=0;
divWidth=0;

norm=991
cut=856
adj=0
presize=100


setTimeout ( "loaded()", 20 );

function loaded(){
	try{
		if(document.getElementsByTagName("body").item(0)!=null){
			resized();
		}else{
			setTimeout ( "loaded()", 10 );
		}
	}catch(err){
		setTimeout ( "loaded()", 10 );
	}	
}
 
function resized(){
	w=document.getElementsByTagName("body").item(0);
	//alert(w)
     if(w.offsetWidth){ 
         divWidth=w.offsetWidth; 
     } 
     else if(d.style.pixelHeight){ 
        divWidth=w.style.pixelWidth; 
     }
     if(divWidth<cut){
     	divWidth = cut
     }
     adj = norm-divWidth
     adj = presize - Math.round(adj/2)
	document.getElementById("main-menu").style.left=adj+"px";
	tmenu=110 - Math.round((norm-divWidth)/2)
   	//alert(tmenu)
rW = divWidth-850
radj = Math.round(rW/2)+20
tadj = Math.round(rW/2)-90
//alert(divWidth+":"+rW +":"+radj)
	document.getElementById("top-menu").style.right=tadj+"px";
	sform=110 - Math.round((norm-divWidth)/2)
	document.getElementById("search-form").style.right=radj+"px";
	
//   	alert(adj)
	setTimeout ( "resized()", 100 );
}

function matchHeight(){ 
     // initialize maximum height value 
 
     var d=document.getElementById("left-info");
     if(d.offsetHeight){ 
         divHeight=d.offsetHeight; 
     } 
     else if(d.style.pixelHeight){ 
        divHeight=d.style.pixelHeight; 
     }
     //adjust for top of page
//alert(divWidth);
     	divHeight=divHeight-550
     // assign height value to element 
     if(divHeight>0){
	document.getElementById("imgpair").style.position="relative";
     	document.getElementById("imgpair").style.top=divHeight+"px";
     }
} 
// execute function when page loads 
//Window.onload=function(){ 
//     matchHeight();
//     alert(divHeight);
//}