var strNav = '';
var imgPath = "";
var imgCount = 1;
var lastTitle = false;
var menuwidth=110
var offsetleft=0
var offsettop=0

var ns4=document.layers?1:0
var ie4=document.all?1:0
var ns6=document.getElementById&&!document.all?1:0

function makeStatic() {
if (ie4) {
	if (document.body.scrollTop < 143){
		object1.style.pixelTop=document.body.scrollTop+offsettop
	}
	else{
		object1.style.pixelTop=document.body.scrollTop
	}
}
else if (ns6) {
	if(window.pageYOffset < 143){
		document.getElementById("object1").style.top=window.pageYOffset+offsettop
	}
	else{
		document.getElementById("object1").style.top=window.pageYOffset
	}
}
//Original: else if (ns4) {eval(document.object1.top=eval(window.pageYOffset+offsettop));}
else if (ns4) 
{
	if (eval(window.pageYOffset) < 143) {
		eval(document.object1.top=eval(window.pageYOffset+offsettop));
	}
	else {
		eval(document.object1.top=eval(window.pageYOffset));
	}

}
setTimeout("makeStatic()",0);
}

//Ravi added for floating
function startMenu(){
if (!document.layers)
document.write('<div id="object1" style="width=140px;height=349px;position:absolute;font: #fff normal "Lucida Grande","Lucida Sans Unicode",geneva,verdana,sans-serif;text-decoration:none;>')

document.write('<span id="object2">');

<!--EDIT BELOW CODE TO YOUR OWN MENU-->
}
function endMenu(){
<!--END OF EDIT-->
document.write('</span>');

if (!document.layers)
document.write('<img src="../images/menubottom.gif" alt="send this page to a friend" width="140" > ');
document.write('</div>')
menu3()
}
function menu3(){
if (ns6||ie4||ns4)
makeStatic()
}


function openMenu(){
	strNav = '<table bgcolor="#EBF5D7"><tr><td><img src="../images/menubottom.gif" alt="send this page to a friend" width="140" height="20" border="0"></td></tr><tr><td align="center" ><a href="../index.htm"><img src="../images/logo7.jpg" alt="send this page to a friend" width="70" height="41" border="0"></a></td></tr><tr><td><img src="../images/menutop.gif" alt="send this page to a friend" width="140" height="20" border="0"></td></tr></table>'
	strNav += '<TABLE style="background:url(../images/nav_bkgd1.jpg) no-repeat right;" width="140" border="0" cellspacing="2" cellpadding="0">';
	strNav += '<TR>' +
		'<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.gif" width="140"></TD>' +
		'</TR>';

}

function closeMenu(){

	strNav +='<TR><TD>&nbsp;</TD></TR><TR style="font-size: 11px;text-decoration:none; color:white;"><TD colspan="2" width="130"> <a href="../search/search.htm" style="font-size: 11px;text-decoration:none; color:white;">SEARCH</a> | <a href="#" onclick="getPageName();" style="font-size: 11px;text-decoration:none; color:white;">COMMENTS</a></TD></TR><TR><TD colspan="2"><img src="' + imgPath +'images/imgDotLine.gif" width="140"></TD> </TABLE>';/*'<TR>'+ 
                '<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.gif"></TD>'+
              '</TR>'+*/''+



	/*strNav +=		   '<TR>' +
				 '<TD height="20" valign="top" width="8"><img name="bul'+imgCount+'" src="' + imgPath +'images/imgLeafDot.gif" >&nbsp;</TD>'+
				 '<TD width="104" class="topicSmall" ><A href="javascript:void(0); onclick=getPageName();" style="text-decoration:none">Comments</A><font color="#598221"> : </font> <A href="../About/AboutSearch.htm" style="text-decoration:none"><font face="Webdings" size="4">L</font></A></TD>'+
'<TR>'+
'<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.gif"></TD>'+
              '</TR>' ;
	strNav += '<TR>'+
				 '<TD height="10" valign="top" width="8"><img src="' + imgPath +'images/arrowTop.gif" ></TD>'+'</TR>'+*/
	/*strNav +=		   '<TR>'+
				 '<TD height="20" valign="top" width="8"><img name="bul'+imgCount+'" src="' + imgPath +'images/imgLeafDot.gif" >&nbsp;</TD>'+
				 '<TD width="104" class="topicSmall" ><A href="#" style="disply:none"></A><A href="javascript:window.scrollTo(0,0)" class="topicSmall" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/imgLeafDotOver.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/imgLeafDot.gif\')">Top</A><font color="#FF9700"> : </font><A href="javascript:history.back();" class="topicSmall" style="text-decoration: none" >Back</A><font color="#FF9700"> : </font><A href="../index.html" class="topicSmall" style="text-decoration: none">Home</A></TD>'+
			   '</TR>'+
			'</TABLE>';*/
	document.write(strNav);
}

