// Script for RD-Online, by TecnoPress srl from www.cataloghierivistedigitali.it
// API Javascript version 1.1


 function openDigitalPubWithDomain(guid,mydomain){
   var win = null;
   var w = 1120;
   var h = 752;
   var scroll = 'no';
   var name = 'DigitalPub'+guid;
 
   if(mydomain == ''){
     mydomain = 'www.cataloghierivistedigitali.it';
   }
   
   var page = 'http://'+ mydomain + '/pub/'+guid+'/index.html';
   
   LeftPosition = (screen.width) ? (screen.width-w)/2 : 0; 
   TopPosition = (screen.height) ? (screen.height-h)/2 : 0; 

   settings = 'height='+h+',width='+w+',top='+TopPosition+', left='+LeftPosition+',scrollbars='+scroll+',resizable'; 

   win = window.open(page,name,settings);
   
   if(win.window.focus){
      win.window.focus(); 
   }    
   
   }
   
  function openDigitalPub(guid){
    openDigitalPubWithDomain(guid,'');
  }
 
   