
function Closeup(img)
{
  foto1= new Image();
  foto1.src=(img);
  Controlla(img);
}

function Controlla(img)
{
  if((foto1.width!=0)&&(foto1.height!=0)){
    viewFoto(img);
  }
  else{
    funzione="Controlla('"+img+"')";
    intervallo=setTimeout(funzione,20);
  }
}

function viewFoto(img)
{
  
  w=foto1.width+20;
  h=foto1.height+20;
  
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;

  string="width="+w+",height="+h+",top="+wint+",left="+winl;
  
  finestra=window.open(img,"",string);
}

function Printing(id){ 
	if(window.print()){
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+".print()");}}
}

function Closing(id,c){ 
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+"."+c);}
}

function PopupEvent(file_id)
{
  var h = 400;
  var w = 400;
  var sb = 'Yes';
  var rs = 'Yes';
  var mb = 'Yes';
  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  
  settings = 'height='+h+',';
  settings += 'width='+w+',';
  settings +='top='+wint+',';
  settings +='left='+winl+',';
  settings +='scrollbars='+sb+',';
  settings +='menubar='+mb+',';
  settings +='resizable='+rs;
    
  finish = window.open(file_id,"",settings);
}

myPopup = '';

function PopupWindow(file_id,w,h,rs,sb,mb)
{

  var winl = (screen.width-w)/2;
  var wint = (screen.height-h)/2;
  
  settings = 'height='+h+',';
  settings += 'width='+w+',';
  settings +='top='+wint+',';
  settings +='left='+winl+',';
  settings +='scrollbars='+sb+',';
  settings +='menubar='+mb+',';
  settings +='resizable='+rs;
    
  myPopup = window.open(file_id,"",settings);
    if (!myPopup.opener)
         myPopup.opener = self; 
}
function showContectMsg()
{
	alert("For bookings please call - 1800 075 080");
	return false;
}
