<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  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);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function openCtrWindow(theURL,winName,attributes,w,h) { //v2.0
var winl = (screen.width - w) / 3;
var wint = (screen.height - h) / 3;
coords = attributes+',width='+w+',height='+h+',top='+wint+',left='+winl;
win = window.open(theURL,winName,coords);
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function popup(theURL, theName, features) {
	try {
		win.close();
	}catch(e){		
	}
	win = window.open(theURL,theName,features)
	win.focus();
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

function openTrailer(trailerURL) {
var w = 360;
var h = 480;
var winl = (screen.width - w) / 3;
var wint = (screen.height - h) / 3;
coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
win = window.open(trailerURL,'trailerwin', coords,'scrollbars=yes,resizable=yes');
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function order800() {
var w = 390;
var h = 270;
var winl = (screen.width - w) / 3;
var wint = (screen.height - h) / 3;
coords = 'width='+w+',height='+h+',top='+wint+',left='+winl;
win = window.open('http://disneyvideos.disney.go.com/moviefinder/calltoorder.html','orderwin', coords,'scrollbars=no,resizable=no');
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function monthURL (monthVar){
	var whichMonth = months[monthVar%12].toLowerCase();
	// whichMonth = whichMonth.toLowerCase();
	if (whichMonth != "june"){
		return(whichMonth.substring(0,3)); // all months only show first 3 letters
	}else{
		return(whichMonth.substring(0,4)); /// except june, it shows all 4
	}
}

function writeLink (monthNum){
	if(thisMonth <= 12 && thisYear==true){
		prevYear--;
		thisYear = false; // now we're in last year
	}
	if (monthNum==0 && isCurrent > -1){
		document.write ('<A href="#top">');
	} else if (monthNum==0){
		document.write ('<A href="http://disney.go.com/disneyvideos/newsletter/'+monthURL(currentMonth)+currentYear+'/">');
	} else {
		document.write ('<A href="http://disney.go.com/disneyvideos/newsletter/'+monthURL(thisMonth-prevMonth)+prevYear+'/">');
	}
	// checking to see if you are viewing this month or past issue
	// if this month's issue, back to top
	if (monthNum==0 && isCurrent > -1){
		document.write ('Return to top');
	} else if (monthNum==0 && isCurrent == -1){
	// if not, back to this month's
		document.write ('Back to '+months[currentMonth]+' '+currentYear);
	} else {
		thisMonth--;
		document.write (months[thisMonth%12]+' '+prevYear);
	}
	document.write ('</a><br>');
}

function backIssues (month, year){
	currentYear = year; //if it's a new year, change the year
	currentMonth=(month-1); // start month array at 0

	thisYear = true; // we're in this year
	prevMonth = 1;
	prevYear = year;
	thisMonth = currentMonth+12; // add 12 mos to trace new year
	months = ["January","February","March","April","May","June","July","August","September","October","November","December"]; //months array
	pageLoc = location.href;
	currentDate = monthURL(thisMonth)+currentYear;
	isCurrent = pageLoc.indexOf(currentDate);

	document.write ('<table cellpadding="0" cellspacing="4">');
	document.write ('<tr><td align="center" valign="top" colspan="2" class="legalese"><b><a href="javascript:popup(&#39;http://disneyvideos.disney.go.com/tracking_general.html?url=disneyvideos.disney.go.com/calendar/index.html&mlc=/disneyvideos/tracking/exit+links;/tracking/exit+links/general/disneyvideos&pn=nav+release+cal&#39;,&#39;releasecalendar&#39;,&#39;width=690,height=400,scrollbars=yes,resizable=no&#39;)" onMouseOver="MM_displayStatusMsg(&#39;Release Calendar&#39;);return document.MM_returnValue" onMouseOut="MM_displayStatusMsg(&#39;&#39;);return document.MM_returnValue">For more upcoming releases, click here</a></b></td></tr>');
	document.write ('<tr><td align="center" valign="top" colspan="2" class="legalese"><b>Newsletter Back Issues</b></td></tr>');
	document.write ('<tr><td align="center" valign="top" class="legalese"><b>');
	//first column
	writeLink (prevMonth);
	writeLink (prevMonth);
	writeLink (prevMonth);
	//end first
	document.write ('</b></td><td align="center" valign="top" class="legalese"><b>');
	//second column
	writeLink (prevMonth);
	writeLink (prevMonth);
	writeLink (prevMonth);
	//end second
	document.write ('</b></td></tr>');
	document.write ('<tr><td align="center" valign="top" colspan="2" class="legalese"><b>');
	writeLink (0);
	document.write ('</b></td></tr></table>');
}
//-->