temp='link1'; n = (document.layers) ? 1:0; browser=navigator.appName; ie = (browser=='Microsoft Internet Explorer') ? 1:0; function stampafoto(immagine) { var stile; if (ie) { document.styleSheets[1].href='http://www.rugbycastello.it/stampazoom.css'; document.getElementById('stampante').innerHTML=''; window.print(); document.styleSheets[1].href='http://www.rugbycastello.it/stampante.css'; } else { pop('../ext/stampa.asp?img='+immagine,'Stampa',677,450,'cen','cen','no','no'); } } function focus(link_n,link_p) { if ((link_n!='') && (link_p!='')) { document.getElementById(link_p).style.fontWeight='bold'; document.getElementById(link_p).style.fontStyle='normal'; document.getElementById(link_p).style.color='#0000ff'; document.getElementById(link_n).style.fontWeight='normal'; document.getElementById(link_n).style.fontStyle='italic'; document.getElementById(link_n).style.color='#000000'; temp=link_n; } } function pop(URL,nome,winWidth,winHeight,winLeft,winTop,SB,RSZ) { if (winLeft < 0) winLeft = screen.width - winWidth + winLeft if (winTop < 0) winTop = screen.height - winHeight + winTop if (winTop == "cen") winTop = (screen.height - winHeight)/2 - 20 if (winLeft == "cen") winLeft = (screen.width - winWidth)/2 if (winLeft>0 & winTop>0) window.open(URL, nome, 'width='+winWidth+',height='+winHeight+',fullscreen=no,toolbar=no,status=no,menubar=no,scrollbars='+SB+',resizable='+RSZ+',directories=no,location=no,left='+winLeft+',top='+winTop+',screenX='+winLeft+',screenY='+winTop); }