// JavaScript Document
function writeCookie(name, value, hours)
 {
  var expire = "";
  if(hours != null)
  {
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}

function browserVer4Detect()
{
  if(navigator.appVersion.substring(0,1) < 4)
    writeCookie('navver',3,1);
  else
    writeCookie('navver',4,1);
  }
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  if ((obj=MM_findObj(args[i]))!=null) {
   v=args[i+2];
    if (obj.style) { obj=obj.style;   }
	if (navigator.userAgent.indexOf("Netscape6") != -1)
		{ 
		//then who comes here?
		 v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
	obj.visibility=v;
		 v=(v=='show')?'':(v=='hide')?'none':v;
		 obj.display=v;
	} else{
//this where  NS/IE/firefox browsers come
		  v=(v=='show')?'visible':(v=='hide')?'hidden':v; 
	obj.visibility=v;
		 v=(v=='show')?'':(v=='hide')?'none':v;
		 //obj.display=v;	
	
	}
     }
 
}