document.write('<style type="text/css">'+'#unlayout { top:-1000px; }');

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

// DECLARATION OF ALL THE PARAMETERS TO BE PASSED TO THE FLASH PEEL

//DISPLAY FREQUENCY enter 1 to always display, 2 for ONCE per browser session

var displaymode=1

//AUTO HIDE Set duration PellAwayAd should appear on screen, in milliseconds (10000=10 sec, 0=perpetual)

var displayduration=0

//AUTO SCROLL Should PeelAwayAd scroll down page as user scrolls? true=scroll false=don't scroll

var allowscroll=true

// TOP PLACEMENT value How many pixels from Top should Peel be dislpayed

var top = "0px";

// RIGHT PLACEMENT How many pixels from right should Peel be displayed

var right = "0px";

// PEEL DELAY set time delay to show peel in millisecond (10000=10 sec, 0=instantly)

var delay = '0';

// ROTATING SMALL IMAGES - To set small image or swf files for small peel background

smallimg = new Array();

smallimg[0]= 'http://www.thealetrail.co.uk/images/touch_orange.jpg';

smallimg[1]= 'http://www.thealetrail.co.uk/images/touch_orange.jpg';

smallimg[2]= 'http://www.thealetrail.co.uk/images/touch_orange.jpg';

smallimg[3]= 'http://www.thealetrail.co.uk/images/touch_orange.jpg';

// SMALL SCROLLING TEXT To set the text scrolling on the smaller flash

var scrolltxtsmall = "";

// SMALL FONT - To set the font size of the text scrolling on the smaller flash

var txtsizesmall = "10";

//SMALL COLOR - To set the text color of the text scrolling on the smaller flash

var textcolorsmall = "FF0000";

// ROTATING BACKGROUND IMAGES - To set bigger image or swf files

bigimg = new Array();

bigimg[0] = "http://www.thealetrail.co.uk/images/webd01.jpg";

bigimg[1] = "http://www.thealetrail.co.uk/images/webd01.jpg";

bigimg[2] = "http://www.thealetrail.co.uk/images/webd01.jpg";

bigimg[3] = "http://www.thealetrail.co.uk/images/webd01.jpg";

// ROTATING URLs - To set URL which will open on click of bigger flash

urlval = new Array();

urlval[0] = "http://www.webdiscounts4u.com";

urlval[1] = "http://www.webdiscounts4u.com";

urlval[2] = "http://www.webdiscounts4u.com";

urlval[3] = "http://www.webdiscounts4u.com";

// OPEN IN SAME WINDOW - To set whether the URL will open in a new window or same window

var owindow = "blank" // to open in a new blank window - blank ; to open in the same window - self

// BIG SCROLLING TEXT To set the text scrolling on the bigger flash

var scrolltxtbig = "";

// BIG TEXT FONTTo set the font size of the text scrolling on the bigger flash

var txtsizebig = "50";

// BIG TEXT COLORTo set the text color of the text scrolling on the bigger flash

var textcolorbig = "00FF00";

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

///////////////////                  DO NOT CHANGE ANYTHING AFRTER THIS COMMENT              /////////////////////////////////

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

if (navigator.appVersion.indexOf('nd') != -1 || navigator.appName.indexOf('ro') != -1)

        {

        document.write('#cvlayout { top:'+top+'; right:'+right+'; } #unlayout { right:'+right+'; }');

        }

        else

        {

        //alert(right);

        document.write('#cvlayout { top:-1000px; right:'+right+'; } #unlayout { right:'+right+'; }');

        }

        document.write('</style>');

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';

        }

}

