var width = screen.width;
var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+((!(1152-width))*4)+((!(1280-width))*5));

if(!(res))
res = 1;

if (res=='2') // 800 X 600
res=33

if (res=='3') // 1024 X 768
res=33

if (res=='4') // 1152 X 864
res=97

if (res=='5') // 1280 X 720
res=162


M=false;
N=false;
app=navigator.appName.substring(0,1);
if (app=='N') N=true; else M=true;

  
function showconfig(obj,num){

	obj=document.getElementById(obj.id);
	
	if(M){
	
	spanmenu.style.top = getY(obj)+6;
	}else{
	
	spanmenu.style.top = getY(obj)-4;
	}
	spanmenu.style.left =getX(obj)-3;


	spanmenu.style.display='block';

	spanmenu.onmouseover=function(){
	 spanmenu.style.display='block';
	
	}
	for(i=0;i<spanmenu.getElementsByTagName("span").length;i++){
	spanmenu.getElementsByTagName("span")[i].style.display="none";
	}
	spanmenu.getElementsByTagName("span")[num].style.display="block";
		//menuid.style.display='';
}

function getY( oElement )
{
	var iReturnValue = 0;
	while( oElement != null ) {
	iReturnValue += oElement.offsetTop;
	oElement = oElement.offsetParent;
	
	}
	return iReturnValue;
}


function getX( oElement )
{


	var iReturnValue = 0;
	while( oElement != null ) {
	iReturnValue += oElement.offsetLeft;
	oElement = oElement.offsetParent;
	
	}
	return iReturnValue;
}



sfHover = function() {
		var sfEls = document.getElementById("spanmenu").getElementsByTagName("A");
		
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseout=function() {
			
			spanmenu.style.display='none';
		}

	}

}
if (window.attachEvent) window.attachEvent("onload", sfHover);


if(N){
onload=sfHover;
}

