

ns4=(navigator.appName.indexOf("Netscape")>=0 && !document.getElementById)? 1 : 0;
ie4=(document.all && !document.getElementById)? 1 : 0;
ie5=(document.getElementById && document.all)? 1 : 0;
ns6=(document.getElementById && navigator.appName.indexOf("Netscape")>=0 )? 1: 0;
w3c=(document.getElementById)? 1 : 0;





//ZOOM IMMAGINI:
	function move_div(x,y){
		if (isNaN(x+y))return
		
		if(ns4) {
			div1.moveTo(x,y)
		}else {
			div1.style.left=x+'px';div1.style.top=y+'px';
		}
	}
	
	function write_div(text){
		if(ns4){
			div1.document.open();
			div1.document.write(text);
			div1.document.close();
		}else {
			div1.innerHTML=text;
		}
	}
	 
	function big(n){
		ondiv=n;
		write_div("<a href=javascript:void(0) onclick='big_hide()' onmouseover='ondiv=1'><img border=0 name=ib src=img/img_catalogo/"+n+"></a>");
		move_div(x,y)
	}
	
	function big_hide(){
		ondiv=0;
		t3=window.setTimeout('big_hide2()',100);
	}
	
	function big_hide2(){
		if (ondiv==0){
			write_div("");
			move_div(-1000,-1000);
		}
	}
	
	y=x=0;
	function dragIt(evt) {
		if(ie4||ie5){
			x=window.event.clientX+document.body.scrollLeft; y=window.event.clientY+document.body.scrollTop;
		}else {
			x=evt.pageX; 
			y=evt.pageY; 
		}
	}
	
	document.onmousemove = dragIt;
	if(ns4){
		document.captureEvents( Event.MOUSEMOVE );
	}



//STAMPA

	function printit(){  
		if (ns4 || w3c) {
			window.print() ;  
		} else {
			var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGHT=0 CLASSID="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></OBJECT>';
			document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
			WebBrowser1.ExecWB(6, 2);
			WebBrowser1.outerHTML = "";  
		}
	}
