startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("suckerfishnav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;






// Javascript function for opening up a window
function NewWindow(PageToShow, WindowWidth, WindowHeight)
{


    // Grab the current page height
    var PageHeight = screen.height;
    var PageWidth = screen.width;
    
    
    // Determine the top and left positions
    var PageTop = ((PageHeight - WindowHeight) / 2);
    var PageLeft = ((PageWidth - WindowWidth) / 2);
    
    
    // Open up the new window
    window.open(PageToShow, "null", "width=" + WindowWidth + ", height=" + WindowHeight + ", top=" + PageTop + ", Left=" + PageLeft + "location=no, menubar=no, resizeable=no, scrollbars=no, status=no, titlebar=no, toolbar=no");


}







// Javascript function for the tell a friend onclick event
function TellFriend()
{


    // Grab the current page height
    var PageHeight = screen.height;
    var PageWidth = screen.width;
    
    
    // Determine the top and left positions
    var PageTop = ((PageHeight - 525) / 2);
    var PageLeft = ((PageWidth - 600) / 2);
    
    
    // Grab the current url that we are on
    var CurrentURL = location.href;
    CurrentURL = CurrentURL.replace(/&/, "%26");
    var NewURL = "Dynamic/TellFriend.aspx?from=" + CurrentURL;
    
    
    // Open up the new window
    window.open(NewURL, "null", "width=600, height=525, top=" + PageTop + ", Left=" + PageLeft + "location=no, menubar=no, resizeable=no, scrollbars=no, status=no, titlebar=no, toolbar=no");


}






// Javascript function for showing the captcha explanation
function ShowCaptcha()
{

    // Grab the current page height
    var PageHeight = screen.height;
    var PageWidth = screen.width;
    
    
    // Determine the top and left positions
    var PageTop = ((PageHeight - 440) / 2);
    var PageLeft = ((PageWidth - 440) / 2);
        
    
    // Open up the new window
    window.open("/ART/Dynamic/Captcha/codeverification.html", "null", "width=440, height=440, top=" + PageTop + ", Left=" + PageLeft + "location=no, menubar=no, resizeable=no, scrollbars=no, status=no, titlebar=no, toolbar=no");


}






// Function removes the text from a text field on focus
function RemoveEmail(TextBox)
{
    if (TextBox.value == "E-mail Address")
    {
        TextBox.value = "";
    }
}






// Function resets the text field e-mail address
function ResetEmail(TextBox)
{
    if (TextBox.value == "")
    {
        TextBox.value = "E-mail Address";
    }
}






// Javascript function open a new window to display the larger image
function ViewImage(FileName, ImageWidth, ImageHeight)
{
	
	
	// Grab the screen properties
	var PageWidth = screen.width;
	var PageHeight = screen.height;
	
	
	// Add 10 pixels to the image width and image height
	var NewWidth = (parseInt(ImageWidth) + 20);
	var NewHeight = (parseInt(ImageHeight) + 20);
	
	
	// Create top and left positions
	var Top = ((PageHeight - ImageHeight) / 2);
	var Left = ((PageWidth = ImageWidth) / 2);
	
	
	// Create new URL
	var URL = "/art/objects/images/" + FileName;
	
	
	// Create new window properties
	var WindowProperties = "width=" + NewWidth + ", height=" + NewHeight + ", top=" + 10 + ", left=" + 10;
	
	
	// Open the new window
	window.open(URL, "null", WindowProperties);
	
	
}



// Function fixes the transparent png on IE 6
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
   var arVersion = navigator.appVersion.split("MSIE")
   var version = parseFloat(arVersion[1])
   if ((version >= 5.5) && (document.body.filters)) 
   {
      for(var i=0; i<document.images.length; i++)
      {
         var img = document.images[i]
         var imgName = img.src.toUpperCase()
         if (imgName.substring(imgName.length-3, imgName.length) == "PNG")
         {
            var imgID = (img.id) ? "id='" + img.id + "' " : ""
            var imgClass = (img.className) ? "class='" + img.className + "' " : ""
            var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
            var imgStyle = "display:inline-block;" + img.style.cssText 
            if (img.align == "left") imgStyle = "float:left;" + imgStyle
            if (img.align == "right") imgStyle = "float:right;" + imgStyle
            if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
            var strNewHTML = "<span " + imgID + imgClass + imgTitle
            + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
            + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
            + "(src=\'" + img.src + "\', sizingMethod='image');\"></span>" 
            img.outerHTML = strNewHTML
            i = i-1
         }
      }
   }    
}