NALitboxMurl='http://www.cristalhotelsandresorts.com/';NALiteboxClsFlg=0;NALiteboxIE=document.all?true:false;if (!NALiteboxIE) {document.captureEvents(Event.MOUSEMOVE);}document.onmousemove=NALiteboxMouseXY;NALiteboxMseX=0;NALiteboxMseY=0;function NALiteboxMouseXY(e) {if (NALiteboxIE) { NALiteboxMseX=event.clientX + document.body.scrollLeft;NALiteboxMseY=event.clientY + document.body.scrollTop;}else{NALiteboxMseX=e.pageX;NALiteboxMseY=e.pageY;}if(NALiteboxMseX<0){ NALiteboxMseX=0; }if(NALiteboxMseY<0){NALiteboxMseY=0;}return true;}function doNALitebox(paspge,pastyp,pashgt) {if (self.innerWidth) { frameWidth=self.innerWidth-20;frameHeight=self.innerHeight;}else if(document.documentElement && document.documentElement.clientWidth){frameWidth=document.documentElement.clientWidth;frameHeight=document.documentElement.clientHeight;} else if(document.body){frameWidth=document.body.clientWidth;frameHeight=document.body.clientHeight;} if (frameHeight==0) {frameWidth=self.screen.availWidth*.9;frameHeight=(self.screen.availHeight);}var lbxHeight=document.body.scrollHeight;frameHeight=parseInt(frameHeight);frameWidth=parseInt(frameWidth);if(lbxHeight<frameHeight) {lbxHeight=frameHeight;}var tmptvh=(frameHeight-65);var tvcheight=535;if(tvcheight>tmptvh){tvcheight=tmptvh;}var tvfheight=tvcheight-35;var tvcwidth=745;var tvfwidth=710;NALiteboxClsFlg=0;NALiteboxBdyFlg=0;if(pastyp==1) {var tvcheight=tmptvh;if(tvcheight>970){var tvcheight=970;}var tvfheight=tvcheight-35;}if(pastyp==2) {if(pashgt>970){ pashgt=970;}var tvcwidth=pashgt+35;var tvfwidth=pashgt;var tvcheight=tmptvh;if(tvcheight>970){var tvcheight=970;}var tvfheight=tvcheight-35;}if(pastyp==3) {if(pashgt>970) { pashgt=970;}var tvcwidth=pashgt+35;var tvfwidth=pashgt;var tvcheight=tmptvh+35;if (tvcheight>970){var tvcheight=970;}var tvfheight=tvcheight-35;}if(pastyp==4){tmptvh=450;pashgt=725;var tvcwidth=pashgt+35;var tvfwidth=pashgt;var tvcheight=tmptvh+35;if (tvcheight>970){ var tvcheight=970;}var tvfheight=tvcheight-35;} if(pastyp==5) {tmptvh=405;pashgt=810;var tvcwidth=pashgt+35;var tvfwidth=pashgt;var tvcheight=tmptvh+35; if (tvcheight>970){var tvcheight=970;}var tvfheight=tvcheight-35;} if(pastyp==6) {tmptvh=470;pashgt=810;var tvcwidth=pashgt+35;var tvfwidth=pashgt;var tvcheight=tmptvh+35; if (tvcheight>970){var tvcheight=970;}var tvfheight=tvcheight-35;} if(pastyp>6){if (pashgt>tmptvh){var pashgt=tmptvh; }if (pashgt>970) { var pashgt=970;}var tvcheight=pashgt;var tvfheight=tvcheight-35;if (pastyp>(frameWidth+50)){var pastyp=frameWidth+50;}if (pastyp>970){var pastyp=970;}var tvcwidth=pastyp+35;var tvfwidth=pastyp;}var lpos=(NALiteboxMseX-tvcwidth);if(lpos<20) {var lpos=NALiteboxMseX;if((lpos+tvcwidth)>frameWidth){var lpos=20;}}if(lpos<20){var lpos=20;}var tpoffst=0;if (NALiteboxIE) {var tpoffst=document.body.scrollTop;}else{var tpoffst=window.pageYOffset;}var mpos=NALiteboxMseY-25;if(mpos<10){var mpos=10;}var rpos=mpos-tpoffst;if((rpos+tvcheight)>frameHeight){if((rpos+(tvcheight*0.5))>frameHeight) {var tpos=(mpos-tvcheight);}else{var tpos=(mpos-(tvcheight*0.5));}if(tpos<(10+tpoffst)){var tpos=10+tpoffst;}}else{var tpos=mpos;}if(pastyp==3 || pashgt==1 || pastyp==4 || pastyp==5 || pastyp==6) { var lpos=((frameWidth-tvcwidth)*.5); if(pastyp!=5) {NALiteboxClsFlg=1;} else {var tpos=tpos-170;if(tpos<(10+tpoffst) || (tpos+440)>frameHeight) {var tpos=5+tpoffst;}}}if(pastyp==4) {tpos=((frameHeight-55)-tvcheight)*.5; if(tpos<(10+tpoffst) || (tpos+485)>frameHeight) {var tpos=1+tpoffst;}}if(pastyp==3 || pastyp==4 || pashgt==3 || pastyp==5 || pastyp==6){window.document.body.style.height=frameHeight+'px';window.document.body.style.overflow='hidden';NALiteboxBdyFlg=1;window.document.getElementById('naliteboxBck').style.width='100%';window.document.getElementById('naliteboxBck').style.height=lbxHeight+'px';window.document.getElementById('naliteboxBck').style.backgroundImage='url('+NALitboxMurl+'nalitebox/overlay.png)';window.document.getElementById('naliteboxBck').style.backgroundRepeat='repeat';window.document.getElementById('naliteboxBck').style.visibility='visible';}window.document.getElementById('lbContenttbl').style.width=tvfwidth+'px';window.document.getElementById('lbContenttbl').style.height=tvfheight+'px';window.document.getElementById('lbContentFrame').style.height=tvfheight+'px';window.document.getElementById('lbContentFrame').style.width=tvfwidth+'px';window.document.getElementById('lbContentwin').style.left=lpos+'px';window.document.getElementById('lbContentwin').style.top=tpos+'px';window.document.getElementById('lbContentwin').style.width=tvcwidth+'px';window.document.getElementById('lbContentwin').style.height=tvcheight+'px';window.document.getElementById('lbclosewinbtn').style.width=tvcwidth+'px';
window.document.getElementById('lbContentwin').style.visibility='visible';window.document.getElementById('lbContentFrame').src=paspge;}function closeNALitebox(pasup) {if(NALiteboxClsFlg==0 || pasup==1) {window.document.getElementById('lbContentFrame').src=NALitboxMurl+'nalitebox/blank.php';window.document.getElementById('lbContentwin').style.left='0px';window.document.getElementById('lbContentwin').style.top='0px';window.document.getElementById('lbContentwin').style.width='1px';window.document.getElementById('lbContentwin').style.height='1px';window.document.getElementById('lbContentFrame').style.width='1px';window.document.getElementById('lbContentFrame').style.height='1px';window.document.getElementById('lbContentwin').style.width='1px';window.document.getElementById('lbContentwin').style.height='1px';window.document.getElementById('lbclosewinbtn').style.width='1px';window.document.getElementById('lbContentwin').style.visibility='hidden';window.document.getElementById('naliteboxBck').style.width='1px';window.document.getElementById('naliteboxBck').style.height='1px';window.document.getElementById('naliteboxBck').style.visibility='hidden';window.document.getElementById('naliteboxBck').style.backgroundImage='url('+NALitboxMurl+'nalitebox/blank.gif)';window.document.getElementById('naliteboxBck').style.backgroundRepeat='no-repeat';if(NALiteboxBdyFlg==1){window.document.body.style.height='100%';window.document.body.style.overflow='auto';}}}