function addMenuHead(strHead,strLink){
strNav += '<TR>' +
				 '<TD colspan="2" class="topic"><A href='+ strLink + ' style="text-decoration: none">'+ strHead +'</A></TD>' +
			   '</TR>' +
		  '<TR>' +
				 '<TD colspan="2" class="font3px">&nbsp;</TD>' +
			   '</TR>'


}


function addMainTitle(mtTitle,mlLink){
	
			   strNav += '<TR style="border-bottom: 5px solid #fff;">'+
     /*			 '<TD colspan="2"><img src="' + imgPath +'images/imgDotLine.gif" width="150"></TD>' + */
			   '</TR>'+
			   '<TR style="border-bottom: 5px solid #fff;">'+
				 '<TD height="20" valign="top" width="8"><img name="bul'+imgCount+'" src="' + imgPath +'images/imgLeafDot1.gif" ></TD>'+
				 '<TD width="110" class="navLink1" ><A href="#" style="disply:none"></A><A href="'+ mlLink +'" class="navLink1" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/imgLeafDotOver1.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/imgLeafDot1.gif\')">' + mtTitle + '</A></TD>'+
			   '</TR>';

	imgCount++;
}

function addSubTitle(stTitle,slLink,lastTitle){

if(!lastTitle){

	strNav +=	'<TR>'+ 
                      '<TD align="right" width="20"><img name="bul'+imgCount+'" src="' + imgPath +'images/sub_icon.gif" ></TD>'+
                      '<TD  class="navLink2" valign="top" width="104"><font color="#000000"><A href="'+ slLink +'" class="navLink2" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/sub_iconover1.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/sub_icon.gif\')">'+ stTitle +'</A></font></TD>'+
                '</TR>'+
              '<TR>' +
                      '<TD colspan="2" valign="top"><img  src="' + imgPath +'images/BLANK.gif" width="122" height="3"></TD>'+
              '</TR>';
			  
	}else{
	strNav +=	'<TR>'+ 
                      '<TD align="right" width="10"><img name="bul'+imgCount+'" src="' + imgPath +'images/sub_icon.gif" ></TD>'+
                      '<TD  class="navLink2" valign="top" width="90"><font color="#000000"><A href="'+ slLink +'" class="navLink2" style="text-decoration: none" onMouseOver="mOver(\'bul'+ imgCount +'\',\'images/sub_iconover1.gif\')" onMouseOut="mOut(\'bul'+ imgCount +'\',\'images/sub_icon.gif\')">'+ stTitle +'</A></font></TD>'+
                '</TR>';
	
	}
	
	imgCount++;
}

function openSubMenu(){
	lastTitle = false;
	strNav +='<TR>'+
                '<TD colspan="2" ><img src="' + imgPath +'images/imgDotLine.gif" width="150"></TD>'+
              '</TR>'+
              '<TR>'+
                '<TD ></TD>'+
                '<TD width="100">'+
				  '<TABLE width="100" border="0" cellspacing="2" cellpadding="2">'+
					'<TR>'+
                      '<TD colspan="2"><img src="' + imgPath +'images/BLANK.gif" width="10" height="4"></TD>'+
                    '</TR>';/*+
					'<TR>' +
                      '<TD colspan="2" ><img src="' + imgPath +'images/imgBlackDots.gif" width="122" height="3"></TD>'+
                    '</TR>';*/
					
}

function closeSubMenu(){

strNav += '<TR>'+
              '<TD colspan="2"><img src="' + imgPath +'images/BLANK.gif" width="10" height="4"></TD>'+
              '</TR>'+
		'</TABLE></TD></TR>';
}

function myalert(myVar)
{
alert(myVar);

}

function mOver(name,image){

var rPath=imgPath + image;
	document.images[name].src = rPath;
	
}

function mOut(name,image){
var rPath=imgPath + image;
	document.images[name].src = rPath;;

}



