////////////////////////////////////////////////////////////////////////////////
//document.write('<style type="text/css">'+'#unlayout4 { top:-1000px; }'); 
////////////////////////////////////////////////////////////////////////////////
//
//            **** VARIABLES **** 
//
// To Set Top placement value
var top = "0px"
//
// To Set Right side placement value
var left = "-1px"
var right = "-1px";
var down= "0px"
// To Set Right side placement value

//
// To set small image file
//var smallimg ="images/cerrado.jpg"
 var smallimg =smallimage;
//
// To set the text scrolling on the smaller flash
//var scrolltxtsmall = "SMALL SCROLL TEXT"
var scrolltxtsmall = smallscroll;

//
// To set the font size of the text scrolling on the smaller flash
var txtsizesmall = "20"
//
// To set the text color of the text scrolling on the smaller flash
var textcolorsmall = smallcrollcolor
//
// To set bigger image file
//var bigimg = "images/promo.jpg"
var bigimg = largeimage;
//
// To set URL which will open on click of bigger flash
//var urlval = "http://www.apartplaya.com/"
var urlval = urllink;					
//
// To set whether the URL will open in a new window or same window
//var owindow = "self" // to open in a new blank window - blank ; to open in the same window - self
var owindow =windowtype;
//
// To set the text scrolling on the bigger flash
var scrolltxtbig = largescroll;
//
// To set the font size of the text scrolling on the bigger flash
var txtsizebig = "70"
//
// To set the text color of the text scrolling on the bigger flash
var textcolorbig = largescrollcolor
//

//
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

if(position1=="Top-Left")
{
	document.write('<style type="text/css">'+'#unlayout4 { top:-1000px; }'); 
	if (navigator.appVersion.indexOf('nd') != -1 || navigator.appName.indexOf('ro') != -1) 
	{ 	
		document.write('#cvlayout4 { top:'+top+'; left:'+left+'; } #unlayout4 { left:'+left+'; }'); 
	} 
	else 
	{ 
		document.write('#cvlayout4 { top:-1000px; left:'+left+'; } #unlayout4 { left:'+left+'; }'); 
	}
	document.write('</style>');
}		
else if(position1=="Bottom-Left")
{
	document.write('<style type="text/css">'+'#unlayout3 { bottom:1000px; }'); 
	if (navigator.appVersion.indexOf('nd') != -1 || navigator.appName.indexOf('ro') != -1) 
	{ 	
		document.write('#cvlayout3 { bottom:'+down+'; left:'+left+'; } #unlayout3 { left:'+left+'; }'); 
	} 
	else 
	{ 
		document.write('#cvlayout3 { bottom:-1000px; left:'+left+'; } #unlayout3 { left:'+left+'; }'); 
	}
	document.write('</style>');
}
else if(position1=="Top-Right")
{
	document.write('<style type="text/css">'+'#unlayout { top:-1000px; }');
	if (navigator.appVersion.indexOf('nd') != -1 || navigator.appName.indexOf('ro') != -1) 
	{ 	
	document.write('#cvlayout { top:'+top+'; right:'+right+'; } #unlayout { right:'+right+'; }');
	} 
	else 
	{ 
	document.write('#cvlayout { top:-1000px; right:'+right+'; } #unlayout { right:'+right+'; }');
	}
	document.write('</style>');
}
else if(position1=="Bottom-Right")
{
document.write('<style type="text/css">'+'#unlayout2 { bottom:1000px; }'); 
if (navigator.appVersion.indexOf('nd') != -1 || navigator.appName.indexOf('ro') != -1) 
	{
	document.write('#cvlayout2 { bottom:'+down+'; right:'+right+'; } #unlayout2 { right:'+right+'; }'); 
	} 
	else 
	{ 
	document.write('#cvlayout2 { bottom:1000px; right:'+right+'; } #unlayout2 { right:'+right+'; }'); 
	}
	document.write('</style>');

}


