
	/*********************************************/
	function swapFlash(id,file){
		if(is.ie){
			var mov = window.document.getElementById(id+'obj');
		}else{
			var mov = window.document.getElementById(id);
		}
		//obj = eval(movie+"(id)");
		try { 
		   mov.LoadMovie(0,file);
		   mov.play();
		}catch(er) {
			//alert("Flash Version 8 is Required! ->");
		} 
		
	}		
	/*********************************************/		
    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 + '"  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="scale" value="noscale" />';
			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;
		}
	}
	
	/*********************************************/	
	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;	
	}