
var do_drop=(parseInt(navigator.appVersion) >= 4) &&
	(navigator.appName.indexOf("Microsoft Internet Explorer") != -1) && (navigator.appVersion.indexOf("Win") != -1);

var MM2K_nLayerTimeoutID=null;

function MM2K_overLayer() {
	if (!do_drop)
		return;

	if ( MM2K_nLayerTimeoutID )
		clearTimeout(MM2K_nLayerTimeoutID);
	MM2K_nLayerTimeoutID=null;
}

function MM2K_outLayer() {
	if (!do_drop)
		return;
	if ( MM2K_nLayerTimeoutID )
		clearTimeout(MM2K_nLayerTimeoutID);
	MM2K_nLayerTimeoutID=setTimeout('MM2K_showHideLayers(\'movierewardsBurst\',\'\',\'hide\',\'support_unt\',\'\',\'hide\')', 1);
}

var MM2K_nButtonTimeoutID=null;

function MM2K_overButton(sJS) {
	if (!do_drop)
		return;
	if ( MM2K_nButtonTimeoutID )
		clearTimeout(MM2K_nButtonTimeoutID);
	MM2K_nButtonTimeoutID=setTimeout(sJS, 130);
}

function MM2K_outButton() {
	if (!do_drop)
		return;

	if ( MM2K_nButtonTimeoutID )
		clearTimeout(MM2K_nButtonTimeoutID);
	MM2K_nButtonTimeoutID=null;
}

function MM2K_hideElement(sElementID, oDOMLayer)  {
	var nIndex;
	var oDOMElement;
	var nLeft;
	var nTop;
	var oDOMParent;

	if ( !document.all )
		return true;

	var nX=oDOMLayer.style.top;
	nX=parseInt(nX.substring(0, nX.length - 2));
	var nY=oDOMLayer.style.left;
	nY=parseInt(nY.substring(0, nY.length - 2));

	for (nIndex=0; nIndex < document.all.tags(sElementID).length; nIndex++) {
		oDOMElement=document.all.tags(sElementID)[nIndex];
		if (( sElementID == 'OBJECT' ) && ( oDOMElement.codeBase.indexOf('/flash/') != -1))
			continue;
		if (( !oDOMElement ) || ( !oDOMElement.offsetParent))
			continue;
		nLeft=oDOMElement.offsetLeft;
		nTop=oDOMElement.offsetTop;
		oDOMParent=oDOMElement.offsetParent;
		while ( oDOMParent.tagName.toUpperCase() != 'BODY') {
			nLeft += oDOMParent.offsetLeft;
			nTop += oDOMParent.offsetTop;
			oDOMParent=oDOMParent.offsetParent;
		}
		// Adjust the element's offsetTop relative to the dropdown menu
		nTop=nTop - nX;

		if ( nY > (nLeft + oDOMElement.offsetWidth) || nLeft > (nY + oDOMLayer.offsetWidth));
		else if ( nTop > oDOMLayer.offsetHeight );
		else oDOMElement.style.visibility='hidden';
	}
}

function MM2K_showElement(sElementID) {
	var nIndex;
	var oDOMElement;

	if ( !document.all )
		return true;

	for (nIndex=0; nIndex < document.all.tags(sElementID).length; nIndex++) {
		oDOMElement=document.all.tags(sElementID)[nIndex];
		if (( !oDOMElement ) || ( !oDOMElement.offsetParent))
			continue;
		oDOMElement.style.visibility='';
	}
}

// Standard MM JavaScript

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); return x;
}

function MM2K_showHideLayers() { // based off v3.0 MM_showHideLayers
	var i,p,v,obj,args=MM2K_showHideLayers.arguments;
	var oDOMLayer;
	if ( !do_drop )
		return;
	for (i=0; i<(args.length-2); i+=3)
		if ( (obj=MM_findObj(args[i]))!=null ) {
			v=args[i+2];
			oDOMLayer=obj;
			if (obj.style) {
				obj=obj.style;
				v=(v=='show')?'visible':(v='hide')?'hidden':v;
			}
			if ( v=='visible' ) {
 				MM2K_hideElement('SELECT', oDOMLayer);
				MM2K_hideElement('OBJECT', oDOMLayer);
			} else {
				MM2K_showElement('SELECT');
				MM2K_showElement('OBJECT');
			}
			obj.visibility=v;
		}
}

// DEFAULTS
theImage="http://adisney.go.com/disneyvideos/javascript/";
burstAltTag='Find Your Magic Code Inside';
exitLink="Exit_undefined_movieRewards+burst";
burstXdim=270;
burstYdim=150;

// regExp to change the exit link and image
// COMMENT OUT BLOCKS TO REMOVE THE BURSTS FROM SITES
if(location.href.match(/airbuddies/)){
	exitLink="Exit_air+buddies_movieRewards+burst"}
