// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 3500;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'gifs/kerala-ayurveda.jpg'
Pic[1] = 'gifs/taj-mahal-agra.jpg'
Pic[2] = 'gifs/kerala-backwater2.jpg'


// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
//  End -->

// for background
var wd=screen.width;
if(wd==640)
{
document.write('<BODY BACKGROUND=/gifs/bg-640.gif BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>');
}
if(wd == 800)
{
document.write('<BODY BACKGROUND=gifs/pg-bg-800.gif BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>');
}

if(wd == 1024)
{
document.write('<BODY BACKGROUND=gifs/pg-bg-1024.gif BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINHEIGHT=0 MARGINWIDTH=0>');
}

// for bottom form

<!-- HIDING FROM OTHER BROWSERS
expires = new Date();
expires.setTime (expires.getTime() + 24 * 60 * 60 * 150 * 1000);
function set(){

if ( (document.dataform.S_name.value == "") || (document.dataform.S_email.value == "") || (document.dataform.Description.value == "") || (document.dataform.S_country.value == "") || (document.dataform.S_phone.value == ""))
{
    alert ("Please fill in all the compulsory fields");
    return (false);
}


if(document.dataform.S_email.value.indexOf(" ") >= 0)
{
	alert("Please enter your email-id without any white space character.");
	document.dataform.S_email.focus();
	return (false);
}
if ( (document.dataform.S_email.value.indexOf("@") == -1) || (document.dataform.S_email.value.indexOf(".") == -1) )
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

if (document.dataform.Date_of_Travel.value == "")
{
    alert ("Please fill your Date of Travel");
	document.dataform.Date_of_Travel.focus();
    return (false);
}

if (document.dataform.duration_of_stay.value == "")
{
    alert ("Please fill your Duration of Stay");
	document.dataform.duration_of_stay.focus();
    return (false);
}

if (document.dataform.No_of_person.value=="")
{
	alert("Please enter the no. of persons travelling");
	document.dataform.No_of_person.focus();
	return false;
}

ab=document.dataform.approx_budget.selectedIndex;

if(ab==0)
{
alert("Please select your budget");
document.dataform.approx_budget.focus();
return false;
}

BeforeAtRate = document.dataform.S_email.value.substring(0,document.dataform.S_email.value.indexOf("@"));
AfterAtRate = document.dataform.S_email.value.substring(document.dataform.S_email.value.indexOf("@")+1,document.dataform.S_email.value.length);

if (AfterAtRate.indexOf(".") == -1)
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

middle = AfterAtRate.substring(0, AfterAtRate.indexOf("."))
last = AfterAtRate.substring(AfterAtRate.indexOf(".") + 1,AfterAtRate.length)

if (BeforeAtRate.length == 0 || middle.length == 0 || last.length == 0)
{
	alert("Please enter a valid email-id"); 
	document.dataform.S_email.focus();
	return (false);
}

newCookie = document.dataform.S_name.value;
newCookie +="|"+document.dataform.S_email.value;
newCookie +="|"+document.dataform.S_country.value;
newCookie +="|";
setCookie("newImeshID",newCookie);
return true;
}
function get(){
if( (cookie = getCookie("newImeshID")) > ""){
	Values = cookie.split("|");
	if (Values.length >= 0){
		if (document.dataform.S_name.value.length == 0) document.dataform.S_name.value = Values[0];
		if (document.dataform.S_email.value.length == 0)    document.dataform.S_email.value = Values[1];
		if (document.dataform.S_country.value.length == 0)    document.dataform.S_country.value=Values[2];
	}
}
return true;
}
function setCookie(name, value){
if (value.length > 0)
 document.cookie = name + "=" + escape(value)+ ";"+"expires=" + expires.toGMTString()+";"+"path=/;"
}
function getCookie(Name) {
          var search = Name + "="
          if (document.cookie.length > 0) { // if there are any cookies
                    offset = document.cookie.indexOf(search) 
                    if (offset != -1) { // if cookie exists 
                              offset += search.length 
                              // set index of beginning of value
                              end = document.cookie.indexOf(";", offset) 
                              // set index of end of cookie value
                              if (end == -1) end = document.cookie.length
                              return unescape(document.cookie.substring(offset, end))
                    } 
          }
return "";
}
// STOP HIDING FROM OTHER BROWSERS -->