function EmbedFlash_global(ffox)
	{
		var hasRightVersion = DetectFlashVer(8, requiredMinorVersion, requiredRevision);
		if(hasRightVersion) {  // if we've detected an acceptable version			
			
			
			var fo ='<object type="application/x-shockwave-flash" data="/raymondcorp/fm3/fm3.swf" width="119" height="450">'
			+ '<param name="movie" value="/raymondcorp/fm3/fm3.swf" />'
			+ '<param name="quality" value="high" />'
			+ '<param name="scale" value="noscale" />'
			+ '<param name="salign" value="lt" />' 
			+ '<param name="wmode" value="transparent" />'
			+ '<param name="swliveconnect" value="true" />'
			+ '<param name="bgcolor" value="#FF0000" /> '
			+ '<param name="flashvars" value="frunderXmlFile=/raymondcorp/fm3/config_global.xml&openval=0&firefox_flag='+ ffox+ '">'
			+ '</object>';			
			document.getElementById("navcontainer").innerHTML = fo;			
		}		
	}
	
function embedFlash_Product(num,ffox)
	{
		var hasRightVersion = DetectFlashVer(8, requiredMinorVersion, requiredRevision);
		if(hasRightVersion) {  // if we've detected an acceptable version			
		var fo = '<object type="application/x-shockwave-flash" data="/raymondcorp/fm3/fm3.swf" width="119" height="450" id="fm3">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="/raymondcorp/fm3/fm3.swf" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="scale" value="noscale" />'
		+ '<param name="salign" value="lt" />'
		+ '<param name="wmode" value="transparent" />'
		+ '<param name="swliveconnect" value="true" />'
		+ '<param name="bgcolor" value="#FF0000" />'
		+ '<param name="flashvars" value="frunderXmlFile=/raymondcorp/fm3/config_group' + num + '.xml&openval=1&firefox_flag='+ ffox+ '">'
		+ '</object>';
		document.getElementById("navcontainer").innerHTML = fo;
		}
	}

	
function EmbedFlash_parts(num,ffox)
	{
		var hasRightVersion = DetectFlashVer(8, requiredMinorVersion, requiredRevision);
		if(hasRightVersion) {  // if we've detected an acceptable version			
			
			
			var fo ='<object type="application/x-shockwave-flash" data="/fm3/fm3.swf" width="119" height="675">'
			+ '<param name="allowScriptAccess" value="sameDomain" />'
			+ '<param name="movie" value="/fm3/fm3.swf" />'
			+ '<param name="quality" value="high" />'
			+ '<param name="scale" value="noscale" />'
			+ '<param name="salign" value="lt" />' 
			+ '<param name="wmode" value="transparent" />'
			+ '<param name="swliveconnect" value="true" />'
			+ '<param name="bgcolor" value="#FF0000" /> '
			+ '<param name="flashvars" value="frunderXmlFile=/fm3/config_global_parts.xml&openval=0&firefox_flag='+ ffox+ '">'
			+ '</object>';			
			document.getElementById("navcontainer").innerHTML = fo;			
		}		
	}
	
	
function embedFlash_HomePage(filename, imagevar,opera)
	{
		var hasRightVersion = DetectFlashVer(8, requiredMinorVersion, requiredRevision);
		
		if(hasRightVersion && opera == 0) {  // if we've detected an acceptable version
		var fo = '<object type="application/x-shockwave-flash" data="Flash/' + filename + '" width="439" height="454" id="homepage">'             
        + '<param name="movie" value="Flash/' + filename + '" />' 
        + '<param name="quality" value="high" />'
		+ '<param name="bgcolor" value="#ffffff" />'
        + '<param name="wmode" value="transparent" />'
        + '</object>';
		document.getElementById("DefaultFlash").innerHTML = fo;				
		}
		else
		{
			// Can we set the image size here rather than on index, and/or can we set the diplay attribute here
			var newimage = 'flash/' + imagevar;
			var fo = '<img id="hpimage" src="'+newimage+'" style="width:439px; height:454px; padding:0; margin:0;border:0;">';
			//var newimage = "images/blank_line.jpg";
			//document.getElementById("hpimage").src=newimage;\
			document.getElementById("DefaultFlash").innerHTML = fo;
			if(opera == 0)
			{
			window.open('no_flash.cfm','','width=250,height=150');
			}
		}
				
	}	
	
	
function embedFlash_HomePageParts(filename, imagevar,opera)
	{
		var hasRightVersion = DetectFlashVer(8, requiredMinorVersion, requiredRevision);
		
		if(hasRightVersion && opera == 0) {  // if we've detected an acceptable version
		var fo = '<object type="application/x-shockwave-flash" data="Flash/' + filename + '" width="652" height="175" id="homepageParts">'             
        + '<param name="movie" value="Flash/' + filename + '" />' 
        + '<param name="quality" value="high" />'
		+ '<param name="bgcolor" value="#ffffff" />'
        + '<param name="wmode" value="transparent" />'
        + '</object>';
		document.getElementById("parts_flash").innerHTML = fo;				
		}
		else
		{
			// Can we set the image size here rather than on index, and/or can we set the diplay attribute here
			var newimage = 'Flash/' + imagevar;
			var fo = '<img id="hpimage" src="'+newimage+'" style="width:652px; height:175px; padding:0; margin:0;border:0;">';
			//var newimage = "images/blank_line.jpg";
			//document.getElementById("hpimage").src=newimage;\
			document.getElementById("parts_flash").innerHTML = fo;
			if(opera == 0)
			{
			window.open('no_flash.cfm','','width=250,height=150');
			}
		}
				
	}	
	