if(location.href.match(/babyeinstein_buy3offer/)){
	exitLink="Exit_baby+einstein+buy+3+offer_movieRewards+burst";
	theImage+="burst_BabyEinstein3.png";
	burstAltTag+=' Baby\'s First Moves';
	document.write('<style type="text/css">#movierewardsBurst{right:6px;top:330px;}</style>');}
if(location.href.match(/cars/)){
	exitLink="Exit_cars_movieRewards+burst";
	theImage+="burstCars.png";
	burstAltTag+=' Cars';
	document.write('<style type="text/css">#movierewardsBurst{left:0px;top:570px;}</style>');}
if(location.href.match(/cheetahgirls/)){
	exitLink="Exit_cheetah+girls_movieRewards+burst";
	theImage+='burstCheetahGirls2.png';
	burstAltTag+=' The Cheetah Girls 2';}
if(location.href.match(/cheetahgirls2/)){
	exitLink="Exit_cheetah+girls+2_movieRewards+burst";
	theImage+='burstCheetahGirls2.png';
	burstAltTag+=' The Cheetah Girls 2';}
if(location.href.match(/dvdontv/)){
	exitLink="Exit_dvds+on+tv_movieRewards+burst";
	theImage+='burstCheetahGirls2.png';
	burstAltTag+=' The Cheetah Girls 2';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:240px;}</style>');}
if(location.href.match(/foxandthehound2/)){
	exitLink="Exit_fox+and+the+hound+2_movieRewards+burst";
	theImage+="burstFoxAndTheHound2.png";
	burstAltTag+=' Fox and the Hound II';
	document.write('<style type="text/css">#movierewardsBurst{left:20px;top:420px;}</style>');}
if(location.href.match(/highschoolmusical/)){
	theImage+="burstHighSchoolMusical.png";
	burstAltTag+=' High School Musical Remix Edition';
	exitLink="Exit_high+school+musical_movieRewards+burst"}
if(location.href.match(/incredibles/)){
	exitLink="Exit_incredibles_movieRewards+burst";
	theImage+="burstCars.png";
	burstAltTag+=' Cars';
	document.write('<style type="text/css">#movierewardsBurst{left:0px;top:270px;}</style>');}
if(location.href.match(/littlemermaid/)){
	exitLink="Exit_the+little+mermaid_movieRewards+burst";
	theImage+='burstLittleMermaid.png';
	burstAltTag+=' The Little Mermaid: Platinum Edition';}
if(location.href.match(/mickeymouseclubhouse/)){
	exitLink="Exit_mickey+mouse+clubhouse_movieRewards+burst"
	theImage+='burstMickeySavesSanta.png';
	burstAltTag+=' Mickey Saves Santa';
	document.write('<style type="text/css">#movierewardsBurst{left:240px;top:480px;}</style>');}
if(location.href.match(/mikessupershortshow/)){
	exitLink="Exit_mikes+super+short+show_movieRewards+burst";
	theImage+='burstCheetahGirls2.png';
	burstAltTag+=' The Cheetah Girls 2';
	document.write('<style type="text/css">#movierewardsBurst{left:0px;top:230px;}</style>');}
if(location.href.match(/powerrangers/)){
	exitLink="Exit_power+rangers_movieRewards+burst";
	theImage+='burstPirates2.png';
	burstAltTag+=' Pirates of the Carribean: Dead Man\'s Chest';
	document.write('<style type="text/css">#movierewardsBurst{right:150px;top:400px;}</style>');}
if(location.href.match(/robinhood/)){
	exitLink="Exit_robin+hood_movieRewards+burst";
	theImage+='burstRobinHood.png';
	burstAltTag+=' Robin Hood &mdash; Most Wanted Edition';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:280px;}</style>');}
if((location.href.match(/toystory/))&&(!location.href.match(/toystory2/))){
	exitLink="Exit_toy+story_movieRewards+burst";
	theImage+='burstCars.png';
	burstAltTag+=' Cars';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:420px;}</style>');}
if(location.href.match(/toystory2/)){
	exitLink="Exit_toy+story+2_movieRewards+burst";
	theImage+='burstCars.png';
	burstAltTag+=' Cars';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:420px;}</style>');}
/*
// START INSTANT WINS
if(location.href.match(/aladdin/)){
	exitLink="Exit_aladdin_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{right:140px;top:430px;}</style>');}
if(location.href.match(/brotherbear2/)){
	exitLink="Exit_brother+bear+2_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{left:255px;top:330px;}</style>');}
if(location.href.match(/chickenlittle/)){
	exitLink="Exit_chicken+little_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{left:180px;top:420px;}</style>');}
if(location.href.match(/cinderella/)){
	exitLink="Exit_cinderella_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{right:2px;top:185px;}</style>');}
if(location.href.match(/ladyandthetramp/)){
	exitLink="Exit_lady+and+the+tramp_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{left:10px;top:380px;}</style>');}
if(location.href.match(/ladyandthetramp2/)){
	exitLink="Exit_lady+and+the+tramp+2_movieRewards+IW2+burst";
//	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{left:10px;top:370px;}</style>');}
if(location.href.match(/peterpan/)){
	exitLink="Exit_peter+pan_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{left:200px;top:400px;}</style>');}
if(location.href.match(/preschool\/sweeps/)){
	exitLink="Exit_preschool+sweeps_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:480px;}</style>');}
if(location.href.match(/disneytreasures/)){
	exitLink="Exit_disney+treasures_movieRewards+IW2+burst";
	theImage+='dmrInstantWin2.png';
	document.write('<style type="text/css">#movierewardsBurst{right:0px;top:150px;}</style>');}

// END INSTANT WINS
*/
if(theImage=="http://adisney.go.com/disneyvideos/javascript/"){ // SET DEFAULT BURST IMAGE IF NOT SET ABOVE
	theImage+='burst600Prizes.png'}

