function getFlashVersion(){
	if (navigator.plugins && navigator.plugins.length){
		x = navigator.plugins["Shockwave Flash"];
		if (x){
			if (x.description){
				y = x.description;
				return y.charAt(y.indexOf('.')-1);
			}
		}
		else return 0;
		if (navigator.plugins["Shockwave Flash 2.0"]){
			return 2;
		}
	}else if (navigator.mimeTypes && navigator.mimeTypes.length){
		x = navigator.mimeTypes['application/x-shockwave-flash'];
	}else{
		return getIEFlashVersion();
	}
}

function getIEFlashVersion(){
	for(var i=8; i>0; i--){
		try{
			var flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
			return i;
		}
		catch(e){
		}
	}
	return 0;
}

function writeFlash(name, headerfooter, width, height){
	if(typeof headerfooter=='undefined') headerfooter = true;
	width  = width || 240;
	height = height || 174;
	document.write('<div align="center">');
	if(getFlashVersion()>=8){
		if(headerfooter) document.write('<img src="/images/rl_spot.gif">');
		document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+width+'" height="'+height+'" id="movie" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="/video/flash8/'+name+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="/video/flash8/'+name+'" quality="high" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>');
	} else {
		document.write('<a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="_NEW"><img src="/images/getflash8.png" border="0"></a>');
	}
	if(headerfooter) document.write('<br /><br /><a href="http://www.recruiterlife.com/interviews/index.asp"><img src="../images/button_recruiters.gif" width="176" height="44" border="0"></a></div>');
}