
var homeshowimgdon=1;
var homeshowimgp1=new Image();
var homeshowimgp2=new Image();
var homeshowimgp3=new Image();
var homeshowimgp4=new Image();
var homeshowimgp5=new Image();
var homeshowimgp6=new Image();

homeshowimgp1.src='images/home1.jpg';
homeshowimgp2.src='images/home2.jpg';
homeshowimgp3.src='images/home3.jpg';
homeshowimgp4.src='images/home4.jpg';
homeshowimgp5.src='images/home5.jpg';
homeshowimgp6.src='images/home6.jpg';

var homeshowimgstr1='<img src="images/home1.jpg" width=798 height=368 alt="" border="0">';
var homeshowimgstr2='<img src="images/home2.jpg" width=798 height=368 alt="" border="0">';
var homeshowimgstr3='<img src="images/home3.jpg" width=798 height=368 alt="" border="0">';
var homeshowimgstr4='<img src="images/home4.jpg" width=798 height=368 alt="" border="0">';
var homeshowimgstr5='<img src="images/home5.jpg" width=798 height=368 alt="" border="0">';
var homeshowimgstr6='<img src="images/home6.jpg" width=798 height=368 alt="" border="0">';


var uagent;
var opsystem;
var IE4B=false;
var NS6B=false;
var MsWinS=false;
uagent = window.navigator.userAgent.toLowerCase();
opsystem = window.navigator.platform.toLowerCase();
if (opsystem.indexOf('win') != -1)
{MsWinS = true;}
IE4B=(document.all);
NS6B=((document.getElementById)&&(!IE4B))?true:false;

IE5=false;IE4=false;IEold=false;IE5=(uagent.indexOf('msie 5.0') != -1)?true:false;IE4=(uagent.indexOf('msie 4') != -1)?true:false;if(IE5||IE4||(MsWinS==false)){IEold=true;}
function homeshowinitr()
{

	if(IE4B){if((uagent.indexOf('msie 6.') != -1)||(uagent.indexOf('msie 5.5') != -1)){homeshowimgdon=2;setTimeout('homeshowdxtrans()',3000);
}
}

	else if(NS6B)

{
setTimeout('homeshowslides()',5000);
}homeshowyenif();
}

function homeshowdxtrans()
{

if(IEold!=true)
{
homeshowcimg.filters[0].apply();
}homeshowcimg.src = eval("homeshowimgp"+homeshowimgdon+".src");
if(IEold!=true)
{
homeshowcimg.filters[0].play();
}
homeshowimgdon++;
if(homeshowimgdon>6)
{
homeshowimgdon=1;
}

setTimeout('homeshowdxtrans()',8000);
}


function homeshowslides()
{

if(homeshowimgdon==1)
{
document.homeshowslideimg.src=homeshowimgp2.src;
}
if(homeshowimgdon==2)
{
document.homeshowslideimg.src=homeshowimgp3.src;
}
if(homeshowimgdon==3)
{
document.homeshowslideimg.src=homeshowimgp4.src;
}
if(homeshowimgdon==4)
{
document.homeshowslideimg.src=homeshowimgp5.src;
}
if(homeshowimgdon==5)
{
document.homeshowslideimg.src=homeshowimgp6.src;
}
if(homeshowimgdon==6)
{
document.homeshowslideimg.src=homeshowimgp1.src;
}

homeshowimgdon++;if(homeshowimgdon>6)
{
homeshowimgdon=1;
}
setTimeout('homeshowslides()',5000);
}

homeshowyenif = (window.onload) ? window.onload :  new Function;window.onload = function(){	setTimeout("homeshowinitr()",80);};