var message='<div id="cvlayout" style="position:absolute; width:100px; height:100px; 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="100" height="100">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="cover.swf"><param name="wmode" value="transparent"><param name="FlashVars" value="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolorsmall='+textcolorsmall+'&delay='+delay+'">'+'<embed src="cover.swf" id="cover" name="cover" wmode="transparent" flashvars="smallimg='+smallimg+'&scrolltxtsmall='+scrolltxtsmall+'&txtsizesmall='+txtsizesmall+'&textcolorsmall='+textcolorsmall+'&delay='+delay+'" width="100" height="100" allowscriptaccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>'+'</object>'+'</div>'+'<div id="divSub0">'+'</div>'+'<div id="unlayout" style="position:absolute; height:543px; width:543px; 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="543" height="543">'+'<param name="allowScriptAccess" value="always"><param name="movie" value="uncover.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="uncover.swf" wmode="transparent" width="543" height="543" 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>';

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

//enter a color name or hex to be used as the background color of the message

var backgroundcolor="#FFFF8A"

//enter 0 for non-flashing message, 1 for flashing

var flashmode=1

//if above is set to flashing, enter the flash-to color below

var flashtocolor="lightyellow"

var ie=document.all

var ieNOTopera=document.all&&navigator.userAgent.indexOf("Opera")==-1



function regenerate(){

window.location.reload()

}



function regenerate2(){

if (document.layers)

setTimeout("window.onresize=regenerate",400)

}



var which=0



function flash(){

if (which==0){

if (document.layers)

topmsg_obj.bgColor=flashtocolor

else

topmsg_obj.style.backgroundColor=flashtocolor

which=1

}

else{

if (document.layers)

topmsg_obj.bgColor=backgroundcolor

else

topmsg_obj.style.backgroundColor=backgroundcolor

which=0

}

}



if (ie||document.getElementById)

document.write('<div id="topmsg" style="position:absolute;visibility:hidden">'+message+'</div>')



var topmsg_obj=ie? document.all.topmsg : document.getElementById? document.getElementById("topmsg") : document.topmsg



function positionit(){

var dsocleft=ie? document.body.scrollLeft : pageXOffset

var dsoctop=ie? document.body.scrollTop : pageYOffset

var window_width=ieNOTopera? document.body.clientWidth : window.innerWidth-20

var window_height=ieNOTopera? document.body.clientHeight : window.innerHeight



if (ie||document.getElementById){

topmsg_obj.style.left=parseInt(dsocleft)+window_width-topmsg_obj.offsetWidth

topmsg_obj.style.top=parseInt(dsoctop)

}

else if (document.layers){

topmsg_obj.style.left=parseInt(dsocleft)+window_width-document.width

topmsg_obj.style.top=parseInt(dsoctop)

}

}



function setmessage(){

if (displaymode==2&&(!display_msg_or_not()))

return

if (document.layers){

topmsg_obj=new Layer(window.innerWidth)

topmsg_obj.bgColor=backgroundcolor

regenerate2()

topmsg_obj.document.write(message)

topmsg_obj.document.close()

positionit()

topmsg_obj.visibility="show"

if (displayduration!=0)

setTimeout("topmsg_obj.visibility='hide'",displayduration)

}

else{

positionit()

topmsg_obj.style.backgroundColor=backgroundcolor

topmsg_obj.style.visibility="visible"

if (displayduration!=0)

setTimeout("topmsg_obj.style.visibility='hidden'",displayduration)

}

setInterval("positionit()",100)

if (flashmode==1)

setInterval("flash()",1000)

}



function get_cookie(Name) {

var search = Name + "="

var returnvalue = ""

if (document.cookie.length > 0) {

offset = document.cookie.indexOf(search)

if (offset != -1) {

offset += search.length

end = document.cookie.indexOf(";", offset)

if (end == -1)

end = document.cookie.length;

returnvalue=unescape(document.cookie.substring(offset, end))

}

}

return returnvalue;

}



function display_msg_or_not(){

if (get_cookie("displaymsg")==""){

document.cookie="displaymsg=yes"

return true

}

else

return false

}



if (document.layers||ie||document.getElementById)

window.onload=setmessage



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







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');

}