var subclicked =3;
//alert(subclicked);
function shvined(clickval){
	subclicked = clickval;
document.getElementById('s' + clickval).style.backgroundColor='#004A88';

}
function shHov(val,clickval){
	for(i=1;i<=4;i++){
		document.getElementById('s' + i).style.backgroundColor='#50A7DA';
	}
document.getElementById('s' + clickval).style.backgroundColor=val;

	if(subclicked !=0){
		document.getElementById('s' + subclicked).style.backgroundColor='#004A88';
	}
}
function shtd(td,link){
for(i=1;i<=10;i++){
		document.getElementById('v' + i).style.backgroundColor='#B1D8EE';
	}
document.getElementById('v' + td).style.backgroundColor='#004A88';
for(i=1;i<=10;i++){
		document.getElementById('r' + i).className ='innersidelinks';
	}
document.getElementById('r' + link).className='innersidelinksclicked';
}
function shtd1(td,link){
for(i=1;i<=2;i++){
		document.getElementById('m' + i).style.backgroundColor='#B1D8EE';
	}
document.getElementById('m' + td).style.backgroundColor='#004A88';
for(i=1;i<=2;i++){
		document.getElementById('n' + i).className ='innersidelinks';
	}
document.getElementById('n' + link).className='innersidelinksclicked';
}
function vxopen(){
	scrx= screen.width-10;
scry = screen.height-25;
txt= "width=" + scrx + ",height=" + scry
fxwindow = window.open('results/index.htm','fxtreme',txt);
fxwindow.moveTo(0,0);
}
var w,h,pol;
function f_ck(pol,w,h,msg){
scrx= w +10;
scry = h +25;
txt= "width=" + scrx + ",height=" + scry +", title=Hello world";
	fileName = "rooms/" + pol;
//fxwindow = window.open(cnt,'fxtreme',txt);
fxwindow = window.open ("","newWindow","width="+w+",height="+h+",top=0,left=0,addressbar=no,scrollbars=yes");
fxwindow.document.open();
fxwindow.document.write("<html><Title>"+msg+"</Title><body bgcolor=\#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0><table width=100% height=100%><tr><td valign=middle align=center><img src='"+fileName+"' alt='"+msg+"'></td></tr><tr><td valign=middle align=center class='close'><a href='javascript:window.close();'><font face=arial size=2>Close</font></a></td></tr></table></body></html>");
fxwindow.window.moveTo(0,0);
fxwindow.focus();
}