// JavaScript Document

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function switchit(list){
	var listElementStyle=document.getElementById(list).style;
	if (listElementStyle.display=="none"){
		listElementStyle.display="block";
	} else {
		listElementStyle.display="none";
	}
}
function JumpToPage(mylink,tab) {
	if (document.getElementById('video_details_box').style.display == "none"){
		shoh('video_chat_box');shoh('video_details_box');
	}
	
	
	MM_goToURL('parent.frames[\'mybox\']',mylink);
	document.getElementById('tab1').className= 'tabClass_off';
	document.getElementById('tab2').className= 'tabClass_off';
	document.getElementById('tab3').className= 'tabClass_off';
	document.getElementById('tab4').className= 'tabClass_off';
	document.getElementById('tab5').className= 'tabClass_off';
	document.getElementById(tab).className= 'tabClass_selected';	
}


function videoList(mylink,tab) {
	MM_goToURL('parent.frames[\'videolist\']',mylink);
	document.getElementById('mTab1').className= 'tabClass_off';
	document.getElementById('mTab2').className= 'tabClass_off';
	document.getElementById('mTab3').className= 'tabClass_off';
	document.getElementById(tab).className= 'tabClass_selected';	
}
function shoh(id) { 
	
	if (document.getElementById) { // DOM3 = IE5, NS6
		if (document.getElementById(id).style.display == "none"){
			document.getElementById(id).style.display = 'block';		
		} else {
			document.getElementById(id).style.display = 'none';			
		}	
	} else { 
		if (document.layers) {	
			if (document.id.display == "none"){
				document.id.display = 'block';
			} else {	
				document.id.display = 'none';
			}
		} else {
			if (document.all.id.style.visibility == "none"){
				document.all.id.style.display = 'block';
			} else {

				document.all.id.style.display = 'none';
			}
		}
	}
}

function showChat() {
	shoh('video_chat_box');shoh('video_details_box');


}
<!--
function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}

function MachakFull(Ie,other){
//Copyright © 1999 m.milicevic machakjoe@netscape.net jjooee@tip.nl
x=screen.availWidth;
y=screen.availHeight;
target = parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));
if((navigator.appVersion.indexOf("Mac")!=-1) &&(navigator.userAgent.indexOf("MSIE")!=-1) &&(parseInt(navigator.appVersion)==4))
window.open(other,"sub",'scrollbars=yes');
if (target >= 4){
	if (navigator.appName=="Netscape"){
    var MachakFull=window.open(other,"MachakFull",'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');
	MachakFull.moveTo(0,0);
	MachakFull.resizeTo(x,y);}
if (navigator.appName=="Microsoft Internet Explorer")
	window.open(Ie,"MachakFull","fullscreen=yes");
	}
	else window.open(other,"sub",'scrollbars=yes');
	}
//-->

