// JavaScript Document
var dropCheck = 0;
function show(elid){
	hide(elid);
	document.getElementById(elid).style.visibility = 'visible';	
	document.getElementById(elid).style.height = 'auto';
}

function hide(divId){
	document.getElementById('drop1').style.visibility = 'hidden';
	document.getElementById('drop1').style.height = '0px';
	if(divId!='drop2Sub'){
		document.getElementById('drop2').style.visibility = 'hidden';	
		document.getElementById('drop2').style.height = '0px';
	}
	document.getElementById('drop3').style.visibility = 'hidden';	
	document.getElementById('drop3').style.height = '0px';
	document.getElementById('drop4').style.visibility = 'hidden';
	document.getElementById('drop4').style.height = '0px';
	document.getElementById('drop5').style.visibility = 'hidden';
	document.getElementById('drop5').style.height = '0px';
	document.getElementById('drop6').style.visibility = 'hidden';
	document.getElementById('drop6').style.height = '0px';
	if(divId!='drop2'){
		document.getElementById('drop2Sub').style.visibility = 'hidden';
		document.getElementById('drop2Sub').style.height = '0px';
	}
	clearInterval(document.getElementById(divId).dropIt);
}

function hold(divId){
	clearInterval(document.getElementById(divId).dropIt);
}

function pause(divId){	
	document.getElementById(divId).dropIt = setInterval("hide("+divId+")", 1000);
}

function mainBox(){
	if(document.all){
		var box1Height = document.getElementById('box1').offsetHeight;
		//alert('client '+box1Height);
		var box2Height = document.getElementById('box2').offsetHeight;
		//alert(box2Height);
	} else {
		var box1Height = document.getElementById('box1').offsetHeight;
		//alert(box1Height);
		var box2Height = document.getElementById('box2').offsetHeight;
		//alert(box2Height);
	}
	if(box1Height < box2Height){
		//alert('yes');
		//box1Height = box2Height;
		document.getElementById('box1').style.height = box2Height-20+'px';	
	} else if (box1Height > box2Height){
		document.getElementById('box2').style.height = box1Height-20+'px';	
	}
}

function fixFlash(){
	n=navigator.userAgent;
	w=n.indexOf("MSIE");
	if((w>0)&&(parseInt(n.charAt(w+5))>5)){
		T=["object","embed","applet"];
		for(j=0;j<3;j++){
			E=document.getElementsByTagName(T[j]);
			for(i=0;i<E.length;i++){
				P=E[i].parentNode;
				H=P.innerHTML;
				P.removeChild(E[i]);
				P.innerHTML=H;
			}
		}
	}
}