
function inserthomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty,sFlashName,iWidth,iHeight)
   {
   	var obj;
	obj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ iWidth +'" height="'+ iHeight +'">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/'+ sFlashName +'" />';
	obj += '<param name="wmode" value="transparent" />';
	obj += '<param name="quality" value="high" />';
	obj += '<param name="FlashVars" value="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty='+ ctmPath +'/xml/'+ sProperty +'_FG.xml"/>';	
	obj += '<embed src="'+ ctmPath +'/media/'+ sFlashName +'" wmode="transparent" FlashVars="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty='+ ctmPath +'/xml/'+ sProperty +'_FG.xml" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  width="'+ iWidth +'" height="'+ iHeight +'"></embed>';
	obj +=  '</object>';
	document.write(obj);
   }

function insertPhotoGallery(cmsPath,sProperty)
   {
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="470" height="470" id="photogallery" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + cmsPath +'/media/photogallery.swf" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<PARAM NAME=FlashVars VALUE="sproperty=' + cmsPath +'/xml/' + sProperty + '_pg.xml"/>');
	document.write('<embed src="' + cmsPath +'/media/photogallery.swf" FlashVars="sproperty=' + cmsPath +'/xml/' + sProperty + '_pg.xml" menu="false" quality="high" bgcolor="#ffffff" width="470" height="470" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }
 
  function insertprophomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty,sFlashName,iWidth,iHeight)
   {
   	alert (iSpeed);
   	var obj;
	obj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+ iWidth +'" height="'+ iHeight +'">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/'+ sFlashName +'" />';
	obj += '<param name="wmode" value="transparent" />';
	obj += '<param name="quality" value="high" />';
	obj += '<param name="FlashVars" value="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty='+ ctmPath +'/xml/'+ sProperty +'_FG.xml"/>';	
	obj += '<embed src="'+ ctmPath +'/media/'+ sFlashName +'" wmode="transparent" FlashVars="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty='+ ctmPath +'/xml/'+ sProperty +'_FG.xml" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"  width="'+ iWidth +'" height="'+ iHeight +'"></embed>';
	obj +=  '</object>';
	document.write(obj);
   }

 function insertspaceplaner(fpImage)
{
	//alert(fpImage)
var insertsp;
insertsp = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="980" height="615" id="Furniture_placement_v3" align="middle">';
insertsp += '<param name="allowScriptAccess" value="sameDomain" />';
insertsp += '<param name="movie" value="../media/SpacePlanner.swf" />';
insertsp += '<param name="menu" value="false" /><param name="quality" value="best" />';
insertsp += '<param name="bgcolor" value="#ffffff" />';
insertsp += '<param name="wmode" value="transparent" />';
insertsp += '<PARAM NAME=FlashVars VALUE="floorplan=' + fpImage + '">';
insertsp += '<embed src="../media/SpacePlanner.swf" menu="false" quality="best" FlashVars="floorplan=' + fpImage +  '" bgcolor="#ffffff" width="980" height="615" wmode="transparent" name="Furniture_placement" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
insertsp += '</object>';
//alert(obj);
document.write(insertsp);
}
  
//  
