/*function print(url) {
 window.open(location.protocol+'//'+location.hostname+location.pathname+'?prn=Y&'+location.search.substring(1),'prnWindow','toolbar=yes,status=no,height=600,width=780,scrollbars=yes');
}*/

if(typeof sIFR == "function"){
    sIFR.replaceElement(named({sSelector:"h1, h2", sFlashSrc:"images/neo.swf", sColor:"#626262", sLinkColor:"#0860a8", sBgColor:"#FFFFFF", sHoverColor:"#626262", nPaddingTop:0, nPaddingBottom:0, sFlashVars:"textalign=left",sWmode:"transparent"}));
   }

function addBookmark(title,url) {
    if (window.sidebar) { 
        window.sidebar.addPanel(title, url,""); 
    } else if( document.all ) {
        window.external.AddFavorite( url, title);
    } else if( window.opera && window.print ) {
        return true;
    }
}

function initRollovers() {
        if (!document.getElementById) return
        
        var aPreLoad = new Array();
        var s;
        var aImages = document.getElementsByTagName('img');

        for (var i = 0; i < aImages.length; i++) {              
                if (aImages[i].className == 'roll') {
                        var src = aImages[i].getAttribute('src');
                        var ftype = src.substring(src.lastIndexOf('.'), src.length);
                        var hsrc = src.replace(ftype, '-on'+ftype);

                        aImages[i].setAttribute('hsrc', hsrc);
                        
                        aPreLoad[i] = new Image();
                        aPreLoad[i].src = hsrc;
                        
                        aImages[i].onmouseover = function() {
                                s = this.getAttribute('src');
                                this.setAttribute('src', this.getAttribute('hsrc'));
                        }       
                        
                        aImages[i].onmouseout = function() {
                                if (!s) s = this.getAttribute('src').replace('-on'+ftype, ftype);
                                this.setAttribute('src', s);
                        }
                }
        }
}

window.onload = initRollovers;
