myimages.sort(function() {return 0.5 - Math.random();});

var objGa, degree=fadeAssist=0;
var objGb, degree=fadeAssist=0;
var objGc, degree=fadeAssist=0;
var objGd, degree=fadeAssist=0;
var objGf, degree=fadeAssist=0;

fadeAssist=function (obj, degree){try {obj.filters.alpha.opacity=degree}catch(e){obj.style.filter="alpha(opacity="+degree+")"}}

var fadepica=function(obj){
objGa=obj
if (!document.getElementById&&!document.all)
return;
var tS=document.all? document.all['tmpStylea'] : document.getElementById('tmpStylea')
if (degree<100){
degree+=5
if (objGa.filters&&objGa.filters[0]&&fadeAssist)
fadeAssist(objGa, degree)
else if (typeof objGa.style.MozOpacity=='string')
objGa.style.MozOpacity=degree/101
else if (typeof objGa.style.KhtmlOpacity=='string')
objGa.style.KhtmlOpacity=degree/100
else if (typeof objGa.style.opacity=='string'&&!objGa.filters)
objGa.style.opacity=degree/101
else
tS.disabled=true
setTimeout("fadepica(objGa)", 50)
}
else
tS.disabled=true
}

var fadepicb=function(obj){
objGb=obj
if (!document.getElementById&&!document.all)
return;
var tS=document.all? document.all['tmpStyleb'] : document.getElementById('tmpStyleb')
if (degree<100){
degree+=5
if (objGb.filters&&objGb.filters[0]&&fadeAssist)
fadeAssist(objGb, degree)
else if (typeof objGb.style.MozOpacity=='string')
objGb.style.MozOpacity=degree/101
else if (typeof objGb.style.KhtmlOpacity=='string')
objGb.style.KhtmlOpacity=degree/100
else if (typeof objGb.style.opacity=='string'&&!objGb.filters)
objGb.style.opacity=degree/101
else
tS.disabled=true
setTimeout("fadepicb(objGb)", 50)
}
else
tS.disabled=true
}

var fadepicc=function(obj){
objGc=obj
var tS=document.all? document.all['tmpStylec'] : document.getElementById('tmpStylec')
if (!document.getElementById&&!document.all)
return;
if (degree<100){
degree+=5
if (objGc.filters&&objGc.filters[0]&&fadeAssist)
fadeAssist(objGc, degree)
else if (typeof objGc.style.MozOpacity=='string')
objGc.style.MozOpacity=degree/101
else if (typeof objGc.style.KhtmlOpacity=='string')
objGc.style.KhtmlOpacity=degree/100
else if (typeof objGc.style.opacity=='string'&&!objGc.filters)
objGc.style.opacity=degree/101
else
tS.disabled=true
setTimeout("fadepicc(objGc)", 50)
}
else
tS.disabled=true
}

var fadepicd=function(obj){
objGd=obj
if (!document.getElementById&&!document.all)
return;
var tS=document.all? document.all['tmpStyled'] : document.getElementById('tmpStyled')
if (degree<100){
degree+=5
if (objGd.filters&&objGd.filters[0]&&fadeAssist)
fadeAssist(objGd, degree)
else if (typeof objGd.style.MozOpacity=='string')
objGd.style.MozOpacity=degree/101
else if (typeof objGd.style.KhtmlOpacity=='string')
objGd.style.KhtmlOpacity=degree/100
else if (typeof objGd.style.opacity=='string'&&!objGd.filters)
objGd.style.opacity=degree/101
else
tS.disabled=true
setTimeout("fadepicd(objGd)", 50)
}
else
tS.disabled=true
}

var fadepicf=function(obj){
objGf=obj
if (!document.getElementById&&!document.all)
return;
var tS=document.all? document.all['tmpStylef'] : document.getElementById('tmpStylef')
if (degree<100){
degree+=5
if (objGf.filters&&objGf.filters[0]&&fadeAssist)
fadeAssist(objGf, degree)
else if (typeof objGf.style.MozOpacity=='string')
objGf.style.MozOpacity=degree/101
else if (typeof objGf.style.KhtmlOpacity=='string')
objGf.style.KhtmlOpacity=degree/100
else if (typeof objGf.style.opacity=='string'&&!objGf.filters)
objGf.style.opacity=degree/101
else
tS.disabled=true
setTimeout("fadepicf(objGf)", 50)
}
else
tS.disabled=true
}

