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(\'ratatouilleBurst\',\'\',\'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;
		}
}
exitLink="BURST_to_ratatouille_site"; // regExp to change the exit link
if(location.href.match(/ratatouille/)){exitLink="BURST_to_ratatouille_site"}
if(location.href.match(/ratatouille/)){exitLink="BURST_to_ratatouille_site"}
MM2K_loaded=true;
burstXdim=270;
burstYdim=162;
burstAltTag='Enter the Sweepstakes';
document.write('<style type="text/css">\
#sweepsBurst{width:'+burstXdim+'px;height:'+burstYdim+'px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(src=\'http://disney.go.com/disneypictures/ratatouille/images/burst_ratatoullie.png\',sizingMethod=\'scale\')}\
</style>\
<map name="burst">\
<area alt="" coords="221,14,268,-25" href="javascript:void(0)" onClick="javascript:document.getElementById(\'ratatouilleBurst\').style.visibility=\'hidden\'" title="x close">\
<area alt="" coords="0,16,269,162" href="http://disney.go.com/disneymovierewards/france/?BAC-ratburst1030" name="&lid='+exitLink+'" title="Ratatouille Sweepstakes">');

// WRITE THE BURST
//document.write('<div id="ratatouilleBurst" onMouseOver="MM2K_overLayer(); MM2K_showHideLayers(\'support_unt\',\'\',\'hide\',\'ratatouilleBurst\',\'\',\'show\')" style="position:absolute;width:'+burstXdim+'px;height:'+burstYdim+'px;z-index:2;visibility:visible">');
document.write('<div id="ratatouilleBurst" onMouseOver="MM2K_overLayer(); MM2K_showHideLayers(\'support_unt\',\'\',\'hide\',\'ratatouilleBurst\',\'\',\'show\')" style="position:absolute;width:'+burstXdim+'px;height:'+burstYdim+'px;z-index:2;visibility:hidden">');
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="#burst" /></div>');
}else{
	document.write('<img border="0" src="http://disney.go.com/disneypictures/ratatouille/images/burst_ratatoullie.png" width="'+burstXdim+'" height="'+burstYdim+'" alt="'+burstAltTag+'" title="'+burstAltTag+'" usemap="#burst" />');
}
//setTimeout("removeBurst();",10000);
//function removeBurst(){document.getElementById('ratatouilleBurst').style.visibility='hidden'}