function get(w){
 return document.getElementById(w);
}
JQ = $;  //rename $ function

	JQ(document).ready(function(){
				JQ("#parent4").wslide({
					width: 201,
					height:308,
					autolink: false,
					fade: true,
					duration: 2000

					
				});

								});


function isIE(){
return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);
}

if(!isIE()){
 HTMLElement.prototype.click = function() {
 var evt = this.ownerDocument.createEvent('MouseEvents');
 evt.initMouseEvent('click', true, true, this.ownerDocument.defaultView, 1, 0, 0, 0, 0, false, false, false, false, 0, null);
 this.dispatchEvent(evt);
 }
}


var ix=1;
function startscroll(){
ix++;
 if(ix>(document.getElementById('parent4').getElementsByTagName("li").length)){ix=1;}
 document.getElementById('l'+ix).click();			
 window.setTimeout('startscroll()',5000);
}

var slideShowSpeed = 6000

var crossFadeDuration = 3

var Pic = new Array() // don't touch this

Pic[0] = 'images/maina.jpg';
Pic[1] = 'images/main2a.jpg';
Pic[2] = 'images/main4a.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.getElementById('SlideShow').filter="blendTrans(duration=2)"
      document.getElementById('SlideShow').filters.blendTrans.Apply()      
  }

   document.getElementById('SlideShow').style.backgroundImage = "url("+preLoad[j].src+")";

  if (document.all){
     document.getElementById('SlideShow').filters.blendTrans.Play()
   }

   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}
function vtour(){
window.open('vtour.html','VT','width=432,height=324,menubar=no,resizable=no,scrollable=no');
}
