if(typeof(screen)=="object"){ w=screen.width; h=screen.height;	}
else{w=screen.width;h=screen.height;}
if((w<=0)||(h<=0)){w=800;h=600;}
function apriFlat(name,rows,srctop,w,h,x,y,scroll,_lang,title)
{	path="http://www.oggettiweb.co.uk/provaorogi/";
	if(w<800) {scroll="yes"; srcmain="mx/f800_"+_lang+".html";}
	else if(w==800){srcmain=path+"mx/f800_"+_lang+".html";}
	else srcmain=path+"mx/f1024_"+_lang+".html"; if(!title) title="OROGI"; 
	html="<html><head><title>"+title+"</title></head><frameset onfocus=\"top.window.moveTo("+x+","+y+")\" rows=\""+rows+",*\"";
	html+=" framespacing=\"0\"><frame name=\"up\" src=\""+srctop+"\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" frameborder=\"0\">";
	html+="<frame name=\"main\" src=\""+srcmain+"\" marginwidth=\"0\" marginheight=\"0\" scrolling=\""+scroll+"\" frameborder=\"0\"></frameset></html>";
	flat=window.open("",name,"channelmode=0,fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,width="+w+",height="+h);
	flat.resizeTo(Math.ceil(w), Math.ceil(h)); flat.moveTo(Math.ceil(x), Math.ceil(y));
	flat.document.open(); flat.document.write(html); flat.document.close(); flat.focus();}
var stato = "up"; var ofx=0; var ofy=0; var px=0; var py=0;
function sposta(){if(stato=="down"){ofx= event.x;ofy= event.y;stato="drag";} 																				
else if( stato == "drag") {px=event.screenX-ofx-1;py=event.screenY-ofy-1; 																
top.window.x=px;top.window.y=py;top.window.moveTo(px,py);}else stato="up";}
function ripristina(){top.window.moveTo(0,0);} 
function og(ok,d){if(ok)web(d);}function web(d0){h1=(h-426)/2+d0;
cod="<img src=\"img/glass.gif\" border=\"0\" width=\"90\" height=\""+h1+"\">";
document.write(cod);}

