JQ = $;  //rename $ function

	JQ(document).ready(function(){ 
				JQ("#parentoffer").wslide({
					width: 438,
					height: 131,
					autolink: false,
					fade: true,
					duration: 2000,
					horiz:false					
				});
				startscroll();
 				
	});


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(){
 document.getElementById('l'+ix).click();				
 ix++;
 if(ix>document.getElementById('parentoffer').getElementsByTagName('li').length){ix=1;}
 window.setTimeout('startscroll()',5000);
}


