if(document.all)
wd = screen.width;
else
wd=window.innerWidth;

var CitArray=new Array('AGRA','VARANASI','DELHI','JAIPUR','SRINAGAR','KHAJURAHO','TAJ MAHAL','RED FORT','JAMA MASJID','HIMALAYAS','HAWA MAHAL','CITY PALACE','SKIING','RAFTING','CAMPING','SAFARIS','TREKKING','ANGLING');

      
if(wd==800)
{
document.write('<BODY BGCOLOR="#FFFFFF" BACKGROUND="gifs/bg-800.gif"><LINK HREF="widthmain.css" REL="stylesheet" TYPE="text/css">');
}else if(wd==1024)
{
document.write('<BODY BGCOLOR="#FFFFFF" BACKGROUND="gifs/bg-1024.gif"><LINK HREF="widthmain.css" REL="stylesheet" TYPE="text/css">');
}else if(wd==1280)
{
document.write('<BODY BGCOLOR="#FFFFFF" BACKGROUND="gifs/bg-1280.gif"><LINK HREF="width1280.css" REL="stylesheet" TYPE="text/css">');
}else
{
document.write('<BODY BGCOLOR="#FFFFFF" BACKGROUND="gifs/bg-1024.gif"><LINK HREF="widthmain.css" REL="stylesheet" TYPE="text/css">');
}

/* for tabbing*/

function st2(t){
	var toggle = document.getElementById('toggle');
var as = toggle.getElementsByTagName('a');
for(j=1;j<=as.length;j++){
		ts=document.getElementById('tt'+j);
		tr = document.getElementById('dd'+j);
		ta = document.getElementById('aa'+j);
	
		if(t==j){
	 			ts.className="tab1";
			  ta.className="srchlink2";
		  ts.style.bordertop="1px solid #EBF6FF";
				//ts.style.borderRight="1px solid #EBF6FF";
				ts.style.borderBottom="1px solid #FFFFFF";
				//ts.style.borderLeft="1px solid #EBF6FF";

		  tr.style["display"]="block";
			 tr.style["visibility"]="visible";

					}
		else{
		  		ts.className="tab2";
				ta.className="srchlink1";
		 	  ts.style.borderBottom="1px solid #EBF6FF";
  		  tr.style["display"]="none";
  		  tr.style["visibility"]="hidden";
		}
	  }

	  }
/*To displaying inside riht navigation (id=txt-rt)just call the following function on the link*/ 






// Photo Gallery Load script.
// With image cross fade effect for those browsers that support it.
// Script copyright (C) 2004-2006 http://www.cryer.co.uk/.
// Script is free to use provided this copyright header is included.
var currentGalleryLink = new Array();
function LoadPicture(pictureName,imageFile,captionID,captionText,content)
{

	if (document.all)
	{
		document.getElementById(pictureName).style.filter="blendTrans(duration=1)";
		document.getElementById(pictureName).filters.blendTrans.Apply();
	}
	document.getElementById(pictureName).src = imageFile;
	if (document.all)
	{
		document.getElementById(pictureName).filters.blendTrans.Play();
	}
	document.getElementById(captionID).innerHTML=captionText;
	// Which link is currently selected?
	for (i=0; i < document.links.length;i++)
	{
	   	var l=document.links[i];
	   	var n=l.getAttributeNode('onclick');
		if (n)
		{
			var onclick = n.value;
	   		if ((onclick) &&
	   			(onclick.indexOf(pictureName) > 0) &&
	   			(onclick.indexOf(imageFile) > 0))
	   		{
			    currentGalleryLink[pictureName] = i;
			    break;
			}
		}
	}
}
function LoadPrev(pictureName)
{
	city_Cnt=city_Cnt--==0?5:city_Cnt;
	LoadCity(city_Cnt);
}
function LoadNext(pictureName)
{
	city_Cnt=city_Cnt++==5?0:city_Cnt;
	LoadCity(city_Cnt);
}
function LoadPrev1(pictureName)
{if(city_Cnt<6)city_Cnt=city_Cnt+6;
	city_Cnt=city_Cnt--==6?11:city_Cnt;
	LoadCity(city_Cnt);
}
function LoadNext1(pictureName)
{if(city_Cnt<6)city_Cnt=city_Cnt+6;
	city_Cnt=city_Cnt++==11?6:city_Cnt;
	LoadCity(city_Cnt);
}
function LoadPrev2(pictureName)
{if(city_Cnt<12)city_Cnt=city_Cnt+12;
	city_Cnt=city_Cnt--==12?17:city_Cnt;
	LoadCity(city_Cnt);
}
function LoadNext2(pictureName)
{if(city_Cnt<12)city_Cnt=city_Cnt+12;
	city_Cnt=city_Cnt++==17?12:city_Cnt;
	LoadCity(city_Cnt);
}

function formwidth()
{
	if(wd==1280)
		{
		document.dataform.S_name.style.width = '200px';
		document.dataform.S_email.style.width = '200px';
		document.dataform.S_phone.style.width = '200px';
		document.dataform.Description.style.width = '310px';
		}
}

