<!-- Begin

function InitLogo(){
	InitMenu("shikharlogo",10);
	showLayer("shikharlogo");
}


function InitMenu(LayerName,offset){
	if(document.layers){
		docwidth = (window.innerWidth/2)-495+offset;
		if (window.innerWidth<990) {menuloc = 0} else {menuloc = docwidth;} 
		eval('document.layers["'+LayerName+'"].left = docwidth;')
		alert("1");
	}
	if(document.all){
		docwidth = (document.body.clientWidth/2)-495+offset;
		if (document.body.clientWidth<990) {menuloc = 0} else {menuloc = docwidth;} 
		eval('document.all["'+LayerName+'"].style.left = menuloc;') //(document.body.clientWidth/2)-10;')
		eval('document.all["'+LayerName+'"].style.top = 20;') //(document.body.clientWidth/2)-10;')
		//alert("2");
	}
	if(!document.all && document.getElementById){   //Firefox
		docwidth = (innerWidth/2)-495+offset;
		if (innerWidth<990) {menuloc = 0} else {menuloc = docwidth;} 
		document.getElementById(LayerName).style.left = docwidth;
		//alert(docwidth);
	}
}

function showLayer(layerName) {	
  if (document.getElementById) {
      document.getElementById(layerName).style.visibility = 'visible';
  }
  else if (document.layers && document.layers[layerName] != null) {
      document.layers[layerName].visibility = 'visible';
  }
  else if (document.all) {
      document.all[layerName].style.visibility = 'visible';
  }
  return false;
}


var Picture = new Array(); // don't change this

Picture[1]  = 'banner/adv1.jpg';
Picture[2]  = 'banner/lad1.jpg';
Picture[3]  = 'banner/ski.jpg';
Picture[4]  = 'banner/him1.jpg';
Picture[5]  = 'banner/cul3.jpg';
Picture[6]  = 'banner/pil1.jpg';
Picture[7]  = 'banner/goa3.jpg';
Picture[8]  = 'banner/mou2.jpg';
Picture[9]  = 'banner/train1.jpg';
Picture[10]  = 'banner/wild1.jpg';
Picture[11]  = 'banner/banner2.jpg';
Picture[12]  = 'banner/adv2.jpg';
Picture[13]  = 'banner/lad2.jpg';
Picture[14]  = 'banner/ski2.jpg';
Picture[15]  = 'banner/him2.jpg';
Picture[16]  = 'banner/cul1.jpg';
Picture[17]  = 'banner/pil2.jpg';
Picture[18]  = 'banner/goa2.jpg';
Picture[19]  = 'banner/mou3.jpg';
Picture[20]  = 'banner/train2.jpg';
Picture[21]  = 'banner/wild2.jpg';
Picture[22]  = 'banner/banner3.jpg';
Picture[23]  = 'banner/adv3.jpg';
Picture[24]  = 'banner/lad3.jpg';
Picture[25]  = 'banner/ski.jpg';
Picture[26]  = 'banner/him3.jpg';
Picture[27]  = 'banner/cul2.jpg';
Picture[28]  = 'banner/pil1.jpg';
Picture[29]  = 'banner/goa1.jpg';
Picture[30]  = 'banner/mou1.jpg';
Picture[31]  = 'banner/train1.jpg';
Picture[32]  = 'banner/wild3.jpg';
Picture[33]  = 'banner/him3.jpg';
Picture[33]  = 'banner/banner4.jpg';

var speed1 = 10000;
var slidegap = 1000;
var CrossFadeDuration = 1;

var tss;
var iss;
var pss = Picture.length-1;
var counter = 1;

var preLoad = new Array();
for (iss = 0; iss < pss+1; iss++){
	preLoad[iss] = new Image();
	preLoad[iss].src = Picture[iss];
}

function runSlideShow(){
	for (iss = 1; iss < 12; iss++){
		eval('setTimeout(\'runSlideShow1("'+iss+'")\', '+((iss-1)*slidegap)+');');
	}
}

function runSlideShow1(num){
	if (document.all){
	// Condition is because Box3,4,7,11 have been removed from header page for a while
	if (num!=4 && num!=3 && num!=7 && num!=11){
		eval('document.images.Box'+num+'.style.filter="blendTrans(duration=2)";');
		eval('document.images.Box'+num+'.style.filter="blendTrans(duration='+CrossFadeDuration+')";');
		eval('document.images.Box'+num+'.filters.blendTrans.Apply();');
	}}
	if (num!=4 && num!=3 && num!=7 && num!=11){
	eval('document.images.Box'+num+'.src = preLoad['+counter+'].src;');
	if (document.all) {
		eval('document.images.Box'+num+'.filters.blendTrans.Play();');
	}}
	counter = counter + 1;
	if (counter > (pss)) counter=1;
	tss = setTimeout('runSlideShow1("'+num+'")', speed1);
}

