
var esel = new Object();
// ---------------------------------------------------------      MODIFFY
esel.ad_url = escape('');              // Change URL to be redirected to when clicking Peel Away Ad
// ---------------------------------------------------------      END MODIFY

esel.small_path = 'peel/cornersmall.swf';				//    Enter the URL of the Peel Away Corner Flash
esel.small_image = escape('peel/images/small.gif');	        //   URL of the Image behind the Peel
esel.big_path = 'peel/cornerbig.swf';				//   Enter the URL of the Large Peel Away Corner
esel.big_image = escape('peel/images/page_fold.png');		//   URL of the Big Image Behind the Peel

// Do not Change anything under this line-----------------------------------------------------------------------------------------

esel.small_width = '100';
esel.small_height = '100';
esel.going = '0';
esel.small_params = 'ico=' + esel.small_image;
esel.big_width = '650';
esel.big_height = '650';
esel.big_params = 'big=' + esel.big_image + '&ad_url=' + esel.ad_url;
function sizeup987(){
//if (esel.going == '0') {
	document.getElementById('eselcornerBig').style.top = '0px';
	document.getElementById('eselcornerSmall').style.top = '-1000px';
//}
}
function sizedown987(){
//if (esel.going == '0') {
	document.getElementById("eselcornerSmall").style.top = "0px";
	document.getElementById("eselcornerBig").style.top = "-1000px";
//}
}
esel.putObjects = function () {
document.write('<div id="eselcornerSmall" style="position:absolute;width:'+ esel.small_width +'px;height:'+ esel.small_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerSmallObject" width="'+esel.small_width+'" height="'+esel.small_height+'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.small_path +'?'+ esel.small_params +'"/>');
document.write(' <param name="wmode" value="transparent" />');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+esel.small_params+'"/>');
document.write('<embed src="'+ esel.small_path + '?' + esel.small_params +'" name="eselcornerSmallObject" wmode="transparent" quality="high" width="'+ esel.small_width +'" height="'+ esel.small_height +'" flashvars="'+ esel.small_params +'" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object></div></script>');
if (/MSIE (\d+\.\d+);/.test(navigator.userAgent)){
document.write('<div onmouseup="callme();" id="eselcornerBig" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;">');
} else {
document.write('<div id="eselcornerBig" style="position:absolute;width:'+ esel.big_width +'px;height:'+ esel.big_height +'px;z-index:9999;right:0px;top:0px;">');
document.write('<img src="peel/images/right_bg.png" usemap="#corner" style="position:absolute;z-index:99999;right:0px;top:75px; border:5;" />');
}
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"');
document.write('codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"');
document.write(' id="eselcornerBigObject" width="'+ esel.big_width +'" height="'+ esel.big_height +'">');
document.write(' <param name="allowScriptAccess" value="always"/> ');
document.write(' <param name="movie" value="'+ esel.big_path +'?'+ esel.big_params +'"/>');
document.write(' <param name="wmode" value="transparent"/>');
document.write(' <param name="quality" value="high" /> ');
document.write(' <param name="FlashVars" value="'+ esel.big_params +'"/>');
document.write('<embed src="'+ esel.big_path + '?' + esel.big_params +'" id="eselcornerBigEmbed" name="eselcornerBigObject" wmode="transparent" quality="high" width="'+ esel.big_width +'" height="'+ esel.big_height +'" flashvars="'+ esel.big_params +'" swliveconnect="true" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object>');
document.write('</div>');
setTimeout('document.getElementById("eselcornerBig").style.top = "-1000px";',1000);
}
esel.putObjects();
function callme() {
var mouseX = event.clientX;
var mouseY = event.clientY;

mouseX = (mouseX - (GetWidth() - 498));
//document.getElementById('coor').value = mouseX+":"+mouseY+":"+(138 > mouseX)+":"+(mouseX < 203)+":"+(mouseY > 84)+":"+(mouseY < 142);
if ((mouseX > 138) && (mouseX < 203) && (mouseY > 84) && (mouseY < 142)) {
location.href="http://www.myspace.com/gatlinburgtncabins";
esel.going = '1';
}
else if ((mouseX > 212) && (mouseX < 272) && (mouseY > 84) && (mouseY < 142)) {
location.href="http://www.facebook.com/timbertops?ref=ts";
esel.going = '1';
}
else if ((mouseX > 282) && (mouseX < 346) && (mouseY > 84) && (mouseY < 142)) {
location.href="http://delicious.com/smokymountaincabins";
esel.going = '1';
}
else if ((mouseX > 354) && (mouseX < 420) && (mouseY > 84) && (mouseY < 142)) {
location.href="http://twitter.com/TimberTops";
esel.going = '1';
}
else if ((mouseX > 427) && (mouseX < 493) && (mouseY > 84) && (mouseY < 142)) {
location.href="http://www.youtube.com/user/YourCabindotcom";
esel.going = '1';
}
else if ((mouseX > 201) && (mouseX < 499) && (mouseY > 190) && (mouseY < 234)) {
location.href="/specials.aspx";
esel.going = '1';
}
else if ((mouseX > 248) && (mouseX < 499) && (mouseY > 250) && (mouseY < 289)) {
location.href="/search.aspx";
esel.going = '1';
}
else if ((mouseX > 303) && (mouseX < 499) && (mouseY > 304) && (mouseY < 348)) {
location.href="featured.aspx";
esel.going = '1';
}
else {

}
}
function GetWidth()
{
        var x = 0;
        if (self.innerHeight)
        {
                x = self.innerWidth;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                x = document.documentElement.clientWidth;
        }
        else if (document.body)
        {
                x = document.body.clientWidth;
        }
        return x;
}
 
function GetHeight()
{
        var y = 0;
        if (self.innerHeight)
        {
                y = self.innerHeight;
        }
        else if (document.documentElement && document.documentElement.clientHeight)
        {
                y = document.documentElement.clientHeight;
        }
        else if (document.body)
        {
                y = document.body.clientHeight;
        }
        return y;
}

