var legalFooterColor = "black";
var legalFtrOpts = ["Guest Services","http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://disney.go.com/guestservices/index.html&name=g_legalFooter_guestservices" , "Register" , "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=https://register.go.com/disney/indexhome&name=g_legalFooter_register", "Help", "http://transfer.go.com/cgi/transfer.dll?srvc=dis&goto=http://psc.disney.go.com/guestservices/index.html&name=g_legalFooter_help"];

//hitbox variables
var lastSlash // the position of the last slash in the path
var fileName  // the name of the file
var fullPath // full path to the file
try{ fullPath = document.location; } catch(fp){ fullPath='http://disney.go.com/disneyhome/behrpaint/'; }
var pathString  = new String(fullPath)   ; //convert the browser location to a string
lastSlash = pathString.lastIndexOf("/");
fileName = pathString.substring(lastSlash+1,pathString.length);
if (fileName==""){fileName="index.html";}
pathString = pathString.substring(0,lastSlash);
lastSlash = pathString.lastIndexOf("/");
catName = pathString.substring(lastSlash+1,pathString.length);
if (catName != "disneyhome"){ addCat="/"+catName; } else { addCat=""; };
var pagename = fileName;
var _pn= pagename;							//page name(s)
var _mlc="/More+Shopping/DisneyHome/BehrPaint"+addCat;           					//multi-level content category
var _cp="null";                 							//campaign
var _acct="DM5103120MSF93EN3;DM510612FMNS38EN3;DM51030813MR38EN3;DM5103083LCA38EN3";     //account number(s)
var _pndef="title";             							//default page name
var _ctdef="full";              							//default content category
var _dlf="n";                   								//download filter
var _elf="n";                   								//exit link filter
var _epg="n";                   							//event page identifier
var _hcv=65;                    							//code version
var _mn="localagg";                     						//machine name
var _gn="ehg-dig.hitbox.com"; 

//style sheet
document.writeln('<style>');
document.writeln('.mickey {font-family:arial,helvetica; font-size:12px; color:#0859ad;}');
document.writeln('.buzz {font-family:arial,helvetica; font-size:12px; color:#009a31;}');
document.writeln('.pooh {font-family:arial,helvetica; font-size:12px; color:#6b69b5;}');
document.writeln('.lizzie {font-family:arial,helvetica; font-size:12px; color:#d649a5;}');
document.writeln('.princess {font-family:arial,helvetica; font-size:12px; color:#a5107b;}');
document.writeln('.black {font-family:arial,helvetica; font-size:10px; color:#000000;}');
document.writeln('.black12 {font-family:arial,helvetica; font-size:12px; color:#000000;}');
document.writeln('.nemo{font:bold 12px arial,helvetica; color:#ff9900;}');
document.writeln('</style>');


// footer
function writePrivacy(){
document.writeln('<table border="0" align="center"><tr><td align="center"><CENTER><font face="verdana, arial, helvetica, sans-serif" size="1">Please note that this website and the content it contains is administered by Disney, which is not affiliated <br>with the Home Depot. Please click below for information about the privacy policy governing this website.<font size="2"><p><a href="http://disney.go.com/guestservices/index.html" target="_blank">Guest Services</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://disney.go.com/legal/privacy_policy.html" target="_blank"><b>Privacy Policy</b></a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://disney.go.com/legal/internet_safety.html" target="_blank">Internet Safety</a></font><br><font face="verdana, arial, helvetica, sans-serif" size="1">Use of this site signifies your agreement to the <a href="http://disney.go.com/legal/conditions_of_use.html" target="_blank">terms of use</a>.<br>&copy; Disney. All rights reserved.</p></font></CENTER></td></tr></table>');
}

function popProduct(product,newHeight){
leftPos=1, topPos=1, popW=680, popH=370; // pass in height for extra lengthy ones
if (newHeight != null){ popH=newHeight; }
popDimensions = "";
var w = 800, h = 600;
if (document.all || document.layers || document.getElementById) {  w = screen.availWidth; h = screen.availHeight; }
leftPos = (w-popW)/2, topPos = (h-popH)/2;
popDimensions = 'width='+popW+',height='+popH+',left='+leftPos+',top='+topPos;
window.open("../.."+addCat+"/products/"+product+".html",product,popDimensions);
}

leftPos=1, topPos=1, popW=1, popH=1; popDimensions = "";
function centerIt(popW,popH,urlToCenter,centeredWinName){
var w = 800, h = 600;
if (document.all || document.layers || document.getElementById) {  w = screen.availWidth; h = screen.availHeight; }
leftPos = (w-popW)/2, topPos = (h-popH)/2;
popDimensions = 'width='+popW+',height='+popH+',left='+leftPos+',top='+topPos;
if (urlToCenter != null){ window.open(urlToCenter,centeredWinName,popDimensions); }
}

function roll(what){c1=what.src.substring(0,what.src.length-4); c2=what.src.substring(what.src.length-4,what.src.length); what.src=c1+'_over'+c2;}
function unroll(what){c1=what.src.substring(0,what.src.length-9); c2=what.src.substring(what.src.length-4,what.src.length); what.src=c1+c2;}

function writeNav(){
document.writeln('<table width="770" border="0" cellspacing="0" cellpadding="0" align="center"><tr>');
document.writeln('<td width="203"><a href="../index.html"><img src="../media/behr_color_logo-sm.gif" width="203" height="124" alt="Disney Color by BEHR" border="0"></a></td><td width="13"><br></td>');
characters=['mickey', 'pooh', 'princess', 'buzz', 'lizzie', 'nemo'];
for (u=0; u<characters.length; u++){
if (document.location.href.indexOf(characters[u])!=-1){
document.writeln('<td width="83" valign="top"><img src="../../media/blank.gif" width="1" height="20" alt="" border="0"><br><a href="../'+characters[u]+'/paint.html"><img src="../../media/home/'+characters[u]+'_over.gif" width="83" height="83" alt="" border="0" vspace="0" name="'+characters[u]+'"></a></td><td width="13"><br></td>');
} else {
document.writeln('<td width="83" valign="top"><img src="../../media/blank.gif" width="1" height="20" alt="" border="0"><br><a href="../'+characters[u]+'/paint.html" onMouseOver="roll(document.'+characters[u]+');" onMouseOut="unroll(document.'+characters[u]+');"><img src="../../media/home/'+characters[u]+'.gif" width="83" height="83" alt="" border="0" vspace="0" name="'+characters[u]+'"></a></td><td width="13"><br></td>');
}
}
document.writeln('<td><img src="../../media/blank.gif" width="1" height="85" alt="" border="0"></td></tr></table>');
}

var tracky=0; var classy='';
function writeProduct(pid, pname, hi){
if (tracky%4==0){ document.writeln('<tr>'); }
tracky++;
if (hi!=null){ addMe=','+hi; } else addMe='';
document.writeln('<td valign="top" align="center" width="25%"><a href="javascript:popProduct(\''+pid+'\''+addMe+');" class="'+classy+'"><img src="../../princess/products/images/'+pid+'.jpg" width="102" height="82" alt="" border="0"><br>'+pname+'</a></td>');
if (tracky%4==0){ document.writeln('</tr>'); }
}