// JavaScript Document

function insertCorphomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty,flashurl1,flashurl2,flashurl3)
   {
   	var obj;
   	var flashurl1 = encodeURIComponent(flashurl1);
   	var flashurl2 = encodeURIComponent(flashurl2);
   	var flashurl3 = encodeURIComponent(flashurl3);
	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="100%" height="320">';
	obj += '<param name="movie" value="'+ ctmPath +'/Media/corphome.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' + '&flashurl1=' + flashurl1 + '&flashurl2=' + flashurl2 + '&flashurl3=' + flashurl3 +'"/>';		
	obj += '<embed src="'+ ctmPath +'/Media/corphome.swf" wmode="transparent" FlashVars="effect='+ sFade +'&repeat=' + iRepeat + '&speed=' + iSpeed + '&sproperty='+ ctmPath +'/xml/'+ sProperty +'_FG.xml'+'&flashurl1='+flashurl1 +'&flashurl2='+flashurl2+'&flashurl3='+flashurl3+'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="100%" height="320"></embed>';
	obj +=  '</object>';
	//alert(decodeURIComponent(flashurl1));
	
	document.write(obj);
   }



   function insertCorphomeflash_residentliving(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="436" height="155">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/corphome_fg_residentLiving.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="'+ ctmPath +'/media/corphome_fg_residentLiving.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="436" height="155"></embed>';
	obj +=  '</object>';
	document.write(obj);
   }
   
   
      
  function inserthomeflash(ctmPath,iSpeed,sFade,iRepeat,sProperty)
   {
	// This code is written as Conversion tool is not making entry in flash table. (Temporary solution)
	/* if (sProperty.substring(0,1)=='_'){
	sProperty ='Redriverflats_ceredriv'
	}
	*/
 
   	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="767" height="217">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/greystar_test.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="'+ ctmPath +'/media/greystar_test.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="767" height="217"></embed>';
	obj +=  '</object>';
		//alert(obj) ;
	document.write(obj);
   }



function insertprophome3flash(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="907" height="264">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/prophome3_fg.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="'+ ctmPath +'/media/prophome3_fg.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="907" height="264"></embed>';
	obj +=  '</object>';
	document.write(obj);
	//alert(obj);
	}

/*function insertprophome4flash(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="983" height="340">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/prophome4_fg.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="'+ ctmPath +'/media/prophome4_fg.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="983" height="340"></embed>';
	obj +=  '</object>';
	document.write(obj);
} */

function insertprophome4flash(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="983" height="340">';
	obj='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 	codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="100%" height="340">';
	obj += '<param name="movie" value="'+ ctmPath +'/media/prophome4_fg.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="'+ ctmPath +'/media/prophome4_fg.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="100%" height="340"></embed>';
	obj +=  '</object>';
	document.write(obj);
	//alert(obj);

}

function insertspaceplaner(fpImage,csspath,propname,proparea)
  {
	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="600" 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="0xffffff" />';
	insertsp += '<param name="wmode" value="transparent" />';
	insertsp += '<PARAM NAME=FlashVars VALUE="floorplan=' + fpImage + '&cssPath='  + csspath + '/SpacePlannerStyle.css&sPropName='+ propname +'&sPropArea='+ proparea +'">';
	insertsp += '<embed src="../media/SpacePlanner.swf" menu="false" quality="best" FlashVars="floorplan=' + fpImage +  '&cssPath='  + csspath + '/SpacePlannerStyle.css&sPropName='+ propname +'&sPropArea='+ proparea +'" bgcolor="0xffffff" width="1000" height="600" wmode="transparent" name="Furniture_placement" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	insertsp += '</object>';
	return insertsp;
  }


function insertPhotoGallery_std(cmsPath,sProperty,soutlinecolor,splaypausecolor,sthumbnailcolor,scontrolcolor)
   {
	var FlashVars;

	var pos1;
	pos1=sProperty.lastIndexOf("^.");
 	if (pos1>0)
 	{       
  		sProperty=sProperty.substr(pos1+1);
         	sProperty=sProperty.replace(".","dot");
   	}

   	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="650" height="450" 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="0x0e204e" />');
	document.write('<param name="playpausecolor" value="0x0e204e" />');
	document.write('<param name="thumbnailcolor" value="0x0e204e" />');
	document.write('<param name="controlcolor" value="0xff0000" />');
	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="650" height="450" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }

function insertPhotoGallery(cmsPath,sProperty)
   {
   	var soutlinecolor='0x919191';
    	var splaypausecolor='0xffffff';
    	var sthumbnailcolor='0x919191';
    	var scontrolcolor='0x919191';
	var insertpg;

	var pos1;
	pos1=sProperty.lastIndexOf("^.");
 	if (pos1>0)
 	{       
  		sProperty=sProperty.substr(pos1+1);
         	sProperty=sProperty.replace(".","dot");
   	}
   	   	
	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="500" height="500" id="photogallery" align="middle">';
	insertpg += '<param name="allowScriptAccess" value="sameDomain" />';
	insertpg += '<param name="movie" value="' + cmsPath +'/media/photogallery.swf" />';
	insertpg += '<param name="menu" value="false" />';
	insertpg += '<param name="quality" value="high" />';
	insertpg += '<param name="wmode" value="transparent" />';
	insertpg += '<PARAM NAME=FlashVars VALUE="cmsPath='+cmsPath+'/xml/&sproperty=' + sProperty + '&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'"/>';
	insertpg += '<embed src="' + cmsPath +'/media/photogallery.swf" FlashVars="cmsPath='+cmsPath+'/xml/&sproperty=' + sProperty + '&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'" menu="false" wmode="transparent" quality="high"   width="500" height="500" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	insertpg += '</object>';
	return insertpg;
  }  