var is_input = document.URL.indexOf('?');
var tour_value = '';
var city_Cnt=0;
if (is_input != -1)
{
	addr_str = document.URL.substring(is_input+1, document.URL.length);
	strarr = addr_str.split("&");
	var param_name = unescape((strarr[0].split("="))[0]);
	if(param_name == "tour")
	{
		tour_value = unescape((strarr[0].split("="))[1]);
		tour_value = tour_value.replace(/\+/g," ");
	}
	for(var i=0;i<CitArray.length;i++){
		if(CitArray[i]==tour_value.toUpperCase()){
			city_Cnt=i;
		}
	}
}
function LoadCity(CName){
	city_Cnt=CName;
	if (CName==0)
	{
		st2('1');
		LoadPicture('EmilyGallery', 'gifs/tajmahalindia.jpg', 'EmilyGalleryCaption', 'Taj Mahal - Agra','Agra');
	}
	else if (CName==1)
	{
		st2('2');
		LoadPicture('EmilyGallery', 'gifs/saddhu-varanasi.jpg', 'EmilyGalleryCaption', 'Holy Saddhu - Varanasi','Varanasi');
	}
	
	else if (CName==2)
	{
		st2('3');
		LoadPicture('EmilyGallery', 'gifs/lotus-temple.jpg', 'EmilyGalleryCaption', 'Lotus Temple - Delhi','Delhi');
	}
	else if (CName==3)
	{
		st2('4'); 
		LoadPicture('EmilyGallery', 'gifs/amber-palace-jaipur.jpg', 'EmilyGalleryCaption', 'Amber Palace - Jaipur','Jaipur');
	}
	else if (CName==4)
	{
		st2('5');
		LoadPicture('EmilyGallery', 'gifs/dal-lake.jpg', 'EmilyGalleryCaption', 'Dal Lake - Srinagar (Kashmir)','Srinagar');
	}
	else if (CName==5)
	{
		st2('6');
		LoadPicture('EmilyGallery', 'gifs/khajurahosculpture.jpg', 'EmilyGalleryCaption', 'Khajuraho statues - Khajuraho','Khajuraho');
	}
	else if (CName==6)
	{
		st2('1');
		LoadPicture('EmilyGallery', 'gifs/india-taj-mahal.jpg', 'EmilyGalleryCaption', 'Taj Mahal - Agra','Taj Mahal');
	}
	else if (CName==7)
	{
		st2('2');
		LoadPicture('EmilyGallery', 'gifs/redfortdelhi.jpg', 'EmilyGalleryCaption', 'Red Fort - Delhi','Red Fort');
	}
	else if (CName==8)
	{
		st2('3'); 
		LoadPicture('EmilyGallery', 'gifs/jama-masjid-delhi.jpg', 'EmilyGalleryCaption', 'Jama Masjid - Delhi','Jama Masjid');
	}
	else if (CName==9)
	{
		st2('4');
		LoadPicture('EmilyGallery', 'gifs/himalaya-mountain.jpg', 'EmilyGalleryCaption', 'Himalaya Mountain ','Himalayas');
	}
	else if (CName==10)
	{
		st2('5');
		LoadPicture('EmilyGallery', 'gifs/hawa-mahal-jaipur1.jpg', 'EmilyGalleryCaption', 'The palace of Winds (Hawa Mahal) - Jaipur','Hawa Mahal');
	}
	else if (CName==11)
	{
		st2('6');
		LoadPicture('EmilyGallery', 'gifs/citypalacejaipur.jpg', 'EmilyGalleryCaption', 'City Palace - Jaipur ','City Palace');
	}
	else if (CName==12)
	{
		st2('1'); 
		LoadPicture('EmilyGallery', 'gifs/snow-skiing.jpg', 'EmilyGalleryCaption', 'Skiing in Auli','Skiing');
	}
	else if (CName==13)
	{
		st2('2'); 
		LoadPicture('EmilyGallery', 'gifs/rafting-water.jpg', 'EmilyGalleryCaption', 'River Rafting in India','Rafting');
	}
	else if (CName==14)
	{
		st2('3');
		LoadPicture('EmilyGallery', 'gifs/campinginindia.jpg', 'EmilyGalleryCaption', 'Tourist and Guide in Trekkers Camp','Camping');
	}
	else if (CName==15)
	{
		st2('4'); 
		LoadPicture('EmilyGallery', 'gifs/elephantsafari-india.jpg', 'EmilyGalleryCaption', 'Elephant Safari in the wild','Safaris');
	}
	else if (CName==16)
	{
		st2('5'); 
		LoadPicture('EmilyGallery', 'gifs/trekkingindia.jpg', 'EmilyGalleryCaption', 'Trekking in Himalayas','Trekking');
	}
	else if (CName==17)
	{
		st2('6');
		LoadPicture('EmilyGallery', 'gifs/angling.jpg', 'EmilyGalleryCaption', 'Fishing & Angling in india','Angling');
	}
}