//script

	var IE = navigator.appVersion.indexOf("MSIE")>0;
	var msieIndex = navigator.appVersion.indexOf("MSIE") + 5;
	var version = parseFloat(navigator.appVersion.substr(msieIndex,3))
	var IE4 = IE && version>=4 && version<5;
	var IE5 = IE && version>=5;
	var Macintosh = navigator.userAgent.indexOf('Mac')>0;
	
	function preload(imgObj,imgSrc) {
		if (document.images) {
			eval(imgObj+' = new Image()')
			eval(imgObj+'.src = "'+imgSrc+'"')
		}
	}
	
	function UI_reloadPage(init) {
		if (init==true) with (navigator)
			{if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
				document.UI_pgW=innerWidth; document.UI_pgH=innerHeight; onresize=UI_reloadPage; }
			}
		else if (innerWidth!=document.UI_pgW || innerHeight!=document.UI_pgH) location.reload();
	}

	UI_reloadPage(true);
	
	function chImg(layer,imgName,imgObj) {
		if (document.images) {
			if (document.layers && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
			else document.images[imgName].src = eval(imgObj+".src")
		}
	}
	
	function pop(desktopURL,windowName,width,height) {
 		if (Macintosh) {
 			if (IE4) { newheight = 17 + height; }
 			else { newheight = height; }
 		}
 		else { newheight = height; }	
 		window.open(desktopURL, windowName, "toolbar=no,location=no,status=yes,menubar=no,scrollbars=no,width="+width+",height="+newheight+",resizable=no" );
	}
	
	function show(id) {
		if (document.getElementById) document.getElementById(id).style.visibility = "visible"
		else if (document.all) document.all[id].style.visibility = "visible"
		else if (document.layers) document.layers[id].style.visibility = "show"
	}

	function hide(id) {
		if (document.getElementById) document.getElementById(id).style.visibility = "hidden"
		else if (document.all) document.all[id].style.visibility = "hidden"
		else if (document.layers) document.layers[id].style.visibility = "hide"
	}
			
	function there(dropdown) {
		var URL = dropdown.options[dropdown.selectedIndex].value;
        if(URL!="") {
            parent.framename.location.href= URL
        }
    }

	function here(dropdown) {
		var URL = dropdown.options[dropdown.selectedIndex].value;
		if(URL!="") {
			document.location.href = URL
		}
	}
	function spawn(dropdown) {
	var URL = dropdown.options[dropdown.selectedIndex].value;
       if(URL!="") {
           window.open(URL);
       }
   }
	

	function RandomImageLong(images,iparams)
	{
	 si = 0;
	 ci=0;
	 cc=0;
	 imageSet = new Array();
	 ei = images.length;
	  for (i=1;i<ei;i++) {
	    if (images.charAt(i) == ' ' || images.charAt(i) == ',') {
	      imageSet[cc] = images.substring(si,i);
	      cc++;
	      si=i+1;
	      }
	    }
	  ind = Math.floor(Math.random() *cc);
	  document.writeln("<img "+iparams+" src="+imageSet[ind]+" alt=\""+imageSet[ind]+"\">");
	}
	
	function RandomImage(images)
	{
	  RandomImageLong(images," ");
	}
	
	function RandomImageLinkLongTarget(images,urls,iparams,hparams)
	{
	 imageSet = new Array();
	 urlSet = new Array();
	 si = 0; 
	 ci=0;
	 cc=0;
	 ei = images.length;
	  for (i=1;i<ei;i++) {
	    if (images.charAt(i) == ' ' || images.charAt(i) == ',') {
	      imageSet[cc] = images.substring(si,i);
	      cc++;
	      si=i+1;
	      }
	    }
	  ind = Math.floor(Math.random() *cc);
	 si = 0; 
	 ci=0;
	 cc=0;
	 ei = urls.length;
	  for (i=1;i<ei && cc <=ind ;i++) {
	    if (urls.charAt(i) == ' ' || urls.charAt(i) == ',') {
	      urlSet[cc] = urls.substring(si,i);
	      cc++;
	      si=i+1;
	      }
	    }
	
	  document.writeln("<a "+hparams+" href=\""+urlSet[ind]+"\"><img "+iparams+" src="+imageSet[ind]+" alt=\""+imageSet[ind]+"\"></a>");
	}
	
	function MM_findObj(n, d) { //v3.6
	  if(document.getElementById)return MZ_findObj(n);
	  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); return x;
	}
	
	function MZ_findObj(n){ //v3.6
	        var x,t; if((n.indexOf("?"))>0&&parent.frames.length){t=n.split("?");
	        x=eval("parent.frames['"+t[1]+"'].document.getElementById('"+t[0]+"')");
	        }else{x=document.getElementById(n)}return x;
	}
	
	function YY_TogLay(daLayer) { //v3.02
	 //copyright (c)1998,2000 yaromat.com
	  if (document.layers||document.all||document.getElementById){
	     var yytl=MM_findObj(daLayer);
	     if (document.layers){
	       yytl.visibility=(yytl.visibility=="hide")?"show":"hide";
	     }
	     if (document.all||document.getElementById){
	       yytl.style.visibility=(yytl.style.visibility=="hidden")?"visible":"hidden";
	     }
	   }
	}
	
	var D = {
		days	:	["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
		months	:	["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
		get		:	function() {
						var now, temp, day, month, date, year
						now   = new Date()
						day   = this.days[now.getDay()]
						month = this.months[now.getMonth()]
						temp  = String(now.getDate())
						date  = temp.length == 1 ? "0" + temp : temp
						year  = now.getFullYear()
						document.write('<span class="date">' + day + ', ' + month + ' ' + date + ', ' + year + '</span>')
					}
	}

