var tab = -1;



function mvNav(id){

	if(top.frames.whole.frames.nav.document.tab>=0)

     	document.getElementById("sm"+top.frames.whole.frames.nav.document.tab).style.display='none';

	document.getElementById("sm"+id).style.display='';

	top.frames.whole.frames.nav.document.tab = id;

}



function mvNavh(id){

	if(tab>=0)

     	document.getElementById("sm"+tab).style.display='none';

	document.getElementById("sm"+id).style.display='';

	tab=id;

}



var tID,t;

function vuMenu()

{

	top.frames.whole.frames.main.document.getElementById("see").style.visibility="visible";

}



function eteint()

{

	top.frames.whole.frames.main.document.getElementById("see").style.visibility="hidden";

}



function initNav(id,sid){

	if(top.frames.whole.frames.nav.document.getElementById("finav")){

		for(i=0;i<15;i++){

			if(i==sid){

				top.frames.whole.frames.nav.document.getElementById("sm"+id+"_"+sid).style.background="#F9C432";

				top.frames.whole.frames.nav.document.getElementById("st"+id+"_"+sid).style.fontWeight = 'bold';

			}

			else{

				top.frames.whole.frames.nav.document.getElementById("sm"+id+"_"+i).style.background="#FFFFFF";

				top.frames.whole.frames.nav.document.getElementById("st"+id+"_"+i).style.fontWeight = 'normal';

			}

		}

		top.frames.whole.frames.nav.document.getElementById("sm"+id).style.display='';

	}

	else

		setTimeout('initNav('+id+','+sid+');',300);

	top.frames.whole.frames.nav.document.stsid =sid;

	top.frames.whole.frames.nav.document.tab = id;

}



function rollOn(id,sid){

if(top.frames.whole.frames.nav.document.stsid!=sid)

	top.frames.whole.frames.nav.document.getElementById("sm"+id+"_"+sid).style.background="#F9C432";



}



function rollOut(id,sid){

if(top.frames.whole.frames.nav.document.stsid!=sid)

	top.frames.whole.frames.nav.document.getElementById("sm"+id+"_"+sid).style.background="#FFFFFF";

}



function rollOnh(id,sid){

	document.getElementById("sm"+id+"_"+sid).style.background="#F9C432";



}



function rollOuth(id,sid){

	document.getElementById("sm"+id+"_"+sid).style.background="#FFFFFF";

}



function playWMPClip(playerId) {

	document.all[playerId].play();

}



function playRealClip(playerId) {

	document.all[playerId].doPLay();

}



function playQtClip(playerId) {

	document.all[playerId].play();

}



function submitTo(uri) {

	document.userForm.action=uri;

	document.userForm.submit();

}



function submitToTarget(uri, main) {

	document.userForm.action=uri;

	document.userForm.target=main;

	document.userForm.submit();

}

function PopUpImage(src, w, h){
	var d = new Image;
	
	d.src=src;
	//if ( parent.p ) { p.close(); }
	p=window.open( "", null, 'width='+(w+0)+', height='+(h+0)+', scrollbars=no,status=no,toolbar=no,menubar=no,location=no');
	p.document.write('<head><title>Big Image</title></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" bgcolor="#FFFFFF">');
	p.document.write("<a href='javascript:window.close()'><img border=0 src='"+src+"' alt='close'></a></body>")
	p.focus();
}

function popupcentree(url,w,h) {
	var top=(screen.height-h)/2;
	var left=(screen.width-w)/2;
	window.open(url,"","top="+top+",left="+left+",width="+w+",height="+h+",status=0,scrollbars=1");
}

function NewWindow(page, popW, popH) {
	window.open(page,'','width='+popW+',height='+popH+',top=80, left=250');
}
function NewWindowScroll(page, popW, popH){
	window.open(page,'','width='+popW+',height='+popH+',top=80, left=250, scrollbars=yes');
}

		

