var link=new Array()
var delay_hide=500
var menuobj;
var menu;
var default_menu_item=-1;
var bw=new lib_bwcheck();
var  SITE_URL = "http://www.koolhere.com/";

link[0]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="2%" height="20px">&nbsp;</td>' 
link[0]+='<td width="15%" height="20px" class="topBand1Sel" >&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'index.html>About Journal</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'reviewers.asp>Reviewers</a>&nbsp;</td><td width="68%">&nbsp;</td></tr></table>';

link[1]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="10%" height="20px">&nbsp;</td>'
link[1]+='<td width="19%" class="topBand1Sel" height="20px">&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'index.html>Current Issue</a>&nbsp;&nbsp;|&nbsp;&nbsp;Ahead of Print&nbsp;</td><td width="65%" height="20px"></td></tr></table>';

link[2]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="23%" height="20px">&nbsp;</td>'
link[2]+='<td width="57%" class="topBand1Sel" height="20px">&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'index.html>Simple Search</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'advancesearch.asp>Advanced Search</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu"  href='+SITE_URL +'imagesearch.asp>Image Search</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'backissues.asp>Year wise Issues</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href="backissuesxml.asp">Year wise Issues (XML)</a></td><td width="20%" height="20px"></td></tr></table>';

link[3]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="27%" height="20px">&nbsp;</td>'
link[3]+='<td width="16%" class="topBand1Sel" height="20px">&nbsp;&nbsp;<a  class="topmenu" href='+SITE_URL +'index.html>Instructions</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'submitarticle.asp>Online Submission</a></td><td width="32%">&nbsp;</td></tr></table>';

link[4]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="47%" height="20px">&nbsp;</td>'
link[4]+='<td width="19%" class="topBand1Sel" height="20px">&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'index.html>For Reviewers</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'contributors.asp>For Contributors</a></td><td width="23%" height="20px">&nbsp;</td></tr></table>';

link[5]='<table border=0 cellpadding=0 cellspacing=0 class="topBand2" width="100%"><tr><td width="55%" height="20px">&nbsp;</td>'
link[5]+='<td width="24%" class="topBand1Sel" height="20px">&nbsp;&nbsp;<a class="topmenu"  href='+SITE_URL +'index.html>Images</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a  class="topmenu" href='+SITE_URL +'sections.asp?id=2;sid=>Reviews</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a  class="topmenu" href='+SITE_URL +'sections.asp?id=3;sid=>Forum</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'sections.asp?id=4;sid=>Clinical Series</a></td><td width="4%">&nbsp;</td></tr></table>';

link[6]='<table border=0 cellpadding="0" cellspacing="0" class="topBand2" width="100%"><tr><td width="38%" height="20px">&nbsp;</td>'
link[6]+='<td width="44%" class="topBand1Sel" align="right"><a class="topmenu" href='+SITE_URL +'index.html>What\'s New</a>&nbsp;&nbsp;|&nbsp;<a class="topmenu" href='+SITE_URL +'alerts.asp>Table of Contents Alerts</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'links.asp>Links</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'sitestatistics.asp>Hits</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" target="blank" href=http://www.jpgm.com/forum>Forum</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'searchmeeting.asp>Conferences</a>&nbsp;&nbsp;</td>';
link[6]+='<td width="10%">&nbsp;</td></tr></table>';

link[7]='<table border=0 cellpadding="0" cellspacing="0" class="topBand2" width="100%"><tr><td width="51%" height="20px">&nbsp;</td>';
link[7]+='<td width="35%" align="right" class="topBand1Sel" height="20px"><a class="topmenu" href='+SITE_URL +'index.html>Addresses</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'index.html>Advertise with us</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'feedback.asp>Feedback</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a class="topmenu" href='+SITE_URL +'joinus.asp>Apply as Referee </a>&nbsp;&nbsp;</td>';
link[7]+='<td width="2%">&nbsp;</td></tr></table>';



function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this;
}
function showHideLayer(obj,visible)
{								
	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;	
	this.css.visibility = visible;
	this.css.top='100px';
	this.css.left='12px';
	if (bw.ie5 ||bw.ie4 || bw.ie6)
		this.css.width='100%';	
	else
		this.css.width='98%';	
	this.css.position="absolute";
}
function writeSubmenu(obj,item)
{								
   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;	
	thecontent=(item==-1)? "" : link[item]
	this.wref.innerHTML=thecontent;
}
function navleftMouseOver(src)
{ 
	src.className="leftnavcellover";
} 
function navleftMouseOut(src)
{ 
	src.className="";
}
function navtabMouseOver(src)
{ 
	src.className="topBand1MO";
} 
function navtabMouseOut(src)
{ 
	src.className="topBand1";
}


