

// Set the url of the banner popup window page
var path = "/localshop/inserzioni/";

// Set the title of the popup window
var title = "Localport - Localshop"

// Set the size of the popup window
var windowWidth = 550; // cannot be less than 100
var windowHeight = 250; // cannot be less than 100

// Set the position of the popup window
var windowX = 100;
var windowY = 100;

// Set true to auto-center (positions will be ignored)
var autocenter = true;

// Set true for popup to close when launch page does
var autoclose = true;

var s="width="+windowWidth+",height="+windowHeight;
var beIE=document.all?true:false;
var done=new Object("no");

if(autocenter){
windowX = (window.screen.width-windowWidth)/2;
windowY = (window.screen.height-windowHeight)/2;
}

function doAgilePopup(theURL){
if (beIE){
	agilePopper = window.open("","popAgile","fullscreen,"+s); 	agilePopper = window.open("","popAgile","fullscreen","width=550","height=250"); 
	//agilePopper.blur();
	window.focus();
	agilePopper.resizeTo(windowWidth,windowHeight);
	agilePopper.moveTo(windowX,windowY);	theURL=path+theURL
	var frameString="<html><head><title>Localport - Localshop</title></head><frameset rows='*,0' framespacing=0 border=0 frameborder=0><frame name='top' src='"+theURL+"' scrolling=yes><frame name='bottom' src='about:blank' scrolling='no'></frameset></html>"
	agilePopper.document.open();
	agilePopper.document.write(frameString);
	agilePopper.document.close();
}else{
	agilePopper=window.open(theURL,"popAgile","scrollbars=no,"+s);
	agilePopper.blur();
	window.focus(); 
	agilePopper.resizeTo(windowWidth,windowHeight);
	agilePopper.moveTo(windowX,windowY);
} 
//agilePopper.blur(); 
//done="okay";
}
