
var home2imgdon=1;
var home2imgp1=new Image();
var home2imgp2=new Image();
var home2imgp3=new Image();
var home2imgp4=new Image();

home2imgp1.src='images/photo_A.jpg';
home2imgp2.src='images/photo_B.jpg';
home2imgp3.src='images/photo_C.jpg';
home2imgp4.src='images/photo_D.jpg';

var home2imgstr1='<img src="images/photo_A.jpg" width=222 height=206 alt="" border="0">';
var home2imgstr2='<img src="images/photo_B.jpg" width=222 height=206 alt="" border="0">';
var home2imgstr3='<img src="images/photo_C.jpg" width=222 height=206 alt="" border="0">';
var home2imgstr4='<img src="images/photo_D.jpg" width=222 height=206 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 home2initr()
{

	if(IE4B){if((uagent.indexOf('msie 6.') != -1)||(uagent.indexOf('msie 5.5') != -1)){home2imgdon=2;setTimeout('home2dxtrans()',3000);
}
}

	else if(NS6B)

{
setTimeout('home2slides()',7000);
}home2yenif();
}

function home2dxtrans()
{

if(IEold!=true)
{
home2cimg.filters[0].apply();
}home2cimg.src = eval("home2imgp"+home2imgdon+".src");
if(IEold!=true)
{
home2cimg.filters[0].play();
}
home2imgdon++;
if(home2imgdon>4)
{
home2imgdon=1;
}

setTimeout('home2dxtrans()',8000);
}


function home2slides()
{

if(home2imgdon==1)
{
document.home2slideimg.src=home2imgp2.src;
}
if(home2imgdon==2)
{
document.home2slideimg.src=home2imgp3.src;
}
if(home2imgdon==3)
{
document.home2slideimg.src=home2imgp4.src;
}
if(home2imgdon==4)
{
document.home2slideimg.src=home2imgp1.src;
}

home2imgdon++;if(home2imgdon>4)
{
home2imgdon=1;
}
setTimeout('home2slides()',7000);
}

home2yenif = (window.onload) ? window.onload :  new Function;window.onload = function(){	setTimeout("home2initr()",80);};
