// JavaScript Document



function inserthomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty)
   {
   	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="721" height="318">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/corphomeflash.swf" />' ;
	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="../media/corphomeflash.swf" 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="721" height="318"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
   }





function insertPropHomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty)
   {
   	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="668" height="225">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/prophomeflash.swf" />' ;
	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="../media/prophomeflash.swf" 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="668" height="225"></embed>';
	obj +=  '</object>';

	document.write(obj);
   }



function insertprophomeflash_1()
{

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="862" height="380">';
obj += '<param name="movie" value="../media/prophomeflash_v1.swf" />' ;
obj  += '<param name="wmode" value="transparent" />';
obj  += '<param name="quality" value="high" />';	
obj += '<embed src="../media/prophomeflash_v1.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="862" height="380"></embed>';
obj +=  '</object>';
document.write(obj);
}



function insertspaceplaner(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_v1.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_v1.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>';
	
	document.write(insertsp);
  }

function insertPhotoGallery(sProperty)
   {
var cmsPath='..'
var soutlinecolor='0x70a09b' 
var splaypausecolor='0xffffff' 
var sthumbnailcolor='0xffffff'
var scontrolcolor='0x184d91'
					    
	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="590" height="500" 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="wmode" value="transparent" />');
	document.write('<param name="outlinecolor" value="0xb7b395" />');
	document.write('<param name="playpausecolor" value="0xcecbb5" />');
	document.write('<param name="thumbnailcolor" value="0x6c6924" />');
	document.write('<param name="controlcolor" value="0x7b7952" />');
	document.write('<PARAM NAME=FlashVars VALUE="sproperty=' + cmsPath +'/xml/' + sProperty + '_pg.xml&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'"/>');
	//document.write('<PARAM NAME=FlashVars VALUE="sproperty=_pg.xml&outlinecolor=0xb7b395&playpausecolor=0xcecbb5&thumbnailcolor=0x6c6924&controlcolor=0x7b7952"/>');
	//outlinecolor='0xb7b395'&playpausecolor='0xcecbb5'&thumbnailcolor='0x6c6924'&controlcolor='0x7b7952'
	
	document.write('<embed src="' + cmsPath +'/media/photogallery.swf" FlashVars="sproperty=' + cmsPath +'/xml/' + sProperty + '_pg.xml&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'" menu="false" wmode="transparent" quality="high"   width="590" height="500" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }
  
  /*
function insertebrochure(sProperty)
  {
	var inserteb;
	inserteb = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1300" height="550" id="ebrochure" align="middle">';
	inserteb += '<param name="allowScriptAccess" value="sameDomain" />';
	inserteb += '<param name="movie" value="../media/ebrochure.swf" />';
	inserteb += '<param name="menu" value="false" /><param name="quality" value="best" />';
	inserteb += '<param name="bgcolor" value="#ffffff" />';
	inserteb += '<param name="wmode" value="transparent" />';
	inserteb += '<PARAM NAME=FlashVars VALUE="sproperty=../xml/' + sProperty + '_ebro.xml">';
	inserteb += '<embed src="../media/ebrochure.swf" menu="false" quality="best" FlashVars="proplogo=' + proplogo + '&sproperty=../xml/' + sProperty + '_ebro.xml" bgcolor="#ffffff" width="1300" height="550" wmode="transparent" name="ebrochure" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	inserteb += '</object>';
	//alert (sProperty)
 	document.write(inserteb);
 	
  }
  */
    function insertebrochure(sProperty)
{
	//alert(sProperty)
	var inserteb;
	inserteb = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="1024" height="768" id="ebrochure" align="middle">';
	inserteb += '<param name="allowScriptAccess" value="sameDomain" />';
	inserteb += '<param name="movie" value="../media/ebrochure.swf" />';
	inserteb += '<param name="menu" value="false" /><param name="quality" value="best" />';
	inserteb += '<param name="bgcolor" value="#ffffff" />';
	inserteb += '<param name="wmode" value="transparent" />';
	inserteb += '<PARAM NAME=FlashVars VALUE="sproperty=../xml/' + sProperty + '_ebro.xml">';
	inserteb += '<embed src="../media/ebrochure.swf" menu="false" quality="best" FlashVars="sproperty=../xml/'+sProperty+'_ebro.xml" bgcolor="#ffffff" width="1024" height="768" wmode="transparent" name="ebrochure" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	inserteb += '</object>';
	//alert(inserteb);
	document.write(inserteb);
}
function insertvideoflash(path)
{
	
	var obj;
	obj = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="320" height="240">';
	obj += '<param name="movie" value="'+ path +'" />';
	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="'+ path +'" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="320" height="240"></embed>';
	obj +=  '</object>';
	document.write(obj);
	//alert(obj)
}

function insertCorporatePhotoGallery(cmsPath,sProperty)
   {
   	var soutlinecolor='0xb7b395';
    	var splaypausecolor='0xcecbb5';
    	var sthumbnailcolor='0x6c6924';
    	var scontrolcolor='0x7b7952'; 
    	var sWidth = 430;
    	var sHeight = 375;
   	   	
	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="430" height="375" id="photogallery" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + cmsPath +'/media/photogallery_Corporate.swf" />');
	document.write('<param name="menu" value="false" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="wmode" value="transparent" />');
	document.write('<PARAM NAME=FlashVars VALUE="cmsPath='+cmsPath+'/xml/&sproperty=' + sProperty + '&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'&width='+ sWidth +'&height='+ sHeight +'"/>');
	document.write('<embed src="' + cmsPath +'/media/photogallery_Corporate.swf" FlashVars="cmsPath='+cmsPath+'/xml/&sproperty=' + sProperty + '&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'&width='+ sWidth +'&height='+ sHeight +'" menu="false" wmode="transparent" quality="high"   width="430" height="375" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	
  }  



