function randy(hi,lo){ lo=(lo==null)?1:lo;hi=(hi==null)?10:hi; do{ randall=Math.floor(Math.random()*(hi+1)); } while(!((randall>=lo)&&(randall<=hi))); return randall; }

var _proto='http://'; try{ if (window.location.protocol == "https:"){ _proto='https://'; } } catch(lockpee){}
var imgroot=_proto+'disneyrewards.disney.go.com/';
root="http://disneyrewards.disney.go.com";


leftpromos={};
leftpromos["debitcardbenefits"]={
paths:["/aboutrewards/index", "/aboutrewards/redeemingrewards", "/aboutrewards/valueofrewards", "/cardbenefits/index", "/cardbenefits/carddesigns", "/cardbenefits/visaplatinumbenefits", "/cardbenefits/faqs", "newsandoffers", "manageaccount", "howto"],
action:function(){
document.writeln('<table cellspacing="0" style="margin-top: 5px;" cellpadding="0">\
<tr><td valign="top" style="height: 14px; padding-left: 8px"><img src="images/callouts/debitcardtop.gif" alt="Debit Card" width="187" height="23"></td></tr>\
<tr><td valign="top" background="http://disneyrewards.disney.go.com/images/callouts/secondarynavbg.gif" style="padding-left: 23px;"><table cellpadding="0" cellspacing="0" border="0" width="157"><tr><td align="center" valign="top"><img src="images/callouts/debitcardmid.gif" alt="Find out about all of your Disney Rewards Debit Card Benefits " width="157" height="120"></td>\
</tr><tr><td align="center" valign="top"><a href="debitcardbenefits/index.html"><img src="images/callouts/debitcardlearnmore.gif" alt="Learn More" width="157" height="28" border="0"></a></td></tr></table></td></tr>\
<tr><td valign="top" style="height: 14px;  padding-left: 8px; background-image:url(http://disneyrewards.disney.go.com/images/callouts/secondarynavbg.gif);"><img src="http://disneyrewards.disney.go.com/images/callouts/secondarynavbottom.gif"></td></tr>\
</table>');
}
}


/*PROMO*/
leftpromos["watchdemos"]={
paths:["/aboutrewards/rewardsforeveryone", "/aboutrewards/everydayrewards", "/exclusives/camprockposter"],
action:function(){
document.writeln('<table cellspacing="0" style="margin-top: 5px;" cellpadding="0">\
<tr><td valign="top" style="height: 14px; padding-left: 8px"><img src="'+imgroot+'images/callouts/watchdemostop.gif" alt="Watch Demos"></td></tr>\
<tr><td valign="top" background="'+imgroot+'images/callouts/secondarynavbg.gif" style="padding-left: 23px;"><table cellpadding="0" cellspacing="0" border="0" width="157"><tr><td><img src="'+imgroot+'images/callouts/watchdemofeature-a.gif" alt="Learn About Disney Rewards"></td></tr><tr><td style="line-height: 11px; font-size: 10px; text-align: center; font-weight: bold; ">Accumulate <i>Disney Rewards</i><span class="sup">&reg;&#8224;</span><br><br>Redeem <i>Disney Rewards</i><br><br>Redeem at participating retailers and movie theaters</td></tr><tr><td><a href="howto.html"><img src="'+imgroot+'images/callouts/watchdemofeature-b.gif" alt="Play Demos Now"></a></td></tr></table></td></tr>\
<tr><td valign="top" style="height: 14px;  padding-left: 8px; background-image:url('+imgroot+'images/callouts/secondarynavbg.gif);"><img src="'+imgroot+'images/callouts/secondarynavbottom.gif"></td></tr>\
</table>');

globalPromoItems.push(['&#8224;','<i>Disney Dream Reward Dollars</i><span class="sup">&reg;</span> are subject to the terms and conditions of the <i>Disney Rewards</i><span class="sup">&reg;</span> Program.']);
}
}
/*PROMO*/
leftpromos["rewardsforeveryone"]={
paths:["/cardbenefits/*", "/newsandoffers/*"],
action:function(){
document.writeln('<table cellspacing="0" style="margin-top: 5px;" cellpadding="0">\
<tr><td valign="top" style=" padding-left: 8px"><img src="'+imgroot+'images/callouts/rewardsforeveryonetop.gif" alt="Rewards For Everyone"></td></tr>\
<tr><td valign="top" background="'+imgroot+'images/callouts/secondarynavbg.gif" style="padding-left: 23px;"><table cellpadding="0" cellspacing="0" border="0"><tr><td><a href="'+root+'/aboutrewards/rewardsforeveryone.html"><img src="'+imgroot+'images/callouts/rewardsforeveryonefeature-a.gif" alt="Where to go? What to get? You decide."></a></td><td><a href="'+root+'/aboutrewards/rewardsforeveryone.html"><img src="'+imgroot+'images/callouts/rewardsforeveryonefeature-b.gif" alt="Where to go? What to get? You decide."></a></td></tr></table></td></tr>\
<tr><td valign="top" style="height: 14px;  padding-left: 8px; background-image:url('+imgroot+'images/callouts/secondarynavbg.gif);"><img src="'+imgroot+'images/callouts/secondarynavbottom.gif"></td></tr>\
</table>');
}
}
/*PROMO*/
leftpromos["everydayrewards"]={
paths:["/aboutrewards/flexibilityofrewards"],
action:function(){
document.writeln('<table cellspacing="0" style="margin-top: 5px;" cellpadding="0">\
<tr><td valign="top" style="padding-left: 8px"><img src="'+imgroot+'images/callouts/everydayrewardstop.gif" alt="Everyday Rewards"></td></tr>\
<tr><td valign="top" background="'+imgroot+'images/callouts/secondarynavbg.gif" style="padding-left: 23px;"><table cellpadding="0" cellspacing="0" border="0" width="157"><tr><td colspan="2"><a href="'+root+'/aboutrewards/everydayrewards.html"><img src="'+imgroot+'images/callouts/everydayrewardsfeature-a.gif" alt="Get The Disney Stuff You Want"></a></td></tr><tr><td><a href="'+root+'/aboutrewards/everydayrewards.html"><img src="'+imgroot+'images/callouts/everydayrewardsfeature-b.gif" alt="Get The Disney Stuff You Want"></a></td><td><a href="'+root+'/aboutrewards/everydayrewards.html"><img src="'+imgroot+'images/callouts/rightfeature-c.jpg" alt="The Little Mermaid on DVD"></a></td></tr></table></td></tr>\
<tr><td valign="top" style="height: 14px;  padding-left: 8px; background-image:url('+imgroot+'images/callouts/secondarynavbg.gif);"><img src="'+imgroot+'images/callouts/secondarynavbottom.gif"></td></tr>\
</table>');
}
}

thispromo="everydayrewards"; //THE DEFAULT PROMO

thisloc=(_submlc!="")?_submlc+"/"+_gpn:_gpn;

for (p in leftpromos){
for (f=0; f<leftpromos[p].paths.length; f++){
if (leftpromos[p].paths[f].toLowerCase()==thisloc.toLowerCase() || (leftpromos[p].paths[f].indexOf('*')!=-1 && thisloc.indexOf(leftpromos[p].paths[f].replace('*',''))!=-1)){ thispromo=p; break; }
}
if (thispromo!="everydayrewards"){ break; }
}

leftpromos[thispromo].action();