function setpos2(param1, param2, param3, param4, param5) 
{ 	
	document.getElementById(param2).style.bottom = param3; 
	document.getElementById(param4).style.bottom = param5; 
	if (navigator.appName.indexOf('ro')!= -1) 
	{ 
	window.resizeBy(-1,-1); window.resizeBy(1,1); 
	}
}
function pguncover2(command, args) 
{ 
if (command == 'act_ppo2') 
	{ 
	cvlayout2.style.bottom = '1000px'; 
	unlayout2.style.bottom = down; 
	}
}
function pgcover2(command, args) 
{ 
	if (command == 'act_ppc2') 
	{ 
	cvlayout2.style.bottom = down; 
	unlayout2.style.bottom = '1000px';
	}
} 



function setpos(param1, param2, param3, param4, param5) 
{
	document.getElementById(param2).style.top = param3; 
	document.getElementById(param4).style.top = param5; 
	if (navigator.appName.indexOf('ro')!= -1) 
	{ 
	window.resizeBy(-1,-1); window.resizeBy(1,1); 
	}
}
function pguncover(command, args) 
{
	if (command == 'act_ppo') 
	{ 
	cvlayout.style.top = '-1000px'; 
	unlayout.style.top = top; 		
	}
}
function pgcover(command, args) 
{
	if (command == 'act_ppc') 
	{ 
	cvlayout.style.top = top;
	unlayout.style.top = '-1000px'; 
	}
}

function setpos3(param1, param2, param3, param4, param5) 
{ 	
	document.getElementById(param2).style.bottom = param3; 
	document.getElementById(param4).style.bottom = param5; 
	if (navigator.appName.indexOf('ro')!= -1) 
	{ 
	window.resizeBy(-1,-1); window.resizeBy(1,1); 
	}
}
function pguncover3(command, args) 
{ 
	if (command == 'act_ppo3') 
	{ 
		cvlayout3.style.bottom = '1000px'; 
		unlayout3.style.bottom = down; 
	}
}
function pgcover3(command, args) 
{ 
	if (command == 'act_ppc3') 
	{ 
		unlayout3.style.bottom = '1000px'; 
		cvlayout3.style.bottom = down; 
	}
}

function setpos4(param1, param2, param3, param4, param5) 
{ 	
	document.getElementById(param2).style.top = param3; 
	document.getElementById(param4).style.top = param5; 
	if (navigator.appName.indexOf('ro')!= -1) 
	{ 
	window.resizeBy(-1,-1); window.resizeBy(1,1); 
	}
}
function pguncover4(command, args) 
{
if (command == 'act_ppo4') 
	{
	cvlayout4.style.top = '-1000px'; 
	unlayout4.style.top = top; 
	}
}
function pgcover4(command, args) 
{ 
	if (command == 'act_ppc4') 
	{ 
	unlayout4.style.top = '-1000px'; 
	cvlayout4.style.top = top; 
	}
}

