startList = function() {//fantasyflash.ru
if (document.all&&document.getElementById) {
menusRoot = document.getElementById("menus");
for (i=0; i<menusRoot.childNodes.length; i++) {
node = menusRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";//osw
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

img0 = new Image();
img0.src = "f1.jpg"/*tpa=http://comstroy.com/f1.jpg*/;

img1 = new Image();
img1.src = "f2.jpg"/*tpa=http://comstroy.com/f2.jpg*/;

img2 = new Image();
img2.src = "f3.jpg"/*tpa=http://comstroy.com/f3.jpg*/;

img3 = new Image();
img3.src = "f4.jpg"/*tpa=http://comstroy.com/f4.jpg*/;

img4 = new Image();
img4.src = "f5.jpg"/*tpa=http://comstroy.com/f5.jpg*/;

img5 = new Image();
img5.src = "f6.jpg"/*tpa=http://comstroy.com/f6.jpg*/;

img6 = new Image();
img6.src = "f7.jpg"/*tpa=http://comstroy.com/f7.jpg*/;

img7 = new Image();
img7.src = "f8.jpg"/*tpa=http://comstroy.com/f8.jpg*/;

var i_strngth=1
var i_image=0

var imageurl = new Array()
imageurl[0] ="f1.jpg"/*tpa=http://comstroy.com/f1.jpg*/
imageurl[1] ="f2.jpg"/*tpa=http://comstroy.com/f2.jpg*/
imageurl[2] ="f3.jpg"/*tpa=http://comstroy.com/f3.jpg*/
imageurl[3] ="f4.jpg"/*tpa=http://comstroy.com/f4.jpg*/
imageurl[4] ="f5.jpg"/*tpa=http://comstroy.com/f5.jpg*/
imageurl[5] ="f6.jpg"/*tpa=http://comstroy.com/f6.jpg*/
imageurl[6] ="f7.jpg"/*tpa=http://comstroy.com/f7.jpg*/
imageurl[7] ="f8.jpg"/*tpa=http://comstroy.com/f8.jpg*/


function showimage() {		
	if(document.all) {
		if (i_strngth <=100) {
			testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
			i_strngth=i_strngth+3
			var timer=setTimeout("showimage()",100)
		}	
		else {
			clearTimeout(timer)
			var timer=setTimeout("hideimage()",1000)
		}
	}	
	
	if(document.layers) {
			clearTimeout(timer)
			document.testimage.document.write("<img src="+imageurl[i_image]+" border=0>")
			document.close()
			i_image++
			if (i_image >= imageurl.length) {i_image=0}	
			var timer=setTimeout("showimage()",2000)
				
	}	
}


function hideimage() {		
	if (i_strngth >=-3) {
		testimage.innerHTML="<img style='filter:alpha(opacity="+i_strngth+")' src="+imageurl[i_image]+" border=0>";
		i_strngth=i_strngth-4
		var timer=setTimeout("hideimage()",160)
	}	
	else {
		clearTimeout(timer)
		i_image++
		if (i_image >= imageurl.length) {i_image=0}
		i_strngth=1
		var timer=setTimeout("showimage()",500)	
	}
}