function navMouseOver(src,item)
{ 
	if (item != default_menu_item)
	src.className="topBand1MO";	

} 



function navMouseOut(src,lyr)
{ 
	if (lyr!=default_menu_item)
	src.className="topBand1";	
}

function onlpgld(item)
{
	default_menu_item=item;	
	resetTDs(item);
	writeSubmenu("submenu",item);
	showHideLayer("submenu","visible");
}


function navMouseBotOut(src)
{
	src.className="footer";
}


function navMouseBotOver(src)
{
	src.className="pageSub";
}


function menu(src,item)
{ 

	
	default_menu_item = item;
	writeSubmenu("submenu",item);
	showHideLayer("submenu","visible");	
	resetTDs(item);

} 

function resetTDs(item)
{
	var ob;
	for(x=0;x<8;x++)
	{
	obj="m" + x;
 	ob=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	ob.className="topBand1";
	if (x == item)
		{
		ob.className="topBand1Sel";
		}	
	}
}


function writehDetail(obj,nm,cate,sing,dble,chkout,webadd)
	{				

   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false;
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;	

	var det;
	if (sing==0){
		sing="N.A";}
	else{
		sing= sing + " INR";}

	if (dble=="0")
		dble ="N.A"
	else
		dble= dble+ " INR";

	if (webadd != '')
	{
		det='Hotel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>'+nm + '</b><br>Category&nbsp;&nbsp;&nbsp;&nbsp;:<b> '+ cate +'</b><br>Singlebed&nbsp;&nbsp;&nbsp;:<b> '+ sing +'</b><br>Doublebed&nbsp;&nbsp;:<b> '+ dble + '</b><br>Checkout&nbsp;&nbsp;&nbsp;&nbsp;: <b>' + chkout + '</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a target="_blank" href="'+webadd+'">More Details >></a>';
	}
	else
	{
		det='Hotel&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <b>'+nm + '</b><br>Category&nbsp;&nbsp;&nbsp;&nbsp;:<b> '+ cate +'</b><br>Singlebed&nbsp;&nbsp;&nbsp;:<b> '+ sing +'</b><br>Doublebed&nbsp;&nbsp;:<b> '+ dble + '</b><br>Checkout&nbsp;&nbsp;&nbsp;&nbsp;: <b>' + chkout + '</b>';
	}	

	this.wref.innerHTML=det;
}


function writetoObj(obj,curr, valu)
	{	


   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false;
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;	
	this.wref.innerHTML="<b>"+ curr+ valu + "</b>";
}
function openLogo(ClientID)
{
var attributes = 'toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=1,resizable=1,width=550,height=600,left=0,top=0';
sealWin=window.open('http://www.ccavenue.com/verifySeal.jsp?ClientID='+ClientID ,'win',attributes); 
self.name = 'mainWin'; 
}
function openWin(pg)
{

	if (pg.indexOf('special') >= 0 )
		{
		var attributes = 'toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=1,resizable=1,width=800,height=600,left=0,top=0';
		}
	else
		{
		var attributes = 'toolbar=0,location=0,directories=0,status=0, menubar=0,scrollbars=1,resizable=1,width=600,height=400,left=0,top=0';
		}

	sealWin=window.open(pg ,'',attributes); 
	self.name = pg; 
}

function chkgcform(frm)
{
	if (document.gc_form.gc_login.value=='')
	{
		alert("Please enter your Gold Con username");
		return false;
	}
	if (document.gc_form.gc_pswd.value=='')
	{
		alert("Please enter your Gold Con password");
		return false;
	}
	return true;
}
function writetCV(obj,cv,photo)
	{	


   	this.evnt=bw.dom? document.getElementById(obj):bw.ie4?document.all[obj]:bw.ns4?document.layers[obj]:0;
	if(!this.evnt) return false;
	this.css=bw.dom||bw.ie4?this.evnt.style:bw.ns4?this.evnt:0;	
   	this.wref=bw.dom||bw.ie4?this.evnt:bw.ns4?this.css.document:0;	
	this.wref.innerHTML="<img src='gc_images/" + photo + "'><br><br>" + cv;
}
