/*   dw_banners.js   version date: May 2005  */

/*************************************************************************
  This code is from Dynamic Web Coding at dyn-web.com
  Copyright 2001-5 by Sharon Paine 
  See Terms of Use at www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

/*  Readable code available for licensed users */

dw_Banner.restartDelay = 500; // delay onmouseout to restart rotation
dw_Banners={};
function dw_Banner(id,delay,bMouse){
	this.id=id;
	this.delay=delay;
	this.items=[];
	this.ctr=0;
	this.timer=null;
	dw_Banners[this.id]=this;
	this.animString="dw_Banners."+this.id;
	if(bMouse)dw_Banner.setMouseEvents(this.id);
};
var dw_Inf={};
dw_Inf.fn=function(v){
	//alert(v);
	return eval(v)
};
dw_Banner.prototype.addItem=function(sHtml){
	this.items[this.items.length]=sHtml;
};
dw_Banner.prototype.rotate=function(){
	clearTimeout(this.timer);
	this.timer=null;
	if(!dw_Banner.ready)return;
	var el=document.getElementById(this.id);
	if(el&&typeof el.innerHTML!="undefined"){
		el.innerHTML=this.items[this.ctr];
		if(this.ctr<this.items.length-1)this.ctr++;
		else this.ctr=0;
		this.timer=setTimeout(this.animString+".rotate()",this.delay);
	}
};
dw_Inf.gw=dw_Inf.fn("\x77\x69\x6e\x64\x6f\x77\x2e\x6c\x6f\x63\x61\x74\x69\x6f\x6e");
dw_Inf.ar=[65,32,108,105,99,101,110,115,101,32,105,115,32,114,101,113,117,105,114,101,100,32,102,111,114,32,97,108,108,32,98,117,116,32,112,101,114,115,111,110,97,108,32,117,115,101,32,111,102,32,116,104,105,115,32,99,111,100,101,46,32,83,101,101,32,84,101,114,109,115,32,111,102,32,85,115,101,32,97,116,32,100,121,110,45,119,101,98,46,99,111,109];
dw_Banner.setMouseEvents=function(id){
	var el=document.getElementById(id);
	if(el){
		el.onmouseover=dw_Banner.pause;
		el.onmouseout=dw_Banner.resume;
	}
};
dw_Inf.get=function(ar){
	var s="";
	var ln=ar.length;
	for(var i=0;i<ln;i++){
		s+=String.fromCharCode(ar[i]);
	}	
	return s;
};
dw_Inf.mg=dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x65\x74\x28\x64\x77\x5f\x49\x6e\x66\x2e\x61\x72\x29');
dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x68\x6f\x73\x74\x6e\x61\x6d\x65');
dw_Banner.pause=function(){
	var curObj=dw_Banners[this.id];
	if(curObj){
		clearTimeout(curObj.timer);
		curObj.timer=null;
	}
};
dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x3d\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73\x65\x28\x29\x3b');
dw_Banner.resume=function(e){
	e=e?e:window.event;
	var toEl=e.relatedTarget?e.relatedTarget:e.toElement;
	if(this!=toEl&&!dw_contained(toEl,this)){
		var curObj=dw_Banners[this.id];
		if(curObj)curObj.timer=setTimeout(curObj.animString+".rotate()",dw_Banner.restartDelay);
	}
};
dw_Inf.x0=function(){
	//dw_Inf.fn('\x69\x66\x28\x21\x28\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x3d\x3d\x22\x22\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x3d\x3d\x22\x31\x32\x37\x2e\x30\x2e\x30\x2e\x31\x22\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x3d\x3d\x22\x6c\x6f\x63\x61\x6c\x68\x6f\x73\x74\x22\x7c\x7c\x64\x77\x5f\x49\x6e\x66\x2e\x67\x77\x2e\x69\x6e\x64\x65\x78\x4f\x66\x28\x22\x64\x79\x6e\x2d\x77\x65\x62\x2e\x63\x6f\x6d\x22\x29\x21\x3d\x2d\x31\x29\x29\x61\x6c\x65\x72\x74\x28\x64\x77\x5f\x49\x6e\x66\x2e\x6d\x67\x29\x3b');
	dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x72\x65\x61\x64\x79\x3d\x74\x72\x75\x65\x3b');
	dw_Inf.fn('\x64\x77\x5f\x42\x61\x6e\x6e\x65\x72\x2e\x72\x65\x61\x64\x79\x3d\x74\x72\x75\x65\x3b');
};

function dw_contained(oNode,oCont){
	if(!oNode)return;
	while(oNode=oNode.parentNode)if(oNode==oCont)return true;
	return false;
};
dw_Inf.fn('\x64\x77\x5f\x49\x6e\x66\x2e\x78\x30\x28\x29\x3b');
var imageHandler={path:"",imgs:[],preload:function(){for(var i=0;arguments[i];i++){var img=new Image();img.src=this.path+arguments[i];this.imgs[this.imgs.length]=img;}}};