setInterval(function(){changea()}, 4000);
setInterval(function(){changeb()}, 5520);
setInterval(function(){changec()}, 6040);
setInterval(function(){changed()}, 7560);
setInterval(function(){changef()}, 8880);

var crossFadeDuration = 3;

var changea=function(obj){
setTimeout(function(){
if (document.all) {
document.images.randa.style.filter="blendTrans(duration=2)";
document.images.randa.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.randa.filters.blendTrans.Apply();
}
if (document.all) {
document.images.randa.filters.blendTrans.Play();
}
document.getElementById('randa').src=myimages[(i++<myimages.length-1? i : i=0)]},30);
}

var changeb=function(obj){
setTimeout(function(){
if (document.all) {
document.images.randb.style.filter="blendTrans(duration=2)";
document.images.randb.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.randb.filters.blendTrans.Apply();
}
if (document.all) {
document.images.randb.filters.blendTrans.Play();
}
document.getElementById('randb').src=myimages[(i++<myimages.length-1? i : i=0)]},30);
}

var changec=function(obj){
setTimeout(function(){
if (document.all) {
document.images.randc.style.filter="blendTrans(duration=2)";
document.images.randc.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.randc.filters.blendTrans.Apply();
}
if (document.all) {
document.images.randc.filters.blendTrans.Play();
}
document.getElementById('randc').src=myimages[(i++<myimages.length-1? i : i=0)]},30);
}

var changed=function(obj){
setTimeout(function(){
if (document.all) {
document.images.randd.style.filter="blendTrans(duration=2)";
document.images.randd.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.randd.filters.blendTrans.Apply();
}
if (document.all) {
document.images.randd.filters.blendTrans.Play();
}
document.getElementById('randd').src=myimages[(i++<myimages.length-1? i : i=0)]},30);
}

var changef=function(obj){
setTimeout(function(){
if (document.all) {
document.images.randf.style.filter="blendTrans(duration=2)";
document.images.randf.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.randf.filters.blendTrans.Apply();
}
if (document.all) {
document.images.randf.filters.blendTrans.Play();
}
document.getElementById('randf').src=myimages[(i++<myimages.length-1? i : i=0)]},30);
}


function showImage_photos(){
	
document.write('<td><style id="tmpStylea">#randa {-moz-opacity:0.00;filter:alpha(opacity=0);opacity:0;-khtml-opacity:0;}<\/style><img name="randa" id="randa" onload="fadepica(this)" src="'+myimages[i++]+'" + border="1" + width="85" + align="middle"></td><td width="15"></td>')

document.write('<td><style id="tmpStyleb">#randb {-moz-opacity:0.00;filter:alpha(opacity=0);opacity:0;-khtml-opacity:0;}<\/style><img name="randb" id="randb" onload="fadepicb(this)" src="'+myimages[i++]+'" + border="1" + width="85" + align="middle"></td><td width="15"></td>')

document.write('<td><style id="tmpStylec">#randc {-moz-opacity:0.00;filter:alpha(opacity=0);opacity:0;-khtml-opacity:0;}<\/style><img name="randc" id="randc" onload="fadepicc(this)" src="'+myimages[i++]+'" + border="1" + width="85" + align="middle"></td><td width="15"></td>')

document.write('<td><style id="tmpStyled">#randd {-moz-opacity:0.00;filter:alpha(opacity=0);opacity:0;-khtml-opacity:0;}<\/style><img name="randd" id="randd" onload="fadepicd(this)" src="'+myimages[i++]+'" + border="1" + width="85" + align="middle"></td><td width="15"></td>')

document.write('<td><style id="tmpStylef">#randf {-moz-opacity:0.00;filter:alpha(opacity=0);opacity:0;-khtml-opacity:0;}<\/style><img name="randf" id="randf" onload="fadepicf(this)" src="'+myimages[i++]+'" + border="1" + width="85" + align="middle"></td>')

}
