// New Window
function MM_openBrWindow(theURL,winName,features)
{ //v2.0
  w=window.open(theURL,winName,features);
  w.focus();
}


// Smart Roll Over
(function(onLoad) {
   if(window.addEventListener) window.addEventListener("load",   onLoad, false);
   else if(window.attachEvent) window.attachEvent     ("onload", onLoad);
}) (
    function() {
        var result;
        var images;
        var image;
        function preLoadAndCreateFunction(name, filename)
        {
            var preload = new Image();
            preload.src = filename;
            return function() { this.setAttribute(name, filename); }
        }

        if(document.getElementsByTagName) {
            images = document.getElementsByTagName("img");
            for(var idx = 0; idx < images.length; idx++) {
                image  = images[idx];
                if(result = image.getAttribute("src").match(/(.*_)off(\..*)/i)) {
                    image.onmouseover = preLoadAndCreateFunction("src", result[1] + "on"    + result[2]);
                    image.onmouseout  = preLoadAndCreateFunction("src", result[1] + "off"   + result[2]);
//                    image.onmousedown = preLoadAndCreateFunction("src", result[1] + "click" + result[2]);
//                    image.onmouseup   = preLoadAndCreateFunction("src", result[1] + "on"    + result[2]);
                }
            }
        }
    }
);
/*--end of this file--*/
