function iFlippingZoom(path, page){
  URL = '../../../zoom.php?page='+path+'/'+page
  zoompage = window.open(URL,'ZoomPage','scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
  zoompage.moveTo(0,0);
  zoompage.resizeTo(screen.availWidth, screen.availHeight);
}
function iFlippingSend(path, page){
  URL = '../../../send.php?page='+path+'/'+page
  var width = 300;
  var height = 196;
  var scroll = scroll;
  var left = ((screen.width - width)/2)-20;
  var top = ((screen.height - height)/2)-50;
  sendpage =   window.open(URL,'SendPage', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
function iFlippingPrint(path, page){
  URL = '../../../print.php?page='+path+'/'+page
  var width = 325;
  var height = 105;
  var scroll = scroll;
  var left = ((screen.width - width)/2)-20;
  var top = ((screen.height - height)/2)-50;
  printpage =   window.open(URL,'PrintPage', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
function iFlippingSave(path, page){
  URL = '../../../save.php?page='+path+'/'+page
  location.href = URL;
}
function iFlippingOtherEditions(path){
  URL = '../../../othereditions.php?edition='+path
  var width = 300;
  var height = 282;
  var scroll = scroll;
  var left = ((screen.width - width)/2)-20;
  var top = ((screen.height - height)/2)-50;
  sendpage =   window.open(URL,'SendPage', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=no, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');
}
function iFlippingLaunchEdition(path){
  opener.window.location.href = 'content/'+path+'/setings/iflipping.php'
}
function iFlippingPrintAction(){
  if (window.print) { window.print(); }else {
	var WebBrowser = '<OBJECT ID="WebBrowser1" WIDTH=0 HEIGTH=0 CLASSID="CLSID:8856F961-340A-11D0-A96B00C04FD705A2"></OBJECT>';
	document.body.insertAdjacentHTML('beforeEnd', WebBrowser);
	WebBrowser1.ExecWB(6, 2);
	WebBrowser1.outerHTML = " ";
  }  
  //window.print();
  setTimeout("window.close()", 10);
}
function data(){
var now = new Date();
var mName = now.getMonth() + 1;
var dName = now.getDay() + 1;
var dayNr = now.getDate();
var yearNr = now.getYear();
var yearNrx = now.getYear();
if(dName==1) Day = "Domingo";
if(dName==2) Day = "Segunda";
if(dName==3) Day = "Terça-feira";
if(dName==4) Day = "Quarta-feira";
if(dName==5) Day = "Quinta-feira";
if(dName==6) Day = "Sexta-feira";
if(dName==7) Day = "Sábado";
if(mName==1) mes = "Janeiro";
if(mName==2) mes = "Fevereiro";
if(mName==3) mes = "Março";
if(mName==4) mes = "Abril";
if(mName==5) mes = "Maio";
if(mName==6) mes = "Junho";
if(mName==7) mes = "Julho";
if(mName==8) mes = "Agosto";
if(mName==9) mes = "Setembro";
if(mName==10) mes = "Outubro";
if(mName==11) mes = "Novembro";
if(mName==12) mes = "Dezembro";
if(yearNr < 2000) Year = 1900 + yearNr;
else Year = yearNr;
var hoje =(Day + ", " + dayNr + " de " + mes + " de " + Year + ".");
return hoje;
}
