
var twoimgdon=1;
var twoimgp1=new Image();
var twoimgp2=new Image();
var twoimgp3=new Image();

twoimgp1.src='images/gallary-images/two/04.jpg';
twoimgp2.src='images/gallary-images/two/05.jpg';
twoimgp3.src='images/gallary-images/two/06.jpg';

var twoimgstr1='<img src="images/gallary-images/two/04.jpg" width=172 height=140 alt="" border="0">';
var twoimgstr2='<img src="images/gallary-images/two/05.jpg" width=172 height=140 alt="" border="0">';
var twoimgstr3='<img src="images/gallary-images/two/06.jpg" width=172 height=140 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 twoinitr()
{

	if(IE4B){if((uagent.indexOf('msie 7.') != -1)||(uagent.indexOf('msie 6.') != -1)||(uagent.indexOf('msie 5.5') != -1)){twoimgdon=2;setTimeout('twodxtrans()',3000);
}
}

	else if(NS6B)

{
setTimeout('twoslides()',4000);
}twoyenif();
}

function twodxtrans()
{

if(IEold!=true)
{
twocimg.filters[0].apply();
}twocimg.src = eval("twoimgp"+twoimgdon+".src");
if(IEold!=true)
{
twocimg.filters[0].play();
}
twoimgdon++;
if(twoimgdon>3)
{
twoimgdon=1;
}

setTimeout('twodxtrans()',8000);
}


function twoslides()
{

if(twoimgdon==1)
{
document.twoslideimg.src=twoimgp2.src;
}
if(twoimgdon==2)
{
document.twoslideimg.src=twoimgp3.src;
}
if(twoimgdon==3)
{
document.twoslideimg.src=twoimgp1.src;
}

twoimgdon++;if(twoimgdon>3)
{
twoimgdon=1;
}
setTimeout('twoslides()',4000);
}

twoyenif = (window.onload) ? window.onload :  new Function;window.onload = function(){	setTimeout("twoinitr()",80);};