function insertPG_PropHomeBlue(cmsPath,sProperty,soutlinecolor,splaypausecolor,sthumbnailcolor,scontrolcolor)
   {
	
	soutlinecolor = '0x1ab0ee';
	splaypausecolor = '0x052f5a';
	sthumbnailcolor = '0xc1e0ff';
	scontrolcolor = '0x2878e1';
	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="535" height="480" id="photogallery" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + cmsPath +'/media/photogallery_greystar.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="0x1ab0ee" />');
	document.write('<param name="playpausecolor" value="0xd7f5ff" />');
	document.write('<param name="thumbnailcolor" value="0x53d5ff" />');
	document.write('<param name="controlcolor" value="0x32a0c3" />');
	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_greystar.swf" FlashVars="sproperty=' + cmsPath +'/xml/' + sProperty + '_PG.xml&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'" menu="false" wmode="transparent" quality="high"   width="535" height="480" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }

function insertPG_PropHome2(cmsPath,sProperty,soutlinecolor,splaypausecolor,sthumbnailcolor,scontrolcolor)
   {
	
	soutlinecolor = '0xbd8607';
	splaypausecolor = '0xffffff';
	sthumbnailcolor = '0x574826';
	scontrolcolor = '0x775300';
	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="535" height="480" id="photogallery" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + cmsPath +'/media/photogallery_greystar.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="0x1ab0ee" />');
	document.write('<param name="playpausecolor" value="0xd7f5ff" />');
	document.write('<param name="thumbnailcolor" value="0x53d5ff" />');
	document.write('<param name="controlcolor" value="0x32a0c3" />');
	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_greystar.swf" FlashVars="sproperty=' + cmsPath +'/xml/' + sProperty + '_PG.xml&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'" menu="false" wmode="transparent" quality="high"   width="535" height="480" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }





/*
function insertPG_PropHome2(cmsPath,sProperty,soutlinecolor,splaypausecolor,sthumbnailcolor,scontrolcolor)
   {
	
	soutlinecolor = '0xbd8607';
	splaypausecolor = '0xebb03a';
	sthumbnailcolor = '0x574826';
	scontrolcolor = '0x775300';
	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="580" height="470" id="photogallery" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + cmsPath +'/media/photogallerybrown.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="0x1ab0ee" />');
	document.write('<param name="playpausecolor" value="0xd7f5ff" />');
	document.write('<param name="thumbnailcolor" value="0x53d5ff" />');
	document.write('<param name="controlcolor" value="0x32a0c3" />');
	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/photogallerybrown.swf" FlashVars="sproperty=' + cmsPath +'/xml/' + sProperty + '_PG.xml&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'" menu="false" wmode="transparent" quality="high"   width="580" height="470" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
  }

*/

function insertPhotoGalleryAdmin(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_greystar.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_greystar.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 insertebrochure(proplogo, 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="650" 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="frontlogo=' + proplogo + '&sproperty=../xml/' + sProperty + '_ebro.xml">';
inserteb += '<embed src="../media/ebrochure.swf" menu="false" quality="best" FlashVars="frontlogo=' + proplogo + '&sproperty=../xml/' + sProperty + '_ebro.xml" bgcolor="#ffffff" width="1300" height="650" 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 insertCorporatePhotoGallery(cmsPath,sProperty)
   {
   	var soutlinecolor='0x000B43';
    	var splaypausecolor='0x007BBF';
    	var sthumbnailcolor='0x363636';
    	var scontrolcolor='0x000B43';
    	var sWidth = 430;
    	var sHeight = 370;
	var insertCpg; 
   	   	
	insertCpg='<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="370" id="photogallery" align="middle">';
	insertCpg+='<param name="allowScriptAccess" value="sameDomain" />';
	insertCpg+='<param name="movie" value="' + cmsPath +'/media/photogallery_Corporate.swf" />';
	insertCpg+='<param name="menu" value="false" />';
	insertCpg+='<param name="quality" value="high" />';
	insertCpg+='<param name="wmode" value="transparent" />';
	insertCpg+='<PARAM NAME=FlashVars VALUE="cmsPath='+cmsPath+'/xml/&sproperty=' + sProperty + '&outlinecolor='+ soutlinecolor +'&playpausecolor='+ splaypausecolor +'&thumbnailcolor='+ sthumbnailcolor +'&controlcolor='+ scontrolcolor +'&width='+ sWidth +'&height='+ sHeight +'"/>';
	insertCpg+='<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="370" name="photogallery" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	insertCpg+='</object>';
	return insertCpg;
  }   

function referafriend(propid,pagegrp)
{
	var str='../pages/PortalCommonReferAFriend.aspx?PropertyId='+propid+'&Pagegroup='+pagegrp;
	window.open(str,'_blank','toolbar=0,status=no,resizable=1,width=500,height=550,top=100,left=150');

}