mappy="burst";
if(theImage.match(/dmrInstantWin2/)){
	burstAltTag='Play the new Instant Win Game &mdash; 12,000 Instant Winners!';
	mappy="dmrInstantWin2";
}

MM2K_loaded=true;

document.write('<style type="text/css">');
var IE=document.all?true:false;
if(IE){
	document.write('#sweepsBurst{width:'+burstXdim+'px;height:'+burstYdim+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\''+theImage+'\',sizingMethod=\'scale\')}');
}else{
	document.write('#sweepsBurst{width:'+burstXdim+'px;height:'+burstYdim+'px;}');
}
document.write('</style>');
//don't show instant win bursts
noBurst=null;
if(!location.href.match(/brotherbear/)){noBurst="true";}
if(!location.href.match(/chickenlittle/)){noBurst="true";}
if(!location.href.match(/ladyandthetramp/)){noBurst="true";}
if(!location.href.match(/peterpan/)){noBurst="true";}
if(noBurst==null){
	// WRITE THE BURST
	document.write('<div id="movierewardsBurst" onMouseOver="MM2K_overLayer(); MM2K_showHideLayers(\'support_unt\',\'\',\'hide\',\'movierewardsBurst\',\'\',\'show\')" style="position:absolute;width:'+burstXdim+'px;height:'+burstYdim+'px;z-index:2;visibility:visible">');
	if(navigator.appName=="Microsoft Internet Explorer"){
		document.write('<div id="sweepsBurst"><img border="0" src="http://disney.go.com/disneypictures/assets/invis.gif" width="'+burstXdim+'" height="'+burstYdim+'" alt="" title="" /></div>\
		<div style="position:relative;top:-'+burstYdim+'px;"><img border="0" src="http://adisney.go.com/disneyvideos/assets/invis.gif" width="'+burstXdim+'" height="'+burstYdim+'" alt="" title="" usemap="#'+mappy+'" /></div>');
	}else{
		document.write('<img border="0" src="'+theImage+'" width="'+burstXdim+'" height="'+burstYdim+'" alt="" title="'+burstAltTag+'" usemap="#'+mappy+'" />');
	}
}
//<img src="burstCars.png" width="270" height="150" alt="" border="0" usemap="#burst">
document.write('<map name="burst">\
<area alt="" target="_top" coords="192,1,244,16" title="Close [x]" href="javascript:void(0)" onClick="javascript:document.getElementById(\'movierewardsBurst\').style.visibility=\'hidden\'">\
<area alt="" shape="poly" coords="7,55,44,44,60,3,82,37,125,40,99,70,110,113,70,98,38,121,38,82" href="http://www.disneymovierewards.com" title="Disney Movie Rewards">\
<area alt="" shape="poly" coords="101,70,133,32,151,30,172,31,192,37,212,48,225,59,232,72,235,82,235,91,233,102,225,113,219,118,113,118" href="http://www.disneymovierewards.com" name="&lid='+exitLink+'" title="'+burstAltTag+'">\
<area alt="" coords="26,121,247,141" href="http://www.disneymovierewards.com" name="&lid='+exitLink+'" title="Earn Points. Get Cool Stuff!">\
</map>');

document.write('<map name="dmrInstantWin2">\
<area alt="" target="_top" coords="192,1,244,16" title="Close [x]" href="javascript:void(0)" onClick="javascript:document.getElementById(\'movierewardsBurst\').style.visibility=\'hidden\'">\
<area alt=""target="_top"  shape="poly" coords="7,55,44,44,60,3,82,37,125,40,99,70,110,113,70,98,38,121,38,82" href="https://register.go.com/bvhe/disneymovierewards/register?method=instantwinn" title="Disney Movie Rewards">\
<area alt=""target="_top"  shape="poly" coords="101,70,133,32,151,30,172,31,192,37,212,48,225,59,232,72,235,82,235,91,233,102,225,113,219,118,113,118" href="https://register.go.com/bvhe/disneymovierewards/register?method=instantwin" name="&lid='+exitLink+'" title="'+burstAltTag+'">\
<area alt=""target="_top"  coords="26,121,247,141" href="https://register.go.com/bvhe/disneymovierewards/register?method=instantwin" name="&lid='+exitLink+'" title="Earn Points. Get Cool Stuff!">\
</map>');