// JavaScript Document
	function getFlashVersion() {
	var flashversion = 0;
	if (navigator.plugins && navigator.plugins.length) {
		x = navigator.plugins["Shockwave Flash"];
		if(x){
			if (x.description) {
				y = x.description;
	   			flashversion = y.charAt(y.indexOf('.')-1);
			}
		}
	} else {
		result = false;
	    for(var i = 15; i >= 3 && result != true; i--){
   			execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript');
   			flashversion = i;
   		}
	}
	return flashversion;
}


function detectFlash(ver) {	
	if (getFlashVersion() >= ver) {
		return true;
	} else {
		return false;
	}
}

// then embed the flash

function embedFlash() {
	if (detectFlash(7)) {
		var output = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="526" height="192">';
		output += '<param name="movie" value="flash/headPhoto0.swf" />';
		output += '<param name="quality" value="high" />';
		output += '<embed src="flash/headPhoto0.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="526" height="192" />';
		output += '</object>';
	} else  {var output = '<div style="padding-top:170px;padding-left:293px;">Company Information</div>';
  
		} document.write(output); 
			} embedFlash();

