// JavaScript Document


function insertspaceplaner(sGraphic)
{
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="1000" height="615" id="Furniture_placement_v3" align="middle">';
insertsp += '<param name="allowScriptAccess" value="sameDomain" />';
insertsp += '<param name="movie" value="../media/Furniture_placement_crestone.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=' + sGraphic + '">';
insertsp += '<embed src="../media/Furniture_placement_crestone.swf" menu="false" quality="best" FlashVars="floorplan=' + sGraphic +  '" bgcolor="#ffffff" width="1000" 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);
}


/*function inserthomeflash(sProperty)
{
	
var inserthf;
inserthf = '<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="763" height="459">';
inserthf += '<param name="movie" value="../media/newflash_' + sProperty + '.swf" />' ;
inserthf  += '<param name="wmode" value="transparent" />';
inserthf  += '<param name="quality" value="high" />';	
inserthf += '<embed src="../media/newflash_' + sProperty + '.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="763" height="459"></embed>';
inserthf +=  '</object>';
//alert(obj);
document.write(inserthf);
}*/

function inserthomeflash(cmspath,iSpeed,sFade,iRepeat,sproperty)
{	 
		//alert(sproperty);
		//alert(cmspath);
		//alert(iRepeat);
		
	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="724" height="277">';
		obj  += '<param name="movie" value="media/topflash_' + sFade + '.swf" />';
		
		obj  += '<param name="wmode" value="transparent" />';
		obj  += '<param name="FlashVars" value="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=xml/' +sproperty+ '_fg.xml"/>';
		obj  += '<param name="quality" value="high" />';
		obj  += '<embed src="media/topflash_' + sFade + '.swf" wmode="transparent" FlashVars="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=xml/' + sproperty + '_fg.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="724" height="277"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
}

//For TPMG Site


function inserthomeflashTPMG(cmspath,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="464" height="138">';
		obj  += '<param name="movie" value="../media/homeflash.swf" />';
		
		obj  += '<param name="wmode" value="transparent" />';
		obj  += '<param name="FlashVars" value="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/home' +sproperty+ '_fg.xml"/>';
		obj  += '<param name="quality" value="high" />';
		obj  += '<embed src="../media/homeflash.swf" wmode="transparent" FlashVars="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/home' + sproperty + '_fg.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="464" height="138"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
}


function insertPortalflash()
{  

  
 var obj;

obj='<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="570" height="135">';

  obj  += '<param name="movie" value="../templates/portal/top.swf" />';
  obj  += '<param name="wmode" value="transparent" />';
  obj  += '<param name="quality" value="high" />';
  obj  += '<embed src="../templates/portal/top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="135"></embed>';
 obj +=  '</object>';
 
 document.write(obj);
}



function insertAssociationflash(cmspath,iSpeed,sFade,iRepeat)
{	 
		//alert(sproperty);
		//alert(sFade);
		//alert(iRepeat);
		
	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="207" height="396">';
		obj  += '<param name="movie" value="../media/assoinfo_topflash_' + sFade + '.swf" />';
		obj  += '<param name="wmode" value="transparent" />';
		obj  += '<param name="FlashVars" value="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/Asso.xml"/>';
		obj  += '<param name="quality" value="high" />';
		obj  += '<embed src="../media/assoinfo_topflash_' + sFade + '.swf" wmode="transparent" FlashVars="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/Asso.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="207" height="396"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
}


function insertPropHomeflash(imgpath,iSpeed,sFade,iRepeat,sproperty)
{	 
		//alert(iSpeed);
		//alert(sFade);
		//alert(iRepeat);
		
	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="523" height="168">';
		obj  += '<param name="movie" value="../media/prophome_' + sFade + '.swf" />';
		obj  += '<param name="wmode" value="transparent" />';
		obj  += '<param name="FlashVars" value="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/' +sproperty+ '_fg.xml&effect='+ sFade +'"/>';
		obj  += '<param name="quality" value="high" />'; 
		obj  += '<embed src="../media/prophome_' + sFade + '.swf" wmode="transparent" FlashVars="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/' + sproperty + '_fg.xml&effect='+ sFade +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="523" height="168"></embed>';
		//obj  += '<embed src="../media/trial_flash_v1.swf" wmode="transparent" FlashVars="repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty=../xml/' + sproperty + '_fg.xml&effect='+ sFade +'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="523" height="168"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
}


function insertAwardsGallery(cmspath,sproperty)
{	 
		//alert(sproperty);
		//alert(sFade);
		//alert(iRepeat);
		
	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="342" height="450" id="photogallery">';
		obj  += '<param name="movie" value="../media/photogallery_awards.swf" />';
		obj  += '<param name="wmode" value="transparent" />';
		obj  += '<param name="allowScriptAccess" value="sameDomain" />';
		obj  += '<param name="menu" value="false" />';
		obj  += '<param name="bgcolor" value="#ffffff" />';
		obj  += '<param name="FlashVars" value="sproperty=../xml/' +sproperty+ '_PG.xml"/>';
		obj  += '<param name="quality" value="high" />';
		obj  += '<embed src="../media/photogallery_awards.swf" wmode="transparent" FlashVars="sproperty=../xml/' + sproperty + '_PG.xml" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="342" height="450"></embed>';
	obj +=  '</object>';
	
	document.write(obj);
}


function insertPhotoGallery(sProperty)
{
var insertpg;
insertpg = '<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="580" height="500" id="photogallery" valign="middle">';
insertpg += '<param name="allowScriptAccess" value="sameDomain" />';
insertpg += '<param name="movie" value="../media/crestone_pg.swf" />';
insertpg += '<param name="menu" value="false" />';
insertpg += '<param name="quality" value="high" />';
insertpg += '<param name="wmode" value="transparent" />';
insertpg += '<PARAM NAME=FlashVars VALUE="sproperty=../xml/' + sProperty + '_pg.xml"/>';
insertpg += '<embed src="../media/crestone_pg.swf" FlashVars="sproperty=../xml/' + sProperty + '_pg.xml" menu="false" quality="high" bgcolor="#ffffff" width="580" height="500" wmode="transparent" name="photogallery" valign="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
insertpg += '</object>';
//alert(obj);
document.write(insertpg);
}
