	/*********************************************/		
    function getEl(id){
        /*** less wordy and good for firefox ***/
        return document.getElementById(id);
    }   
    
    function go(url,targ) {
    	if(!targ) {
	    	window.location = url;
	    }else {
			eval('window.' + targ + '.location = \'' + url + '\'');
	    }
    }
    
    /*********************************************/	
	function activeEmbed(src,id,height,width,divid,zindex,mediaType) {
		if(!height) {
			height = '100%';
		}
		if(!width) {
			width = '100%';
		}
		
		if(!mediaType || mediaType == 'flash') {
			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"  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="https://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>';
		}else if(mediaType == 'video') {
			objd = '<embed height="' + height + '" width="' + width + '" src="' + src + '" menu="false" quality="hight" name="' + id + '" id="' + id + '" wmode="transparent" align="middle" allowScriptAccess="sameDomain"/>';
		}
		
		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;	
	}
	
	/** MOZILLA strikes again, 
	*	When you absolute position Flash in mozilla, the flash menus, buttons, clickables don't move with the rest of the swf
	*	So, onLoad... reposition the absolute position div containing the flash to exactly where it is in the first damn place
	*	
	*/
	function fixMozillaFlash(id,top) {
		getEl(id).style.top = top;
	}
