/****
* Ultimate Fade-In Slideshow © Dynamic Drive
* Visit http://www.dynamicdrive.com/
*****/
 
var fadeimages=new Array()
fadeimages[0]=["img/banner1.jpg", "home.html", ""]
fadeimages[1]=["img/banner3.jpg", "home.html", ""]
fadeimages[2]=["img/banner4.jpg", "home.html", ""]
fadeimages[3]=["img/banner6.jpg", "home.html", ""]
fadeimages[4]=["img/banner7.jpg", "home.html", ""]
fadeimages[5]=["img/banner8.jpg", "home.html", ""]

//fadeimages[xx]=["xxxx.jpg", "http://www.______.com", "_new"]

var fadebgcolor="black"

////No editing here//
var fadearray=new Array();
var fadeclear=new Array();
var dom=(document.getElementById);
var iebrowser=document.all;
function fadeshow(_1,_2,_3,_4,_5,_6,_7){
this.pausecheck=_6;
this.mouseovercheck=0;
this.delay=_5;
this.degree=10;
this.curimageindex=0;
this.nextimageindex=1;
fadearray[fadearray.length]=this;
this.slideshowid=fadearray.length-1;
this.canvasbase="canvas"+this.slideshowid;
this.curcanvas=this.canvasbase+"_0";
if(typeof _7!="undefined"){
_1.sort(function(){
return 0.5-Math.random();
});
}
this.theimages=_1;
this.imageborder=parseInt(_4);
this.postimages=new Array();
for(p=0;p<_1.length;p++){
this.postimages[p]=new Image();
this.postimages[p].src=_1[p][0];
}
var _2=_2+this.imageborder*2;
var _3=_3+this.imageborder*2;
if(iebrowser&&dom||dom){
document.write("<div id=\"master"+this.slideshowid+"\" style=\"position:relative;width:"+_2+"px;height:"+_3+"px;overflow:hidden;\"><div id=\""+this.canvasbase+"_0\" style=\"position:absolute;width:"+_2+"px;height:"+_3+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+"\"></div><div id=\""+this.canvasbase+"_1\" style=\"position:absolute;width:"+_2+"px;height:"+_3+"px;top:0;left:0;filter:progid:DXImageTransform.Microsoft.alpha(opacity=10);opacity:0.1;-moz-opacity:0.1;-khtml-opacity:0.1;background-color:"+fadebgcolor+"\"></div></div>");
}else{
document.write("<div><img name=\"defaultslide"+this.slideshowid+"\" src=\""+this.postimages[0].src+"\"></div>");
}
if(iebrowser&&dom||dom){
this.startit();
}else{
this.curimageindex++;
setInterval("fadearray["+this.slideshowid+"].rotateimage()",this.delay);
}
};
function fadepic(_8){
if(_8.degree<100){
_8.degree+=10;
if(_8.tempobj.filters&&_8.tempobj.filters[0]){
if(typeof _8.tempobj.filters[0].opacity=="number"){
_8.tempobj.filters[0].opacity=_8.degree;
}else{
_8.tempobj.style.filter="alpha(opacity="+_8.degree+")";
}
}else{
if(_8.tempobj.style.MozOpacity){
_8.tempobj.style.MozOpacity=_8.degree/101;
}else{
if(_8.tempobj.style.KhtmlOpacity){
_8.tempobj.style.KhtmlOpacity=_8.degree/100;
}else{
if(_8.tempobj.style.opacity&&!_8.tempobj.filters){
_8.tempobj.style.opacity=_8.degree/101;
}
}
}
}
}else{
clearInterval(fadeclear[_8.slideshowid]);
_8.nextcanvas=(_8.curcanvas==_8.canvasbase+"_0")?_8.canvasbase+"_0":_8.canvasbase+"_1";
_8.tempobj=iebrowser?iebrowser[_8.nextcanvas]:document.getElementById(_8.nextcanvas);
_8.populateslide(_8.tempobj,_8.nextimageindex);
_8.nextimageindex=(_8.nextimageindex<_8.postimages.length-1)?_8.nextimageindex+1:0;
setTimeout("fadearray["+_8.slideshowid+"].rotateimage()",_8.delay);
}
};
fadeshow.prototype.populateslide=function(_9,_a){
var _b="";
if(this.theimages[_a][1]!=""){
_b="<a href=\""+this.theimages[_a][1]+"\" target=\""+this.theimages[_a][2]+"\">";
}
_b+="<img src=\""+this.postimages[_a].src+"\" border=\""+this.imageborder+"px\">";
if(this.theimages[_a][1]!=""){
_b+="</a>";
}
_9.innerHTML=_b;
};
fadeshow.prototype.rotateimage=function(){
if(this.pausecheck==1){
var _c=this;
}
if(this.mouseovercheck==1){
setTimeout(function(){
_c.rotateimage();
},100);
}else{
if(iebrowser&&dom||dom){
this.resetit();
var _d=this.tempobj=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);
_d.style.zIndex++;
fadeclear[this.slideshowid]=setInterval("fadepic(fadearray["+this.slideshowid+"])",50);
this.curcanvas=(this.curcanvas==this.canvasbase+"_0")?this.canvasbase+"_1":this.canvasbase+"_0";
}else{
var _e=document.images["defaultslide"+this.slideshowid];
_e.src=this.postimages[this.curimageindex].src;
}
}
this.curimageindex=(this.curimageindex<this.postimages.length-1)?this.curimageindex+1:0;
};
fadeshow.prototype.resetit=function(){
this.degree=10;
var _f=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);
if(_f.filters&&_f.filters[0]){
if(typeof _f.filters[0].opacity=="number"){
_f.filters(0).opacity=this.degree;
}else{
_f.style.filter="alpha(opacity="+this.degree+")";
}
}else{
if(_f.style.MozOpacity){
_f.style.MozOpacity=this.degree/101;
}else{
if(_f.style.KhtmlOpacity){
_f.style.KhtmlOpacity=this.degree/100;
}else{
if(_f.style.opacity&&!_f.filters){
_f.style.opacity=this.degree/101;
}
}
}
}
};
fadeshow.prototype.startit=function(){
var _10=iebrowser?iebrowser[this.curcanvas]:document.getElementById(this.curcanvas);
this.populateslide(_10,this.curimageindex);
if(this.pausecheck==1){
var _11=this;
var _12=iebrowser?iebrowser["master"+this.slideshowid]:document.getElementById("master"+this.slideshowid);
_12.onmouseover=function(){
_11.mouseovercheck=1;
};
_12.onmouseout=function(){
_11.mouseovercheck=0;
};
}
this.rotateimage();
};