if(position1=="Top-Left")
{
	document.write('<div id="cvlayout4" style="position:absolute; width:75px; height:75px; z-index:20001;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="cover4" width="75" height="75">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'tlspeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'">'+'<embed src="'+swf_file_url+'tlspeel.swf" id="cover4" wmode="transparent"  flashvars="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'" width="75" height="75" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="unlayout4" style="position:absolute; height:600px; width:800px; z-index:20000;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="uncover4" width="800" height="600">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'tlbpeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=0">'+'<embed src="'+swf_file_url+'tlbpeel.swf" wmode="transparent" width="800" height="600" flashvars="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=0" id="uncover4" name="uncover4" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>');
	if (navigator.appName && navigator.appName.indexOf('ro') != -1 && navigator.userAgent.indexOf('nd') != -1 && navigator.userAgent.indexOf('3.1') == -1)	{ 
		document.write('<script language="VBScript">\n'+'On Error Resume Next\n'+'Sub cover4_FSCommand(ByVal command, ByVal args)\n'+'Call pguncover4(command, args)\n'+'End Sub\n'+'Sub uncover4_FSCommand(ByVal command, ByVal args)\n'+'Call pgcover4(command, args)\n'+'End Sub\n'+'</script>\n');
	}
}
else if(position1=="Bottom-Left")
{
	document.write('<div id="cvlayout3" style="position:absolute; width:75px; height:75px; z-index:19001;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="cover3" width="75" height="75">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'blspeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'">'+'<embed src="'+swf_file_url+'blspeel.swf" id="cover3" name="cover3" wmode="transparent" flashvars="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'" width="75" height="75" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="unlayout3" style="position:absolute; height:600px; width:800px; z-index:20000;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="uncover3" width="800" height="600">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'blbpeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=100">'+'<embed src="'+swf_file_url+'blbpeel.swf" wmode="transparent" width="800" height="600" flashvars="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=100" id="uncover3" name="uncover3" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>');

	if (navigator.appName && navigator.appName.indexOf('ro') != -1 && navigator.userAgent.indexOf('nd') != -1 && navigator.userAgent.indexOf('3.1') == -1)	{ 
		document.write('<script language="VBScript">\n'+'On Error Resume Next\n'+'Sub cover3_FSCommand(ByVal command, ByVal args)\n'+'Call pguncover3(command, args)\n'+'End Sub\n'+'Sub uncover3_FSCommand(ByVal command, ByVal args)\n'+'Call pgcover3(command, args)\n'+'End Sub\n'+'</script>\n');
}	
}
else if(position1=="Top-Right")
{
document.write('<div id="cvlayout" style="position:absolute; width:75px; height:75px; z-index:19001;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="cover" width="75" height="75">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'trspeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'">'+'<embed src="'+swf_file_url+'trspeel.swf" id="cover" name="cover" wmode="transparent" flashvars="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'"width="75" height="75" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="unlayout" style="position:absolute; height:600px; width:800px; z-index:20000;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="uncover" width="800" height="600">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'trbpeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=0">'+'<embed src="'+swf_file_url+'trbpeel.swf" wmode="transparent" width="800" height="600" flashvars="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=0" id="uncover" name="uncover" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>');
if (navigator.appName && navigator.appName.indexOf('ro') != -1 && navigator.userAgent.indexOf('nd') != -1 && navigator.userAgent.indexOf('3.1') == -1)	{ 
	document.write('<script language="VBScript">\n'+'On Error Resume Next\n'+'Sub cover_FSCommand(ByVal command, ByVal args)\n'+'Call pguncover(command, args)\n'+'End Sub\n'+'Sub uncover_FSCommand(ByVal command, ByVal args)\n'+'Call pgcover(command, args)\n'+'End Sub\n'+'</script>\n');
}
}
else if(position1=='Bottom-Right')
{
	document.write('<div id="cvlayout2" style="position:absolute; width:75px; height:75px; z-index:20000;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="cover2" width="75" height="75">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'brspeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'">'+'<embed src="'+swf_file_url+'brspeel.swf" id="cover2" name="cover2" wmode="transparent" flashvars="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolor='+textcolorsmall+'" width="75" height="75" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="unlayout2" style="position:absolute; height:600px; width:800px; z-index:20001;">'+'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" id="uncover2" width="800" height="600">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="'+swf_file_url+'brbpeel.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=100">'+'<embed src="'+swf_file_url+'brbpeel.swf" wmode="transparent" width="800" height="600" flashvars="bigimg='+bigimg+'&urlval='+urlval+'&window='+owindow+'&scrolltxtbig='+scrolltxtbig+'&txtsizebig='+txtsizebig+'&textcolor='+textcolorbig+'&yaxis=100" id="uncover2" name="uncover2" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'); 
	if (navigator.appName && navigator.appName.indexOf('ro') != -1 && navigator.userAgent.indexOf('nd') != -1 && navigator.userAgent.indexOf('3.1') == -1)	{ 	 
		document.write('<script language="VBScript">\n'+'On Error Resume Next\n'+'Sub cover2_FSCommand(ByVal command, ByVal args)\n'+'Call pguncover2(command, args)\n'+'End Sub\n'+'Sub uncover2_FSCommand(ByVal command, ByVal args)\n'+'Call pgcover2(command, args)\n'+'End Sub\n'+'</script>\n'); 
	}
}