
	var divobj = timers = new Array(); // holds div objects
	var	divSize_x = 335,  // default sizes
		divSize_y = 125;
	/*********************************************/	
	is = new BrowserCheck();
	//var myString = new String(window.navigator.appVersion);
	 // alert(is.ns480);
	  //alert(myString.substring(0, 4));

	function BrowserCheck() {
		var b = navigator.appName;
		if (b=="Netscape") this.b = "ns";
		else if (b=="Microsoft Internet Explorer") this.b = "ie";
		else this.b = b;
		this.version = navigator.appVersion;
		this.v       = parseInt(this.version);
		this.ns     =  (this.b=="ns" && this.v>=4);
		var myNS = new String(window.navigator.appVersion);
		this.ns472   = (this.b=="ns" && myNS.substring(0, 4) == "4.72");
		this.ns473   = (this.b=="ns" && myNS.substring(0, 4) == "4.73");
		this.ns474   = (this.b=="ns" && myNS.substring(0, 4) == "4.74");
		this.ns475   = (this.b=="ns" && myNS.substring(0, 4) == "4.75");
		this.ns476   = (this.b=="ns" && myNS.substring(0, 4) == "4.76");
		this.ns477   = (this.b=="ns" && myNS.substring(0, 4) == "4.77");
		this.ns478   = (this.b=="ns" && myNS.substring(0, 4) == "4.78");
		this.ns479   = (this.b=="ns" && myNS.substring(0, 4) == "4.79");
		this.ns480   = (this.b=="ns" && myNS.substring(0, 3) == "4.8");
		this.ns4   = (this.b=="ns" && this.v==4);
		this.ns479   = (this.b=="ns" && myNS.substring(0, 4) == "4.79");
		this.ns480   = (this.b=="ns" && myNS.substring(0, 3) == "4.8");
		this.ns5   = (this.b=="ns" && this.v==5);	
		this.ns610 = (this.b=="ns" && window.navigator.productSub == 20010726);
		this.ns621 = (this.b=="ns" && window.navigator.productSub == 20011128);
		this.ns622 = (this.b=="ns" && window.navigator.productSub == 20020314);
		this.ns623	= (this.b=="ns" && window.navigator.productSub == 20020508);
		this.ns6     = (this.ns610 || this.ns621 || this.ns622 || this.ns623 ? true : false);
		this.ns701 = (this.b=="ns" && window.navigator.productSub == 20021120); 
		this.ns702 = (this.b=="ns" && window.navigator.productSub == 20030208); 
		this.ns710 = (this.b=="ns" && window.navigator.productSub == 20030624 ); 
		this.ns7    = (this.ns701 || this.ns702 || this.ns710 ? true : false);
		this.ie      =  (this.b=="ie" && this.v>=4);
		this.ie4    = (this.version.indexOf('MSIE 4')>0);
		this.ie5    = (this.version.indexOf('MSIE 5')>0);
		this.min   = ( this.ns||this.ie);
		this.msWin = (navigator.userAgent.indexOf("Win")>0);
	}
	/*********************************************/
	function swapFlash(id,file){
		if(is.ie){
			var mov = window.document.getElementById(id+'obj');
		}else{
			var mov = window.document.getElementById(id);
		}
		//obj = eval(mov+"(id)");
		try { 
		   mov.LoadMovie(0,file);
		   mov.play();
		}catch(e) {
		//	alert(e.description);
		//	alert(obj);
		} 
		
	}		
	/*********************************************/		
	function changeImages() {
	  if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
		  document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
		}
	  }
	}	
	/*********************************************/	
	function getContent(id, url){
		try { 
			var iframe = window.document.getElementById(id);		
			iframe.src = url;
		}catch(er) {
			//alert("ERROR!");
		} 
	}
	/*********************************************/		
    function getById(id){
        /*** less wordy and good for firefox ***/
        return document.getElementById(id);
    }   
    /*********************************************/		
    function getEl(id){
        /*** less wordy and good for firefox ***/
        return document.getElementById(id);
    }    
    /*********************************************/	
	function activeEmbed(src,id,height,width,divid,zindex) {
		if(!height) {
			height = '100%';
		}
		if(!width) {
			width = '100%';
		}
		
		if(divid) {
			embd = '<div id="'+ divid + '><embed height="' + height + '" width="' + width + '" src="' + src + '" menu="false" quality="high"  name="' + id + '"  wmode="transparent"  align="middle"  type="application/x-shockwave-flash" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer"/></div>';
		}else {
			embd = '<embed height="' + height + '" width="' + width + '" src="' + src + '" menu="false" quality="high" id="' +  id + 'obj" name="' + id + '"  wmode="transparent"  align="middle"  type="application/x-shockwave-flash" allowScriptAccess="sameDomain" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';
		}
		
		objd = '<object height="' + height + '" width="' + width + '" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"  id="' +  id + '" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" align="middle">';
			objd +=	'<param name="allowScriptAccess" value="sameDomain" />';
			objd +=	'<param name="movie" value="'+ src + '" />';
			objd +=	'<param name="menu" value="true" />';
			objd +=	'<param name="quality" value="high" />';
			objd +=	'<param name="wmode" value="transparent" />';
			objd += embd;
		objd +=	'</object>';
		
		document.write(objd);
	}
	/*********************************************/	
	function ieDisplay(objid,way){
	// Div show/hide (way: 0=hide; 1=show);
		var obj = document.getElementById(objid);
		obj.style.display = (way)?'inline':'none';
	}
	/** hardSwap(location,id)
	* Ignores TempImg catch and just swaps images
	* location = src of image to swap in
	* id = id of image
	*/	
	function hardSwap(location,id) {	
		imageTempOn = new Image();
		imageTempOn.src = location;
		document.images['' + id  + ''].src= imageTempOn.src;
	}
	
	/** hardSwap(location,id)
	* rememebrs what page you are on for navigation
	* 
	* 
	*/
	var TempImg = '';	
	function easySwap(location,id) {	
		if(id != TempImg) {
			imageTempOn = new Image();
			imageTempOn.src = location;
			document.images['' + id  + ''].src= imageTempOn.src;
		}else {
			TempImg = id;
		}
		//fixImgById(id);
	}
	
	/*********************************************/	
	function setClassName(objId, className) {
    	document.getElementById(objId).className = className;
	}
	/*********************************************/	
	function printImage( popupURL){
		return window.open( popupURL, 'pop', 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0' );
	}
	
	/*******************************************************
	* return a working call for the flash object
	*/
	function flashAccess(id) {
		if(navigator.appName.indexOf("Microsoft") != -1) {
			flash = window.eval(id);
		}else {
			flash = window.document.eval(id);
		}
		return flash;	
	}
	/*********************************************/		
	function fixImages() {
		if (document.all && is.msWin) {
			var oImages = document.getElementsByTagName("img");
			for (var i=0;i<oImages.length;i++ ) {
			 if (oImages[i].className=='png') {
			   imageUrl = oImages[i].src;
			   oImages[i].src = 'images/spacer.gif';
			   oImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
			 }
			}
		}
	}	
	/*********************************************/		
	function fixImgById(id) {
		if (is.ie) {
			var oImages = getEl(id);
			imageUrl = oImages.src;
			oImages.src = 'images/spacer.gif';
			oImages.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";			
		}
	}	
	/*********************************************/		
	function filterImages() {
		if(is.ie){ 
		   var oImages = window.document.getElementsByTagName("img");
			for (var i=0;i<oImages.length;i++ ) {
			 if (oImages[i].className=='png') {
			   imageUrl = oImages[i].src;
			   oImages[i].src = 'images/spacer.gif';
			   oImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
			 }
			}
		  var otdImages = window.document.getElementsByTagName("td");
           for (var i=0;i<otdImages.length;i++ ) {
             if (otdImages[i].className=='png') {
               imageUrl = otdImages[i].src;
               otdImages[i].src = 'images/spacer.gif';
               otdImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
             }
           }
           var otableImages = window.document.getElementsByTagName("table");
           for (var i=0;i<otableImages.length;i++ ) {
             if (otableImages[i].className=='png') {
               imageUrl = otableImages[i].src;
               otableImages[i].src = 'images/spacer.gif';
               otableImages[i].style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
             }
           }
           var otableImage = window.document.getElementById("table_clearbg");     
	       if (otableImage) {
	          imageUrl = otableImage.background;
	          otableImage.background = 'images/spacer.gif';
	          otableImage.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+imageUrl+"', sizingMethod='scale')";
	       }
		}
     }
    /*********************************************/		
	function hideOne(id){ieDisplay('table-'+id,0);ieDisplay(id,0);}
	/*********************************************/		
	function hideAll(id){
		var obj;
	
		//strip all numbers
		id=id.replace(/[0-9]/g,'');
	
		// Hide all divs, day by day
		for(x=1;(obj=getEl(id+x));x++){	hideOne(id+x);}
	}
	/*********************************************/		
	function showdiv(id,maxw,maxh){
	/*  id 		= relative div(the 'window'), 
			  with id in format areaname-day
			  day should be the ONLY numbers!!!!!
			DO NOT USE NUMBERS IN THE 'areaname'!
	    inner table id, should be in the form of table-id , id being in the format listed above
	*/
				
		hideAll(id);
		divobj[id]=getEl(id);
	
		// Size, show, and grow!
		divobj[id].style.width = 10;
		divobj[id].style.height= 10;
		ieDisplay(id,1);
		timers[id] = setInterval('growtosize(\''+id+'\',25,12,'+((maxw)?maxw:divSize_x)+','+((maxh)?maxh:divSize_y)+')',1);
	}
	/*********************************************/		
	function growtosize(id,xinc,yinc,maxw,maxh){
		var killme=0,trig=0;
	
		var obj=getEl(id);
		var w=parseInt(obj.style.width);
		var h=parseInt(obj.style.height);
		if(w >= maxw)trig++;
		else	obj.style.width =w + xinc;
		if(h >= maxh)trig++;
		else	obj.style.height=h + yinc;
		if(trig == 2){
			// Show content, and kill growth
			ieDisplay('table-'+id,1);
			clearInterval(timers[id]);
		}
	}
	/***********************************************/