<!--
// preload the menu images

var SubNavHi = new Image();
var SubNav = new Image();
SubNavHi.src = "tipografie_servicii_tipografie_pliante_mape_carti_vizita/butonbis.gif";
SubNav.src = "tipografie_servicii_tipografie_pliante_mape_carti_vizita/buton.gif";


function popit(url, name, x, y)
{

if( self.screen ) // true in N4
        {
        W = screen.width
        H = screen.height
        N = Math.pow( 2, screen.pixelDepth )
        }
else
if( self.java ) // for N3, true if LiveConnect enabled
        {
        dtk = java.awt.Toolkit.getDefaultToolkit()
        ss = dtk.getScreenSize()
        W = ss.width
        H = ss.height
        N = Math.pow( 2, dtk.getColorModel().getPixelSize() )
        }
else
if( self.theBody ) // here should come E4
        {
    W = theBody.offsetWidth
    H = theBody.offsetHeight
        N = "?"
        }
else // N2, E3, N3 w/Java off, probably Opera and WebTV
        {
        W = H = N = "?"
        }
W = (W/2) - (x/2)
H = (H/2) - (y/2)

win = window.open(url,name,'width='+x+',height='+y+',resizable=yes,scrollbars=no,left='+W+',top='+H+',screenX='+W+',screenY='+H);
win.focus()
}
function popup(url){
pwin = window.open(url ,'win','resizable=yes,width=400,height=400,scrollbars=yes,left=100,top=100,screenX=100,screenY=100');
pwin.focus()
}


function subNavHi(obj) {
	//obj.className='subNavHi';
	obj.style.backgroundImage = 'url(tipografie_servicii_tipografie_pliante_mape_carti_vizita/butonbis.gif)';
	if (obj.children){
		obj.children[0].className='underlineIt';
		//obj.children[0].style.backgroundImage=' url(/images_menu/subNavActive_4.gif)';
		//obj.setAtribute("background", "/images_menu/subNavActive_4.gif");
		//alert(obj.style.background-image);
	}else if (obj.childNodes){
		obj.childNodes[0].className='underlineIt';
	}
}
function subNavLo(obj) {
	//obj.className='subNav';
	obj.style.backgroundImage = 'url(tipografie_servicii_tipografie_pliante_mape_carti_vizita/buton.gif)';
	if (obj.children)
		obj.children[0].className='subNavLink';
	else if (obj.childNodes)
		obj.childNodes[0].className='subNavLink';
}
// Allows clicking on non text surface of tabs
function tabClick(src) {
	if (src.children) // IE
		src.children[0].click();
	else if (src.childNodes) // NN6
		window.location = src.childNodes[0].href;
}
//-->
