var xyz_lbx_custom_today = new Date(); function xyz_lbx_get_cookie_custom( name ) { var start = document.cookie.indexOf( name + "=" ); //alert(document.cookie); var len = start + name.length + 1; if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) { return null; } if ( start == -1 ) return null; var end = document.cookie.indexOf( ";", len ); if ( end == -1 ) end = document.cookie.length; return unescape( document.cookie.substring( len, end ) ); } function xyz_lbx_set_cookie(c_name,value,exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString())+ ";path=/"; document.cookie=c_name + "=" + c_value; } function lbx_hide_popup_custom(evt,id,triggonclickmeth,trigger,def_disp,displayoutopt,slideab,slidestart,lbxtop,lbxtopdim,lbxleft,lbxleftdim,lbxright,lbxrightdim,lbxbottom,lbxbodim,lbxhe,lbxhedim,lbxwid,lbxwiddim,lbxbdwidth,clrs) { if (!evt) var evt = window.event; if(evt!='na') { //alert(evt); evt.cancelBubble = true; if (evt.stopPropagation) evt.stopPropagation(); } var screenheight=jQuery(window).height(); var screenwidth=jQuery(window).width(); var hadnjust; var wiadnjust; if(lbxhedim=="%") { hadnjust=(screenheight*lbxhe)/100; lbxhe=hadnjust-(2*lbxbdwidth); lbxhedim="px"; } if(lbxwiddim=="%") { wiadnjust=(screenwidth*lbxwid)/100; lbxwid=wiadnjust-(2*lbxbdwidth); lbxwiddim="px"; } if(lbxhedim=="px") { hadjust=(screenheight-lbxhe)/2; } else { hadjust=(100-lbxhe)/2; } if(lbxwiddim=="px") { wiadjust=(screenwidth-lbxwid)/2; } else { wiadjust=(100-lbxwid)/2; } if( displayoutopt==4 && slideab==1) { var lbxhetos; var lbxwidtos; var lbxwidtos=lbxwid+(2*lbxbdwidth); var lbxhetos=lbxhe+(2*lbxbdwidth); if(slidestart==0) { jQuery('#lbx_light_'+id).animate({ "top":"-="+lbxhetos+lbxhedim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "top":"-="+lbxhetos+lbxhedim},"slow"); } if(slidestart==1) { jQuery('#lbx_light_'+id).animate({ "left":"-="+lbxwidtos+lbxwiddim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "left":"-="+lbxwidtos+lbxwiddim},"slow"); } if(slidestart==2) { jQuery('#lbx_light_'+id).animate({ "right":"-="+lbxwidtos+lbxwiddim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "right":"-="+lbxwidtos+lbxwiddim},"slow"); } if(slidestart==3) { jQuery('#lbx_light_'+id).animate({ "bottom":"-="+lbxhetos+lbxhedim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "bottom":"-="+lbxhetos+lbxhedim},"slow"); } } else { document.getElementById("lbx_light_"+id).style.display="none"; document.getElementById("lbx_fade_"+id).style.display="none"; } if(displayoutopt==4) { var widtr=document.getElementById('lbx_trig_div_'+id).offsetWidth; var hetr=document.getElementById('lbx_trig_div_'+id).offsetHeight; if(slideab==0) { if(slidestart==0) { document.getElementById('lbx_trig_div_'+id).style.top='0px'; if(def_disp==1) { var calcu=((lbxwid-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcu+'px'; } if(def_disp==8) { var calcu=((screenwidth-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcu+'px'; } if(def_disp==7) { var calcu=((lbxwid-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.right=calcu+'px'; } } if(slidestart==1) { document.getElementById('lbx_trig_div_'+id).style.left='0px'; if(def_disp==1) { var calcu=((lbxhe-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcu+'px'; } if(def_disp==2) { var calcu=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcu+'px'; } if(def_disp==3) { var calcu=((lbxhe-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcu+'px'; } } if(slidestart==2) { document.getElementById('lbx_trig_div_'+id).style.right='0px'; if(def_disp==7) { var calcu=((lbxhe-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcu+'px'; } if(def_disp==6) { var calcu=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcu+'px'; } if(def_disp==5) { var calcu=((lbxhe-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcu+'px'; } } if(slidestart==3) { document.getElementById('lbx_trig_div_'+id).style.bottom='0px'; if(def_disp==3) { var calcu=((lbxwid-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcu+'px'; } if(def_disp==4) { var calcu=((screenwidth-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcu+'px'; } if(def_disp==5) { var calcu=((lbxwid-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.right=calcu+'px'; } } } } if(trigger!=1 && triggonclickmeth==2) { eval("xyz_lbx_rendered"+id+"=false"); } else { eval("xyz_lbx_rendered"+id+"=true"); document.getElementById("lbx_light_"+id).innerHTML=""; } if(clrs) { clrs(); } if(document.getElementById("closediv_"+id)!=null) { document.getElementById("closediv_"+id).style.display="none"; } } function lbx_show_closebutton_custom(id) { document.getElementById("closediv_"+id).style.display="block"; } function lbx_show_popup_custom(id,xyz_lbx_pc_cookie_val,mode,pagecount,repeat,shrs,clrs,clbtopt,clbt,trigger,triggonclickmeth,displayoutopt,posit,def_disp,slideab,slidestart,lbxhe,lbxhedim,meditpos,lbxleft,lbxledim,lbxwid,lbxwiddim,wiadjust,hadjust,lbxbdwidth,lbxauclopt,lbxaucltiming,lbxtop,lbxtopdim,lbxbottom,lbxbodim,lbxright,lbxrightdim,xyz_lbx_until_cookcheck) { var topf; var leftf; var topof; var leftof; var rightf; var rightof; var bottomf; var bottomof; var screenheight=jQuery(window).height(); var screenwidth=jQuery(window).width(); var lbxwidtos; var lbxhetos; var dispche=0; if(trigger!=1 && triggonclickmeth==2 && xyz_lbx_until_cookcheck==0 ) { dispche=1; } var xyz_lbx_tracking_cookie_name="_xyz_lbx_until_"+id; var xyz_lbx_tracking_cookie_val=xyz_lbx_get_cookie_custom(xyz_lbx_tracking_cookie_name); if(dispche==0) { if(xyz_lbx_tracking_cookie_val==1) return; } if( mode=="page_count_only"|| mode =="both") { if(xyz_lbx_pc_cookie_val !=pagecount) return; } document.getElementById("lbx_light_"+id).style.display="block"; if(displayoutopt==1) { document.getElementById("lbx_fade_"+id).style.display="block"; } else { document.getElementById("lbx_fade_"+id).style.display="none"; } var hadjust; var wiadjust; var leftadjust; var rightadjust; var topadjust; var bottomadjust; if(lbxhedim=="px") { hadjust=(screenheight-lbxhe)/2; topadjust=screenheight-lbxhe; bottomadjust=screenheight-lbxhe; } else { hadjust=(100-lbxhe)/2; topadjust=100-lbxhe; bottomadjust=100-lbxhe; } if(lbxwiddim=="px") { leftadjust=screenwidth-lbxwid; rightadjust=screenwidth-lbxwid; wiadjust=(screenwidth-lbxwid)/2; } else { wiadjust=(100-lbxwid)/2; leftadjust=100-lbxwid; rightadjust=100-lbxwid; } hadjust=hadjust-lbxbdwidth; wiadjust=wiadjust-lbxbdwidth; if(posit==2) { if(displayoutopt==1 || (displayoutopt==2 && slideab==0)) { if(def_disp==2) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==3) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==4) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } if(def_disp==5) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } if(def_disp==6) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.right="0px"; } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } if(def_disp==8) { document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } if(def_disp==9) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } } } if(posit==1) { if( (displayoutopt==2 && slideab==0)) { if(meditpos==1) { document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; } if(meditpos==2) { document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; document.getElementById("lbx_light_"+id).style.right=lbxright+lbxrightdim; } if(meditpos==3) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; document.getElementById("lbx_light_"+id).style.bottom=lbxbottom+lbxbodim; } if(meditpos==4) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; document.getElementById("lbx_light_"+id).style.right=lbxright+lbxrightdim; document.getElementById("lbx_light_"+id).style.bottom=lbxbottom+lbxbodim; } } } if(posit==2 && displayoutopt==4 && slideab==1) { if(slidestart==0) { document.getElementById("lbx_light_"+id).style.top=-lbxhe+lbxhedim; if(def_disp==1) { document.getElementById("lbx_light_"+id).style.left='0px'; } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.right='0px'; } if(def_disp==8) { var setleft=(screenwidth-lbxwid)/2-lbxbdwidth; document.getElementById("lbx_light_"+id).style.left=setleft+lbxwiddim; } var topsl; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(tt[0]); topsl=eval(tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "top": "-="+topsl+lbxhedim},"slow"); } if(slidestart==1) { var leftsl; document.getElementById("lbx_light_"+id).style.left=-lbxwid+lbxwiddim; if(def_disp==2) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.top='0px'; } if(def_disp==3) { document.getElementById("lbx_light_"+id).style.bottom='0px'; } leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0]); leftsl=eval(tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "left": "-="+leftsl+lbxwiddim},"slow"); } if(slidestart==2) { document.getElementById("lbx_light_"+id).style.right=-lbxwid+lbxwiddim; if(def_disp==5) { document.getElementById("lbx_light_"+id).style.bottom='0px'; } if(def_disp==6) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.top='0px'; } var tt; var rightsl; rightf=document.getElementById('lbx_light_'+id).style.right; if(lbxwiddim=="%") { tt=rightf.split("%"); } else { tt=rightf.split("px"); } rightof=eval(tt[0]); rightsl=eval(tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "right":"-="+rightof+lbxwiddim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "right":"-="+rightsl+lbxwiddim},"slow"); } if(slidestart==3) { toptof=lbxhe+(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.bottom=-toptof+lbxhedim; var toptof; if(def_disp==3) { document.getElementById("lbx_light_"+id).style.left='0px'; } if(def_disp==4) { document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } if(def_disp==5) { document.getElementById("lbx_light_"+id).style.right='0px'; } jQuery('#lbx_light_'+id).animate({ "bottom": "+="+toptof+lbxhedim},"slow"); jQuery('#lbx_trig_div_'+id).animate({ "bottom": "+="+toptof+lbxhedim},"slow"); } } if(displayoutopt==4 && slideab==0) { var widtr=document.getElementById('lbx_trig_div_'+id).offsetWidth; var hetr=document.getElementById('lbx_trig_div_'+id).offsetHeight; lbxwidtos=lbxwid+(2*lbxbdwidth); lbxhetos=lbxhe+(2*lbxbdwidth); if(slidestart==0) { var calcut=lbxhetos; document.getElementById('lbx_trig_div_'+id).style.top=calcut+'px'; if(def_disp==1) { var calcul=((lbxwidtos-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcul+'px'; } if(def_disp==8) { var calcul=((screenwidth-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcul+'px'; } if(def_disp==7) { var calcul=((lbxwidtos-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.right=calcul+'px'; } } if(slidestart==1) { var calcut=lbxwidtos; document.getElementById('lbx_trig_div_'+id).style.left=calcut+'px'; if(def_disp==1) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; } if(def_disp==2) { var calcul=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; } if(def_disp==3) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcul+'px'; } } if(slidestart==2) { var calcut=lbxwidtos; document.getElementById('lbx_trig_div_'+id).style.right=calcut+'px'; if(def_disp==7) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; } if(def_disp==6) { var calcul=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; } if(def_disp==5) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcul+'px'; } } if(slidestart==3) { var calcul=lbxhetos; document.getElementById('lbx_trig_div_'+id).style.bottom=calcul+'px'; if(def_disp==3) { var calcut=(lbxwidtos-widtr)/2; document.getElementById('lbx_trig_div_'+id).style.left=calcut+'px'; } if(def_disp==4) { var calcut=(screenwidth-widtr)/2; document.getElementById('lbx_trig_div_'+id).style.left=calcut+'px'; } if(def_disp==5) { //var calcut=lbxwid/2-lbxbdwidth; var calcut=(lbxwidtos-widtr)/2; document.getElementById('lbx_trig_div_'+id).style.right=calcut+'px'; } } } if(posit==2 && displayoutopt==2 && slideab==1) { if(slidestart==0) { //document.getElementById("lbx_light_"+id).style.left='0px'; document.getElementById("lbx_light_"+id).style.top=-lbxhe+lbxhedim; if(def_disp==2) { document.getElementById("lbx_light_"+id).style.left='0px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(hadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.left='0px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); } if(def_disp==3) { document.getElementById("lbx_light_"+id).style.left='0px'; bottomf=document.getElementById('lbx_light_'+id).style.top; var calcu; if(lbxhedim=="%") { tt=bottomf.split("%"); calcu=100-lbxhe; } else { tt=bottomf.split("px"); calcu=screenheight-lbxhe; } bottomof=eval(calcu-tt[0]-2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==4) { var leftset=(screenwidth-lbxwid)/2; document.getElementById("lbx_light_"+id).style.left=leftset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; var calcu; if(lbxhedim=="%") { tt=bottomf.split("%"); calcu=100-lbxhe; } else { tt=bottomf.split("px"); calcu=screenheight-lbxhe; } bottomof=eval(calcu-tt[0]-2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==5) { var leftset=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left= leftset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; var calcu; if(lbxhedim=="%") { tt=bottomf.split("%"); calcu=100-lbxhe; } else { tt=bottomf.split("px"); calcu=screenheight-lbxhe; } bottomof=eval(calcu-tt[0]-2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==6) { var leftset=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left= leftset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(hadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==7) { var leftset=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left= leftset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); } if(def_disp==8) { var rightset=(screenwidth-lbxwid)/2; document.getElementById("lbx_light_"+id).style.left=rightset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); } if(def_disp==9) { var rightset=(screenwidth-lbxwid)/2; document.getElementById("lbx_light_"+id).style.left=rightset+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } bottomof=eval(hadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } } if(slidestart==1) { document.getElementById("lbx_light_"+id).style.left=-lbxwid+lbxwiddim; if(def_disp==2) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.top='0px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==3) { var bottomset=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=bottomset+'px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==4) { var bottomset=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=bottomset+'px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(wiadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==5) { var bottomset=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=bottomset+'px'; leftf=document.getElementById('lbx_light_'+id).style.left; var calcu; if(lbxwiddim=="%") { tt=leftf.split("%"); calcu=100-lbxwid; } else { tt=leftf.split("px"); calcu=screenwidth-lbxwid; } leftof=eval(calcu-tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==6) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; leftf=document.getElementById('lbx_light_'+id).style.left; var calcu; if(lbxwiddim=="%") { tt=leftf.split("%"); calcu=100-lbxwid; } else { tt=leftf.split("px"); calcu=screenwidth-lbxwid; } leftof=eval(calcu-tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.top='0px'; leftf=document.getElementById('lbx_light_'+id).style.left; var calcu; if(lbxwiddim=="%") { tt=leftf.split("%"); calcu=100-lbxwid; } else { tt=leftf.split("px"); calcu=screenwidth-lbxwid; } leftof=eval(calcu-tt[0]-(2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==8) { document.getElementById("lbx_light_"+id).style.top='0px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(wiadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==9) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(wiadjust-tt[0]); jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } } if(slidestart==2) { document.getElementById("lbx_light_"+id).style.left=screenwidth+'px'; if(def_disp==2) { var calcu; var tt; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; var slpx=screenwidth; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==1) { var calcu; var tt; document.getElementById("lbx_light_"+id).style.top='0px'; var slpx=screenwidth; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==3) { var tt; var calcu; var setpx=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=setpx+'px'; var slpx=screenwidth; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==4) { var tt; var setpx=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=setpx+'px'; var slpx=screenwidth/2+lbxwid/2; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==5) { var tt; var setpx=screenheight-lbxhe-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=setpx+'px'; rightf=document.getElementById('lbx_light_'+id).style.right; var slpx=lbxwid+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==6) { var tt; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; var slpx=lbxwid+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==7) { var tt; document.getElementById("lbx_light_"+id).style.top='0px'; var slpx=lbxwid+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==8) { var tt; document.getElementById("lbx_light_"+id).style.top='0px'; var slpx=screenwidth/2+lbxwid/2; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==9) { var tt; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; rightf=document.getElementById('lbx_light_'+id).style.right; var slpx=screenwidth/2+lbxwid/2; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } } if(slidestart==3) { document.getElementById("lbx_light_"+id).style.top=screenheight+'px'; if(def_disp==2) { var tt; document.getElementById("lbx_light_"+id).style.left='0px'; var slpx=(screenheight+lbxhe)/2+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==1) { var tt; var calcu; document.getElementById("lbx_light_"+id).style.left='0px'; var slpx=screenheight; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==3) { var tt; document.getElementById("lbx_light_"+id).style.left='0px'; var slpx=lbxhe+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==4) { var tt; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; var slpx=lbxhe+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==5) { var tt; var setright=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=setright+'px'; var slpx=lbxhe+(2*lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==6) { var tt; var setright=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=setright+'px'; var slpx=(screenheight+lbxhe)/2+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==7) { var tt; var setright=screenwidth-lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=setright+'px'; var slpx=screenheight; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==8) { var calcu; var tt; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; var slpx=screenheight; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==9) { var tt; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; var slpx=(screenheight+lbxhe)/2; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } } } if(posit==1 && displayoutopt==2 && slideab==1) { if(slidestart==3) { document.getElementById("lbx_light_"+id).style.top=screenheight+'px'; if(meditpos==1) { document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; var toptosl; if(lbxtopdim=="%") { toptosl=100-lbxtop; } else { toptosl=screenheight-lbxtop; } jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+lbxtopdim},"slow"); } if(meditpos==3) { document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; var toptosl; if(lbxbodim=="%") { var botpix=(screenheight*lbxbottom)/100; toptosl=lbxhe+botpix; } else { toptosl=lbxhe+lbxbottom; } jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+'px'},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var calcu; if(lbxrightdim=="%") { rightpx=(screenwidth*lbxright)/100; } else { rightpx=lbxright; } var setleft=screenwidth-lbxwid-rightpx-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=setleft+'px'; var toptosl; if(lbxbodim=="%") { var botpix=(screenheight*lbxbottom)/100; toptosl=lbxhe+botpix+(2*lbxbdwidth); } else { toptosl=lbxhe+lbxbottom+(2*lbxbdwidth); } jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+'px'},"slow"); } if(meditpos==2) { var rightpx; if(lbxrightdim=="%") { rightpx=(screenwidth*lbxright)/100; } else { rightpx=lbxright; } var setleft=screenwidth-lbxwid-rightpx-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=setleft+'px'; var toptosl; if(lbxtopdim=="%") { toptosl=100-lbxtop; } else { toptosl=screenheight-lbxtop; } jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+lbxtopdim},"slow"); } } if(slidestart==1) { document.getElementById("lbx_light_"+id).style.left=-lbxwid+lbxwiddim; if(meditpos==1) { var tt; var wicpx; var wicps; var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; leftf=document.getElementById("lbx_light_"+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); var ri=eval(tt[0]); wicpx=(screenwidth*ri)/100; } else { tt=leftf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/screenwidth; } if(lbxledim=="%") { if(lbxwiddim=="%") { leftof=eval(lbxleft-tt[0]); } else { leftof=eval(lbxleft-wicps); } } if(lbxledim=="px") { if(lbxwiddim=="px") { leftof=eval(lbxleft-tt[0]); } else { leftof=eval(lbxleft-wicpx); } } jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxledim},"slow"); } if(meditpos==2) { var tt; var wicpx; var wicps; var ttc; var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; rightf=document.getElementById("lbx_light_"+id).style.left; if(lbxwiddim=="%") { tt=rightf.split("%"); wicpx=(screenwidth*lbxwid)/100; ttc=(screenwidth*tt[0])/100; } else { tt=rightf.split("px"); wicps=(100*lbxwid)/screenwidth; ttc=(100*tt[0])/screenwidth; } if(lbxrightdim=="%") { if(lbxwiddim=="%") { calcu=100-lbxright-lbxwid; } else { calcu=100-lbxright-wicps; } } if(lbxrightdim=="px") { if(lbxwiddim=="px") { calcu=screenwidth-lbxright-lbxwid; } else { calcu=screenwidth-lbxright-wicpx; } } rightof=eval(calcu-ttc); jQuery('#lbx_light_'+id).animate({ "left": "+="+rightof+lbxrightdim},"slow"); } if(meditpos==3) { var tt; var wicpx; var wicps; var calcu; var botpx; if(lbxbodim=="%") { botpx=(screenheight*lbxbottom)/100; } else { botpx=lbxbottom; } var topset=screenheight-lbxhe-botpx; document.getElementById("lbx_light_"+id).style.top=topset+'px'; leftf=document.getElementById("lbx_light_"+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); var ri=eval(tt[0]); wicpx=(screenwidth*ri)/100; } else { tt=leftf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/screenwidth; } if(lbxledim=="%") { if(lbxwiddim=="%") { leftof=eval(lbxleft-tt[0]); } else { leftof=eval(lbxleft-wicps); } } if(lbxledim=="px") { if(lbxwiddim=="px") { leftof=eval(lbxleft-tt[0]); } else { leftof=eval(lbxleft-wicpx); } } jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxledim},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var ttc; var calcu; var botpx; if(lbxbodim=="%") { botpx=(screenheight*lbxbottom)/100; } else { botpx=lbxbottom; } var topset=screenheight-lbxhe-botpx; document.getElementById("lbx_light_"+id).style.top=topset+'px'; rightf=document.getElementById("lbx_light_"+id).style.left; if(lbxwiddim=="%") { tt=rightf.split("%"); wicpx=(screenwidth*lbxwid)/100; ttc=(screenwidth*tt[0])/100; } else { tt=rightf.split("px"); wicps=(100*lbxwid)/screenwidth; ttc=(100*tt[0])/screenwidth; } if(lbxrightdim=="%") { if(lbxwiddim=="%") { calcu=100-lbxright-lbxwid; } else { calcu=100-lbxright-wicps; } } if(lbxrightdim=="px") { if(lbxwiddim=="px") { calcu=screenwidth-lbxright-lbxwid; } else { calcu=screenwidth-lbxright-wicpx; } } rightof=eval(calcu-ttc); jQuery('#lbx_light_'+id).animate({ "left": "+="+rightof+lbxrightdim},"slow"); } } if(slidestart==2) { document.getElementById("lbx_light_"+id).style.left=screenwidth+'px'; if(meditpos==1) { var tt; var wicpx; var wicps; var ttc; var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; if(lbxledim=="%") { calcu=100-lbxleft; } if(lbxledim=="px") { calcu=screenwidth-lbxleft; } rightof=eval(calcu); jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+lbxledim},"slow"); } if(meditpos==2) { var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; if(lbxrightdim=="%") { calcu=(screenwidth*lbxright)/100; } if(lbxrightdim=="px") { calcu=lbxright; } rightof=eval(lbxwid+calcu); jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+'px'},"slow"); } if(meditpos==3) { var tt; var wicpx; var wicps; var ttc; var calcu; var bottpx; if(lbxbodim=="%") { bottpx=(lbxbottom*screenheight) /100; } else { bottpx=lbxbottom; } var topset=screenheight-(lbxhe+bottpx); document.getElementById("lbx_light_"+id).style.top=topset+'px'; if(lbxledim=="%") { calcu=100-lbxleft; } if(lbxledim=="px") { calcu=screenwidth-lbxleft; } rightof=eval(calcu); jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+lbxledim},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var calcu; if(lbxbodim=="%") { bottpx=(lbxbottom*screenheight) /100; } else { bottpx=lbxbottom; } var topset=screenheight-(lbxhe+bottpx); document.getElementById("lbx_light_"+id).style.top=topset+'px'; if(lbxrightdim=="%") { calcu=(screenwidth*lbxright)/100; } if(lbxrightdim=="px") { calcu=lbxright; } rightof=eval(lbxwid+calcu); jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+'px'},"slow"); } } if(slidestart==0) { document.getElementById("lbx_light_"+id).style.top=-lbxhe+lbxhedim; if(meditpos==1) { var tt; var wicpx; var wicps; var calcu; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); var ri=eval(tt[0]); wicpx=(screenheight*ri)/100; } else { tt=topf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/screenheight; } if(lbxtopdim=="%") { if(lbxhedim=="%") { topof=eval(lbxtop-tt[0]); } else { topof=eval(lbxtop-wicps); } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { topof=eval(lbxtop-tt[0]); } else { topof=eval(lbxtop-wicpx); } } jQuery('#lbx_light_'+id).animate({ "top": "+="+topof+lbxtopdim},"slow"); } if(meditpos==2) { var tt; var wicpx; var wicps; var calcu; var rightpx; if(lbxrightdim=="%") { rightpx=(lbxright*screenwidth)/100; } else { rightpx=lbxright; } var leftset=screenwidth-rightpx-lbxwid; document.getElementById("lbx_light_"+id).style.left=leftset+'px'; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); var ri=eval(tt[0]); wicpx=(screenheight*ri)/100; } else { tt=topf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/screenheight; } if(lbxtopdim=="%") { if(lbxhedim=="%") { topof=eval(lbxtop-tt[0]); } else { topof=eval(lbxtop-wicps); } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { topof=eval(lbxtop-tt[0]); } else { topof=eval(lbxtop-wicpx); } } jQuery('#lbx_light_'+id).animate({ "top": "+="+topof+lbxtopdim},"slow"); } if(meditpos==3) { var tt; var wicpx; var wicps; var ttc; var calcu; var bottpx; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); wicpx=(screenheight*lbxhe)/100; ttc=(screenheght*tt[0])/100; } else { tt=topf.split("px"); wicps=(100*lbxhe)/screenheight; ttc=(100*tt[0])/screenheight; } if(lbxbodim=="%") { if(lbxhedim=="%") { calcu=100-lbxhe-lbxbottom; } else { calcu=100-wicps-lbxbottom; } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { calcu=screenheight-lbxhe-lbxbottom; } else { calcu=screenheight-wicpx-lbxbottom; } } topof=eval(calcu-ttc); jQuery('#lbx_light_'+id).animate({ "top": "+="+topof+lbxbodim},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var ttc; var calcu; if(lbxrightdim=="%") { rightpx=(lbxright*screenwidth)/100; } else { rightpx=lbxright; } var leftset=screenwidth-rightpx-lbxwid; document.getElementById("lbx_light_"+id).style.left=leftset+'px'; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); wicpx=(screenheight*lbxhe)/100; ttc=(screenheght*tt[0])/100; } else { tt=topf.split("px"); wicps=(100*lbxhe)/screenheight; ttc=(100*tt[0])/screenheight; } if(lbxbodim=="%") { if(lbxhedim=="%") { calcu=100-lbxhe-lbxbottom; } else { calcu=100-wicps-lbxbottom; } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { calcu=screenheight-lbxhe-lbxbottom; } else { calcu=screenheight-wicpx-lbxbottom; } } topof=eval(calcu-ttc); jQuery('#lbx_light_'+id).animate({ "top": "+="+topof+lbxbodim},"slow"); } } } //alert(lbx_tracking_cookie_val); if(shrs) { shrs(); } if(clbtopt==1){ setTimeout("lbx_show_closebutton_custom("+id+")",clbt*1000); } if(lbxauclopt==1) { setTimeout("lbx_hide_popup_custom('na'"+','+id+','+triggonclickmeth+','+trigger+','+def_disp+','+displayoutopt+','+slideab+','+slidestart+','+lbxtop+',"'+lbxtopdim+'",'+lbxleft+',"'+lbxledim+'",'+lbxright+',"'+lbxrightdim+'",'+lbxbottom+',"'+lbxbodim+'",'+lbxhe+',"'+lbxhedim+'",'+lbxwid+',"'+lbxwiddim+'",'+lbxbdwidth+','+clrs+')',lbxaucltiming*1000); } expires_date = new Date( xyz_lbx_custom_today.getTime() + (repeat * 60 * 1000) ); document.cookie = xyz_lbx_tracking_cookie_name + "=1;expires=" + expires_date.toGMTString() + ";path=/"; eval("xyz_lbx_rendered"+id+"=true"); }