﻿    var titletext="Viva Destinations & Tour Pvt. Ltd."
    var thetext=""
    var started=false
    var step=0
    var times=1

    function welcometext()
    {
      times--
      if (times==0)
      {
        if (started==false)
        {
          started = true;
          document.title = titletext;
          setTimeout("anim()",1);
        }
        thetext = titletext;
      }
    }

    function showstatustext(txt)
    {
      thetext = txt;
      setTimeout("welcometext()",4000)
      times++
    }

    function anim()
    {
      step++
      if (step==7) {step=1}
      if (step==1) {document.title='>==='+thetext+'===<'}
      if (step==2) {document.title='=>=='+thetext+'==<='}
      if (step==3) {document.title='>=>='+thetext+'=<=<'}
      if (step==4) {document.title='=>=>'+thetext+'<=<='}
      if (step==5) {document.title='==>='+thetext+'=<=='}
      if (step==6) {document.title='===>'+thetext+'<==='}
      setTimeout("anim()",200);
    }

if (document.title)
window.onload=onload=welcometext

var slideShowSpeed = 5000;
var crossFadeDuration = 3;
var Pic = new Array();
Pic[0] = 'image/banner.jpg'
Pic[1] = 'image/banner2.jpg'
Pic[2] = 'image/banner3.jpg'
Pic[3] = 'image/banner4.jpg'

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);
}


var arImages=new Array();
function Preload() {
 var temp = Preload.arguments; 
 for(x=0; x < temp.length; x++) {
  arImages[x]=new Image();
  arImages[x].src=Preload.arguments[x];
 }
}


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		preloadFlag = true;
	}
}

function js_Query()
{ 
  var rootpath =""
  if(document.getElementById('ctl00_hidrootpath'))
  {
    rootpath = document.getElementById('ctl00_hidrootpath').value;  
  }
  else if(document.getElementById('hidrootpath'))
  {
    rootpath = document.getElementById('hidrootpath').value;  
  }
 
  var url = rootpath  + "Query/QueryPopup.aspx"; 
  //var versionwindow = window.open(url ,'Version','left=200,top=180,height=390,width=450,location=no,toolbar=no,directories=no,status=no,continued from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
  var Query = window.open(url ,'Query','left=200,top=180,height=475,width=550,location=no,toolbar=no,directories=no,status=no,continued from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
  
  if(window.focus)
  {
    Query.focus()
  } 
}

function js_Payment()
{ 
  var rootpath =""
  if(document.getElementById('ctl00_hidrootpath'))
  {
    rootpath = document.getElementById('ctl00_hidrootpath').value;  
  }
  else if(document.getElementById('hidrootpath'))
  {
    rootpath = document.getElementById('hidrootpath').value;  
  }
  var url = rootpath  + "Payment/PaymentPopup.aspx"; 
  //var versionwindow = window.open(url ,'Version','left=200,top=180,height=390,width=450,location=no,toolbar=no,directories=no,status=no,continued from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
  var Payment = window.open(url ,'Payment','left=200,top=180,height=600,width=600,location=no,toolbar=no,directories=no,status=no,continued from previous linemenubar=no,scrollbars=no,resizable=no ,modal=yes');
  
  if(window.focus)
  {
    Payment.focus()
  } 
}


 
    

