﻿function ShowElement(element)
{
    element.setAttribute("style", "");
    element.getAttribute("style").display = "";
    
    return 0;
}

function HideElement(element)
{
    element.setAttribute("style", "display:none;");   
    element.getAttribute("style").display = "none";
    
    return 0;
}

function SetStyleAttribute(element, attributeName, attributeValue)
{
    element.setAttribute("style", "display:" + attributeValue + ";");   
    return 0;
}

function PreloadImages(imageArray)
{
    if (document.images)
    {
        preload_image_object = new Image();
        var i;
        for(i=0; i < imageArray.length; i++) 
        {
            preload_image_object.src = imageArray[i];
        }
    }
}
  
