var counter = 0
	cl=0
	timermove = null
	iw = null
	stat = null;

var pos = Array (70,71,69,71,69,72)
    tm = Array (3568,3000,100,100,3000,400)

function init()
{
	linemove();
}

function LImage(path,w,h)
{
	stat = window.open('','win1',"status=yes,width="+w+",height="+h+",resizable=no");
	stat.document.open();
    stat.document.write("<title>Image</title><body bgcolor='#ff9900' topmargin='0' leftmargin='0'><img src="+path+" alt=''></img></body>");
	stat.document.close();                                                                                   
}

function PopClose() 
{
  if (stat != null && stat.open) stat.close();
}
    
window.onfocus=PopClose;

function stop()
{
		clearTimeout (timerid1);
}

function start()
{
		timerid1 = setTimeout("hideall()",10000);
}

function nsHover() {
        if(!document.layers) return;


        document.tags.A.color          = "white";
        document.tags.A.backgroundColor= "green";

//      document.tags.A.textDecoration = "underline";  // add underline onMouseOver
//      document.tags.A.textDecoration = "none";       // remove underline onMouseOver
//      document.tags.A.fontWeight     = "bold"        // font weight onMouseOver
//      document.tags.A.fontStyle      = "italic"      // font style onMouseOver
//      document.tags.A.fontSize       = "40"          // new font size onMouseOver

        startHover();
}
	
function getObj(name)
{
  if (document.getElementById)
  {
  		this.obj = document.getElementById(name);
		this.style = document.getElementById(name).style;
  }
  else if (document.all)
  {
		this.obj = document.all[name];
		this.style = document.all[name].style;
  }
  else if (document.layers)
  {
   		this.obj = document.layers[name];
   		this.style = document.layers[name];
  }
}

function screenWidth() {
	if (window.innerWidth) 
		avail = window.innerWidth;
	else 
		avail = document.body.clientWidth;
	return avail
}

function screenHeight() {
	if (window.innerWidth) avail = window.innerHeight; else avail = document.body.clientHeight;
	return avail
}


function show(layr) {	
	obj = new getObj(layr)
	obj.style.visibility = "visible"
}

function hide(layr) {	
	obj = new getObj(layr)
	obj.style.visibility = "hidden"
}

function hideall() {
	hide("news");hide("hc");hide("prj");hide("y1998");hide("y1999");hide("y2000");hide("y2001");hide("info");
}

function linemove() {
	var movedline = new getObj("line")
	posabs = pos[counter]/100*screenWidth()
	movedline.style.left= posabs
	setTimeout("linemove()",tm[counter])	
	counter++
	if (counter == 6) counter =1 
}

function mov() {
		var myobj = new getObj("c");
 		myobj.style.top = screenHeight() - 140;
		show("c");
}