function embedFlash_pop(namevar)
	{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) 
		{  // if we've detected an acceptable version	
		var fo = '<object type="application/x-shockwave-flash" data="js_video.swf" width="400" height="300" id="test2" align="middle">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name=flashvars value="filepath=/raymondcorp/products/video/' + namevar + '">'
		+ '<param name="movie" value="js_video.swf" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="bgcolor" value="ffffff" />'
		+ '</object>'		
		document.getElementById("videoInt").innerHTML = fo;
		}	
		else
		{
			var fo = 'This content requires the Adobe Flash Player 8.0 and higher. Click on the link below to get Flash Player.<br>'
			+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="/raymondcorp/products/flash/fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0"></a>';
			document.getElementById("videoInt").innerHTML = fo;		
		}
}


function playMovie(id)
{
	window.open('/raymondcorp/products/js_viewer/show_video.cfm?playid='+ id,'', 'height=350,width=350');
}

//Interactives	
function activate_flash(name_var, width_var, height_var)
{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version								
		var fo = '<object type="application/x-shockwave-flash" data="' + name_var + '" width="' + width_var + '" height="' + height_var + '" id="intro" align="middle">'
		+ '<param name="allowScriptAccess" value="sameDomain" />'
		+ '<param name="movie" value="' + name_var + '" />'
		+ '<param name="quality" value="high" />'
		+ '<param name="bgcolor" value="#ffffff" />'
		+ '</object>';
		
		document.getElementById("flashInt").innerHTML = fo;		
	}	
	else
	{
		var fo = '<div style=" padding:10px; height:400px; background-color:#FFFFFF; font-size:11px; font-family:Verdana, Arial, Helvetica, sans-serif;">'
		+ 'This content requires the Adobe Flash Player 8.0 and higher. <br /> Click on the link below to get Flash Player.<br>'
		+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="../fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0"></a>'
		+ '<br><a href=javascript:window.close()>Click here to close window</a></div>';
		document.getElementById("flashInt").innerHTML = fo;		
	}
}

function videogallery()
{	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version					
	var fo= '<object type="application/x-shockwave-flash" data="/raymondcorp/js_videogallery.swf" width="317" height="276" id="myMovie" align="middle">'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="movie" value="/raymondcorp/js_videogallery.swf">'
	+ '<param name="quality" value="high" />'
	+ '<param name="bgcolor" value="#ffffff" />'
	+ '<param name="wmode" value="transparent" />'
	+ '</object>';	
	document.getElementById("videogal_left").innerHTML = fo;
}
	else
	{
  		var fo = '<p>This content requires the Adobe Flash Player 8.0 and higher. <br />Click on the link below to get Flash Player.</p>'
		+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="flash/fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0" /></a>';
		document.getElementById("videogal_left").innerHTML = fo;
		document.getElementById("videogal_left").style.width = '400px';
			
	}
}

function videogallery_Right()
{	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {
	//hello  
}
	else
	{
		document.getElementById("videogal_right").style.display = 'none';		
	}
}

function imagegallery(num)
{	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  // if we've detected an acceptable version		
	var fo = '<object type="application/x-shockwave-flash" data="/raymondcorp/products/viewer.swf" width="610" height="300" id="imagesource" align="top">'
	+ '<param name="allowScriptAccess" value="sameDomain" />'
	+ '<param name="movie" value="/raymondcorp/products/viewer.swf" />'
	+ '<param name="bgcolor" value="ffffff" />'
	+ '<param name="wmode" value="transparent" />'
	+ '<param name="flashvars" value="xmlDataPath=xml/productimg_' + num + '.xml">'
	//+ '<embed src="/products/viewer.swf" flashvars="xmlDataPath=xml/productimg_'+ num +'.xml" align="center" width="610" height="300" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer" />'
	+ '</object>';
	document.getElementById("imagegal").innerHTML = fo; 	
	}	
	else
	{
		var fo = '<p>This content requires the Adobe Flash Player 8.0 and higher. <br />Click on the link below to get Flash Player.</p>'
		+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="flash/fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0" /></a>';
		document.getElementById("imagegal").innerHTML = fo;		
		document.getElementById("imagegal").style.width = '400px';
	}
}

function pinwheel()
{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  
	// if we've detected an acceptable version		
	var fo = '<object type="application/x-shockwave-flash" data="../Flash/102Spin.swf" width="570" height="183">'
    + '<param name="movie" value="../Flash/102Spin.swf" />'
    + '<param name="quality" value="high" />'
	'</object>';
	document.getElementById("pin").innerHTML = fo;
	}
	
	else
	{
		var fo = 'This content requires the Adobe Flash Player 8.0 and higher. Click on the link below to get Flash Player.<br />'
		+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="flash/fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0" /></a>';
		document.getElementById("pin").innerHTML = fo;		
	}
}



function spinTruck()
{
	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
	if(hasRightVersion) {  
	// if we've detected an acceptable version		
	var fo = '<object type="application/x-shockwave-flash" data="Flash/spinningTruck_resize.swf" width="300" height="400">'
    + '<param name="movie" value="Flash/spinningTruck_resize.swf" />'
    + '<param name="quality" value="high" />'
	'</object>';
	document.getElementById("spin").innerHTML = fo;
	}
	
	else
	{
		var fo = 'This content requires the Adobe Flash Player 8.0 and higher. Click on the link below to get Flash Player.<br />'
		+ '<a href=http://www.macromedia.com/go/getflash/ target="_blank"><img src="flash/fp_jelly.gif" alt="Get Flash Player" vspace="10" border="0" /></a>';
		document.getElementById("spin").innerHTML = fo;		
	}
}






