var CurrentPopUp = null; var DescriptionText = new Array (""); var CurrentImage = 0; function MasterInit () {
Warning: file(DinamicData/Photo/PhotoMetait.txt) [function.file]: failed to open stream: No such file or directory in /web/htdocs/www.bbrosadeiventi.com/home/index.js.php on line 16
DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";DescriptionText[DescriptionText.length] = "";} function MasterDispose () { ; } function OpenPopUp (ImgRef) { var ImageName = "DinamicData/Photo/Big/"+ImgRef+".jpg"; CurrentImage = ImgRef; PopuPContent = "
"; PopuPContent +="
"; PopuPContent +="\"\""; PopuPContent +="
"; PopuPContent +="
"; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +="
"; PopuPContent +=""; PopuPContent +=""; PopuPContent +=""; PopuPContent +="
"; PopuPContent +="
"; PopuPContent +="
"; if (CurrentPopUp == null) { CurrentPopUp = new Window ( { className:"mac_os_x", width:650, height:530, zIndex:-100, resizable:false, closable:true, minimizable:false, maximizable:false, title:"B&B Rosadeiventi ("+DescriptionText[ImgRef]+")", draggable:true, wiredDrag:false, showEffect:Effect.BlindDown, hideEffect:Effect.SwitchOff, onClose:ClosePopUp } ); CurrentPopUp.showCenter (); CurrentPopUp.setConstraint (true,{bottom:10}); CurrentPopUp.toFront (); } CurrentPopUp.setTitle ("B&B Rosadeiventi ("+DescriptionText[ImgRef]+")"); CurrentPopUp.getContent ().innerHTML = PopuPContent; Nifty("table.ButtonMedium a","transparent"); if (ImgRef == 1) { MyElemID ("PrevBtn").style.visibility = "hidden"; } if (ImgRef == 8) { MyElemID ("NextBtn").style.visibility = "hidden"; } } function ShowPhoto (Direction) { CurrentImage = CurrentImage+Direction; var ImageName = "DinamicData/Photo/Big/"+CurrentImage+".jpg"; MyElemID ("PhotoField").src = ImageName; CurrentPopUp.setTitle ("B&B Rosadeiventi ("+DescriptionText[CurrentImage]+")"); MyElemID ("PrevBtn").style.visibility = "visible"; MyElemID ("NextBtn").style.visibility = "visible"; if (CurrentImage == 1) { MyElemID ("PrevBtn").style.visibility = "hidden"; } if (CurrentImage == 8) { MyElemID ("NextBtn").style.visibility = "hidden"; } } function ClosePopUp () { CurrentPopUp = null; }