function navigate(linkitem) {
   // Let's get the object and check the status using visible variable
   var obj=document.getElementById(linkitem);
   var visible=(obj.style.display != "none");

   // Here we will switch between expand and collapse
   if(visible){
	  obj.style.display = "none";
   }else{
	  obj.style.display = "block";
   }
}

// Suckerfish 

sfHover = function() {
	var sfEls = document.getElementById("menu").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
			}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
			}
		}
	}
if (window.attachEvent) window.attachEvent("onload", sfHover);

// Random CSS Background Image 
var backgroundSrcs = new Array("/city/pworks/startran/images/template/h1.gif","/city/pworks/startran/images/template/h2.gif","/city/pworks/startran/images/template/h3.gif","/city/pworks/startran/images/template/h4.gif") 

function pickimage1() 
{ 
var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))] 
document.getElementById("heading1").style.backgroundImage = "url('" + bgimage + "')";
} 

function pickimage2() 
{ 
var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))] 
document.getElementById("heading2").style.backgroundImage = "url('" + bgimage + "')";
} 

function pickimage3() 
{ 
var bgimage=backgroundSrcs[(Math.round(Math.random()*(backgroundSrcs.length-1)))] 
document.getElementById("heading3").style.backgroundImage = "url('" + bgimage + "')";
} 

document.write ("<link rel=\"stylesheet\" href=\"/city/pworks/projects/css/yesjscss.css\" type=\"text/css\" />");