var pic_over = new Image();
pic_over.src = "images/menuleft2.gif";

function doGallery(pic) {
	document["mainpic"].src="images/gallery/big/"+pic;
}



function doButtons(name,pic) {
	document[name].src=pic;
}

function changeImage(imgDocID,imgObjName)
{
	document.images [imgDocID].src=eval(imgObjName + ".src")
}

function ColorTD(elem,color){
	eval('document.all["'+elem+'"].style.backgroundColor="'+color+'"')
}

function init(LayerName,offset){
	if(document.layers){
		docwidth = (window.innerWidth/2)+offset;
		if (docwidth<680) {docwidth = 680} 
		eval('document.layers["'+LayerName+'"].left = docwidth;')
	}
	if(document.all){
		docwidth = (document.body.clientWidth/2)+offset;
		if (docwidth<680) {docwidth = 680} 
		eval('document.all["'+LayerName+'"].style.left = docwidth ;')
	}
	if(!document.all && document.getElementById){
		docwidth = (innerWidth/2)+offset-8;
		if (docwidth<680) {docwidth = 680} 
		document.getElementById(LayerName).style.left = docwidth;
	}
}

function ShowMenu(elem,LayerName,Level,option){
	//if (LayerName != "Search") {HideDiv();}
	//alert(option);
	if (option==1){
		Menu_XOffset = 100	// 180
		Menu_YOffset = -100	// 0
		Menu_Over = null	// Menu currently highlighted
	} else if (option==2){
		Menu_XOffset = 60	// 180
		Menu_YOffset = -100	// 0
		Menu_Over = null	// Menu currently highlighted
	} else {
		Menu_XOffset = 0	// 180
		Menu_YOffset = 0	// 0
		Menu_Over = null	// Menu currently highlighted
	}
	if(document.layers){
		if (Level==0){
			eval('document.layers["'+LayerName+'"].left = findPosX(elem) + Menu_XOffset + 1')
			eval('document.layers["'+LayerName+'"].top = findPosY(elem) + Menu_YOffset')
		}
		eval('document.layers["'+layerName+'"].visibility="visible"')
	}
	if(document.all){
		if (Level==0){
			eval('document.all["'+LayerName+'"].style.left = findPosX(elem) + Menu_XOffset')
			eval('document.all["'+LayerName+'"].style.top = findPosY(elem) + Menu_YOffset')
		}
		eval('document.all["'+LayerName+'"].style.visibility = "visible"')
	}
	if(!document.all && document.getElementById){
		if (Level==0){
			document.getElementById(LayerName).style.left = findPosX(elem) + Menu_XOffset
			document.getElementById(LayerName).style.top = findPosY(elem) + Menu_YOffset
		}
		document.getElementById(LayerName).style.visibility = "visible"
	}
}

function HideMenu(elem,LayerName,Level){

	if(document.layers){
		eval('document.layers["'+layerName+'"].visibility="hidden"')
	}
	if(document.all){
		eval('document.all["'+LayerName+'"].style.visibility = "hidden"')
	}
	if(!document.all && document.getElementById){
		document.getElementById(LayerName).style.visibility = "hidden"
	}
}


function findPosX(obj){
	var curleft=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curleft+=obj.offsetLeft;obj=obj.offsetParent;}}
		else if(document.layers){curleft+=obj.x;}
	return curleft;}

function findPosY(obj){
	var curtop=0;
		if(document.getElementById||document.all){while(obj.offsetParent){curtop+=obj.offsetTop;obj=obj.offsetParent;}}
		else if(document.layers){curtop+=obj.y;}
	return curtop;}


//if(document.layers)document.captureEvents(Event.MOUSEMOVE);document.onmouseup=HideDiv;
function HideDiv(){
	if(document.layers){document.Search.top = -999}
	if(document.all){Search.style.top = -999}
	if(!document.all && document.getElementById){document.getElementById('Search').style.top = -999}
	//changeImage("img5","img51");
}

function checkString(){
	var srchString = "";
	srchString = document.frmSearch.srchstring.value;
	if(srchString.length == 0)
	{
		alert("Please enter atleast one word for the search");
		document.frmSearch.srchstring.focus();
		return false;
	}
	else
		return true;
}


//End -->