jQuery(document).ready(function($) { var xyz_popup_referrer_url =document.referrer; var xyz_popup_shortcode=0; if(jQuery(".xyz_wp_popup_shortcode").length>0) { xyz_popup_shortcode = $.map($(".xyz_wp_popup_shortcode"), function(n, i) { return n.id; }); } var data = { action: 'xyz_wp_popup_action', xyz_wp_popup_shortcd:xyz_popup_shortcode, xyz_wp_popup_referrer_url:xyz_popup_referrer_url, pg:xyz_wp_popup_ajax_object.ispage, ps:xyz_wp_popup_ajax_object.ispost, hm:xyz_wp_popup_ajax_object.ishome }; // Pass the url value separately from ajaxurl for front end AJAX implementations jQuery.post(xyz_wp_popup_ajax_object.ajax_url, data, function(response) { if(response!=0) jQuery("#xyz_wp_popup_container").append(response) }); }); 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 xyz_wp_popup_trigger(xyz_wp_popup_JSONObject) { //alert("a"); function addClickEvent(a,i,func) { if (typeof a[i].onclick != 'function') { a[i].onclick = func; } } var a = document.getElementsByTagName('A'); for (var i = 0; i < a.length; i++) { addClickEvent(a,i, function(){ xyz_wp_popup_JSONObject.xyz_lbx_show_splash=false; }); } var f = document.getElementsByTagName('FORM'); for (var i=0;i< f.length;i++) { if (!f[i].onclick){ f[i].onclick=function(){ xyz_wp_popup_JSONObject.xyz_lbx_show_splash=false; } } else if (!f[i].onsubmit){ f[i].onsubmit=function(){ xyz_wp_popup_JSONObject.xyz_lbx_show_splash=false; } } } if((xyz_wp_popup_JSONObject.layout_option!=4)) { if(xyz_wp_popup_JSONObject.clbtopt==2) { if(xyz_wp_popup_JSONObject.closetriger=="") { xyz_wp_popup_JSONObject.closetriger='#lbx_light_'+xyz_wp_popup_JSONObject.id; } jQuery(xyz_wp_popup_JSONObject.closetriger).click(function (event) { xyz_wp_popup_hide(event,xyz_wp_popup_JSONObject); }); } } if(xyz_wp_popup_JSONObject.trigger==1) { if(xyz_wp_popup_JSONObject.mode == "page_count_only") xyz_wp_popup_show(xyz_wp_popup_JSONObject); else setTimeout("xyz_wp_popup_show(xyz_wp_popup_JSONObject_"+xyz_wp_popup_JSONObject.id+")",xyz_wp_popup_JSONObject.delay*1000); xyz_wp_popup_JSONObject.xyz_lbx_rendered=true; } else { if((xyz_wp_popup_JSONObject.layout_option!=4)) { if(xyz_wp_popup_JSONObject.trigelement=="") { xyz_wp_popup_JSONObject.trigelement='body'; } if(xyz_wp_popup_JSONObject.trigmoverelement=="" && xyz_wp_popup_JSONObject.trigger==4) { xyz_wp_popup_JSONObject.trigmoverelement='body'; } if(xyz_wp_popup_JSONObject.trigmoutelement=="" && xyz_wp_popup_JSONObject.trigger==5) { xyz_wp_popup_JSONObject.trigmoutelement='body'; } } else { xyz_wp_popup_JSONObject.trigelement='#lbx_trig_div_'+xyz_wp_popup_JSONObject.id; /*xyz_wp_popup_JSONObject.trigmoverelement='#lbx_trig_div_'+xyz_wp_popup_JSONObject.id; xyz_wp_popup_JSONObject.trigmoutelement='#lbx_trig_div_'+xyz_wp_popup_JSONObject.id;*/ } if(xyz_wp_popup_JSONObject.trigger==3) { xyz_wp_popup_JSONObject.trigelement='#xyz_lbx_exit_'+xyz_wp_popup_JSONObject.id; window.onbeforeunload=function(){ if(xyz_wp_popup_JSONObject.xyz_lbx_rendered==false&& xyz_wp_popup_JSONObject.xyz_lbx_show_splash==true && xyz_wp_popup_JSONObject.xyz_lbx_until_cookcheck==0) { setTimeout(function(){ setTimeout(function(){ jQuery('#xyz_lbx_exit_'+xyz_wp_popup_JSONObject.id).trigger('click'); },300); },1); //return ''; return xyz_wp_popup_JSONObject.trigger_onexit_msg; } }; } if(xyz_wp_popup_JSONObject.trigger==2) { jQuery(xyz_wp_popup_JSONObject.trigelement).click(function (event) { xyz_wp_popup_display_trigger(xyz_wp_popup_JSONObject) }); } if(xyz_wp_popup_JSONObject.trigger==4) { jQuery(xyz_wp_popup_JSONObject.trigmoverelement).mouseover(function (event) { xyz_wp_popup_display_trigger(xyz_wp_popup_JSONObject) }); } if(xyz_wp_popup_JSONObject.trigger==5) { jQuery(xyz_wp_popup_JSONObject.trigmoutelement).mouseout(function (event) { xyz_wp_popup_display_trigger(xyz_wp_popup_JSONObject) }); } if(xyz_wp_popup_JSONObject.layout_option==4) lbx_show_quickbox_trigger_div(xyz_wp_popup_JSONObject); //xyz_wp_popup_JSONObject.xyz_lbx_rendered=true; } if(xyz_wp_popup_JSONObject.dontshowelemement!="") { jQuery(xyz_wp_popup_JSONObject.dontshowelemement).click(function (event) { xyz_wp_popup_hide(event,xyz_wp_popup_JSONObject,1); }); } document.getElementById('lbx_light_'+xyz_wp_popup_JSONObject.id).style.position='fixed'; document.getElementById('lbx_light_'+xyz_wp_popup_JSONObject.id).style._position='fixed'; } function xyz_wp_popup_display_trigger(trigger_JSONObject) { if(trigger_JSONObject.xyz_lbx_rendered==false) { if(trigger_JSONObject.mode == "page_count_only") xyz_wp_popup_show(trigger_JSONObject); else setTimeout("xyz_wp_popup_show(xyz_wp_popup_JSONObject_"+trigger_JSONObject.id+")",trigger_JSONObject.delay*1000); trigger_JSONObject.xyz_lbx_rendered=true; } else { if ( trigger_JSONObject.layout_option == 4) //alert(trigger_JSONObject.xyz_lbx_rendered); if ( trigger_JSONObject.xyz_lbx_rendered == true ) // using && to write single condition does not work with some stupid themes // this issue is only for && printed from shortcodes { xyz_wp_popup_hide(event,trigger_JSONObject); //trigger_JSONObject.xyz_lbx_rendered=false; } } } function xyz_wp_popup_hide(evt,hide,dontshow_click) { id=hide.id; triggonclickmeth=hide.trigger_onclick_method; trigger=hide.trigger; def_disp=hide.position_predefined; displayoutopt=hide.layout_option; slideab=hide.slideable; slidestart=hide.slideposition; lbxhe=hide.height; lbxhedim=hide.height_dim; lbxwid=hide.width; lbxwiddim=hide.width_dim; lbxbdwidth=hide.border_width; clrs=hide.clrs; clrsdontshow=hide.clrsdontshow; xyz_lbx_rendered=hide.xyz_lbx_rendered; 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"); hide.xyz_lbx_rendered=false; } else { //eval("xyz_lbx_rendered"+id+"=true"); hide.xyz_lbx_rendered=true; document.getElementById("lbx_light_"+id).innerHTML=""; } if(clrs) { clrs(); } if(clrsdontshow && dontshow_click) { clrsdontshow(); } 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_quickbox_trigger_div(show_JSONObject) { id=show_JSONObject.id; lbxhe=show_JSONObject.height; lbxhedim=show_JSONObject.height_dim; lbxwid=show_JSONObject.width; lbxwiddim=show_JSONObject.width_dim; def_disp=show_JSONObject.position_predefined; slideab=show_JSONObject.slideable; slidestart=show_JSONObject.slideposition; iframeopt=show_JSONObject.iframeopt; lbxbdwidth=show_JSONObject.border_width; lbxhedimold=show_JSONObject.lbxhedimold; lbxwiddimold=show_JSONObject.lbxhedimold; var screenheight=jQuery(window).height(); var screenwidth=jQuery(window).width(); dbx_title_color=show_JSONObject.dbx_title_color; border_color=show_JSONObject.border_color; titfont=show_JSONObject.titfont; z_index=show_JSONObject.z_index; jQuery(".lbx_trig_"+id).css({ display:"block", "position":"fixed", "cursor":"pointer", "background-color":border_color, "font-size":titfont+"px", "padding":"5px 10px", "z-index":z_index, "float":"right", "color":dbx_title_color }); if(lbxhedim=="%") { var hadnjust=(screenheight*lbxhe)/100; lbxhe=hadnjust-(2*lbxbdwidth); //if(lbxhe<0) //lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } lbxhedim="px"; } else { lbxhe=lbxhe-(2*lbxbdwidth); //if(lbxhe<0) //lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } } if(lbxwiddim=="%") { var wiadnjust=(screenwidth*lbxwid)/100; lbxwid=wiadnjust-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; lbxwiddim="px"; } else { lbxwid=lbxwid-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; } var widtr=document.getElementById('lbx_trig_div_'+id).offsetWidth; var hetr=document.getElementById('lbx_trig_div_'+id).offsetHeight; var lbxwidtos; var lbxhetos; if(lbxwiddimold=="%" || lbxwiddimold=="px") { lbxwidtos=lbxwid+(2*lbxbdwidth); } if(lbxhedimold=="%" || lbxhedimold=="px") { lbxhetos=lbxhe+(2*lbxbdwidth); } if(slidestart==0) { document.getElementById('lbx_trig_div_'+id).style.top='0px'; if(def_disp==1) { var calcu=((lbxwidtos-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=((lbxwidtos-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=((lbxhetos-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=((lbxhetos-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=((lbxhetos-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=((lbxhetos-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=((lbxwidtos-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=((lbxwidtos-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.right=calcu+'px'; } } jQuery(window).resize(function(){ var light_disp=document.getElementById("lbx_light_"+id).style.display; if(light_disp=="none") lbx_show_quickbox_trigger_div(show_JSONObject); }); } function xyz_wp_popup_settings(settings_JSONObject,resize) { 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; id=settings_JSONObject.id; mode=settings_JSONObject.mode; pagecount=settings_JSONObject.pagecount; repeat=settings_JSONObject.repeat; shrs=settings_JSONObject.shrs; clrs=settings_JSONObject.clrs; clbtopt=settings_JSONObject.clbtopt; clbt=settings_JSONObject.clbt; trigger=settings_JSONObject.trigger; triggonclickmeth=settings_JSONObject.trigger_onclick_method; displayoutopt=settings_JSONObject.layout_option; posit=settings_JSONObject.posit; def_disp=settings_JSONObject.position_predefined; slideab=settings_JSONObject.slideable; slidestart=settings_JSONObject.slideposition; lbxhe=settings_JSONObject.height; lbxhedim=settings_JSONObject.height_dim; meditpos=settings_JSONObject.meditpos; lbxleft=settings_JSONObject.left; lbxledim=settings_JSONObject.left_dim; lbxwid=settings_JSONObject.width; lbxwiddim=settings_JSONObject.width_dim; lbxbdwidth=settings_JSONObject.border_width; lbxauclopt=settings_JSONObject.auclopt; lbxaucltiming=settings_JSONObject.aucltiming; lbxtop=settings_JSONObject.top; lbxtopdim=settings_JSONObject.top_dim; lbxbottom=settings_JSONObject.bottom; lbxbodim=settings_JSONObject.bottom_dim; lbxright=settings_JSONObject.right; lbxrightdim=settings_JSONObject.right_dim; titfont=settings_JSONObject.titfont; iframeopt=settings_JSONObject.iframeopt; draggab=settings_JSONObject.draggab; title=settings_JSONObject.title; lbxhedimold=settings_JSONObject.lbxhedimold; lbxwiddimold=settings_JSONObject.lbxhedimold; dbx_title_color=settings_JSONObject.dbx_title_color; close_button_position=settings_JSONObject.close_button_position; content_showing_option=settings_JSONObject.content_showing_option; imageurlc=settings_JSONObject.imageurlc; border_color=settings_JSONObject.border_color; corner_radius=settings_JSONObject.corner_radius; bg_color=settings_JSONObject.bg_color; color=settings_JSONObject.color; z_index=settings_JSONObject.z_index; opacity=settings_JSONObject.opacity; bgimage_opt=settings_JSONObject.bgimage_opt; bgimagec=settings_JSONObject.bgimagec; var moz_opacity=opacity/100; var background_opacity=settings_JSONObject.background_opacity; var moz_background_opacity=background_opacity/100; bgimg_opt=settings_JSONObject.bgimg_opt; bgimgc=settings_JSONObject.bgimgc; bgimgurlc=settings_JSONObject.bgimgurlc; dbx_position_style=settings_JSONObject.dbx_position_style; dbx_pos_abselement=settings_JSONObject.dbx_pos_abselement; if(resize==0) { jQuery("#lbx_fade_"+id).css({"display":"none", "position":"fixed", "_position":"fixed", "top":"0%", "left":"0%", "width":"100%", "height":"100%", "background-color":color, "z-index":z_index, "-moz-opacity":moz_opacity, "opacity":moz_opacity, "filter":"alpha('opacity'="+opacity+")" }); if(bgimage_opt==1 && bgimagec!="") { jQuery("#lbx_fade_"+id).css("background-image",'url(' + imageurlc + ')'); } jQuery("#lbx_light_"+id).css({ "display":"none", "position":"fixed", "_position":"fixed", "-moz-opacity":moz_background_opacity, "opacity":moz_background_opacity, "box-sizing": "content-box", "-moz-box-sizing": "content-box", "-webkit-box-sizing": "content-box", "filter":"alpha('opacity'="+background_opacity+")" }); if(displayoutopt==2 && dbx_position_style==2 ) { jQuery("#lbx_light_"+id).css("position","absolute"); } if (posit==1 && slideab==0){ if(meditpos==1) { jQuery("#lbx_light_"+id).css("top",lbxtop+lbxtopdim); jQuery("#lbx_light_"+id).css("left",lbxleft+lbxledim); } if(meditpos==2) { jQuery("#lbx_light_"+id).css("top",lbxtop+lbxtopdim); jQuery("#lbx_light_"+id).css("right",lbxright+lbxrightdim); } if(meditpos==3) { jQuery("#lbx_light_"+id).css("bottom",lbxbottom+lbxbodim); jQuery("#lbx_light_"+id).css("left",lbxleft+lbxledim); } if(meditpos==4) { jQuery("#lbx_light_"+id).css("bottom",lbxbottom+lbxbodim); jQuery("#lbx_light_"+id).css("right",lbxright+lbxrightdim); }} jQuery("#lbx_light_"+id).css({ "width":lbxwid+lbxwiddim, "height":lbxhe+lbxhedim, "padding":"0", "margin":"0", "border":lbxbdwidth+"px solid"+ border_color, "background-color":bg_color, "z-index":z_index+1, "border-radius":corner_radius+"px"}); if(displayoutopt==2 && draggab==1) { jQuery("#lbx_light_"+id).css("cursor","move"); } if(bgimg_opt==1 && bgimgc!="") { jQuery("#lbx_content_"+id).css("background-image",'url(' + bgimgurlc + ')'); } jQuery("#lbx_content_"+id).css({ "width":"100%", "height":"100%", "padding":"0", "margin":"0", "border":"0px", "background-color":bg_color, "z-index":z_index+1 }); if(iframeopt==1){jQuery("#lbx_content_"+id).css("overflow","hidden"); } //in case of iframe display scroll is adjusted in body tag inside iframe else{ if(content_showing_option==0) {jQuery("#lbx_content_"+id).css("overflow", "hidden"); } else { jQuery("#lbx_content_"+id).css("overflow","auto"); jQuery("#lbx_content_"+id).css("-webkit-overflow-scrolling","touch"); /* for auto scrollbar in apple devices */ } } jQuery("#lbx_content_"+id).css("border-radius",corner_radius+"px"); jQuery(".lbx_iframe_"+id).css({ "width":"100%", "height":"100%", "border":"0" }); if(bgimg_opt==1 && bgimgc!="") { jQuery(".lbx_iframe_"+id).css("background-image",'url(' + bgimgurlc + ')'); } /*jQuery(".lbx_trig_"+id).css({ display:"block", "position":"fixed", "cursor":"pointer", "background-color":border_color, "font-size":titfont+"px", "padding":"5px 10px", "z-index":z_index, "float":"right", "color":dbx_title_color });*/ jQuery(".dbx_"+id).css({ "background-color":border_color, "color":dbx_title_color, "font-size":titfont+"px", "line-height":"2" }); jQuery("#closediv_"+id).css({ "position":"absolute", "cursor":"pointer"}); if(close_button_position==0) { jQuery("#closediv_"+id).css("top","0px"); jQuery("#closediv_"+id).css("right","0px"); } if(close_button_position==1) { jQuery("#closediv_"+id).css("top","0px"); jQuery("#closediv_"+id).css("left","0px"); } if(close_button_position==2) { jQuery("#closediv_"+id).css("bottom","0px"); jQuery("#closediv_"+id).css("right","0px"); } if(close_button_position==3) { jQuery("#closediv_"+id).css("bottom","0px"); jQuery("#closediv_"+id).css("left","0px"); } } var light_disp=document.getElementById("lbx_light_"+id).style.display; if(resize==1 && light_disp=="none") 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(displayoutopt==3) { lbxhe=screenheight-(2*lbxbdwidth); lbxwid=screenwidth-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; if(iframeopt==1) { document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } } else { if(dbx_position_style==1 || displayoutopt!=2) { if(lbxhedim=="%") { var hadnjust=(screenheight*lbxhe)/100; lbxhe=hadnjust-(2*lbxbdwidth); if(lbxhe<0) lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } lbxhedim="px"; } else { lbxhe=lbxhe-(2*lbxbdwidth); if(lbxhe<0) lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } } if(lbxwiddim=="%") { var wiadnjust=(screenwidth*lbxwid)/100; lbxwid=wiadnjust-(2*lbxbdwidth); if(lbxwid<0) lbxwid=0; document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; lbxwiddim="px"; } else { lbxwid=lbxwid-(2*lbxbdwidth); if(lbxwid<0) lbxwid=0; document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; } } else if(dbx_position_style==2 && displayoutopt==2) { if(dbx_pos_abselement=="") dbx_pos_abselement='body'; var element_ht=jQuery(dbx_pos_abselement).outerHeight(); var element_wt=jQuery(dbx_pos_abselement).outerWidth(); var offset_top=jQuery(dbx_pos_abselement).offset().top; var offset_left=jQuery(dbx_pos_abselement).offset().left; document.getElementById("lbx_light_"+id).style.position="absolute"; if(lbxhedim=="%") { var hadnjust=(element_ht*lbxhe)/100; lbxhe=hadnjust-(2*lbxbdwidth); if(lbxhe<0) lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } lbxhedim="px"; } else { lbxhe=lbxhe-(2*lbxbdwidth); if(lbxhe<0) lbxhe=0; document.getElementById("lbx_light_"+id).style.height=lbxhe+'px'; if(iframeopt==1){ document.getElementById("iframe_"+id).style.height=lbxhe+'px'; } } if(lbxwiddim=="%") { var wiadnjust=(element_wt*lbxwid)/100; lbxwid=wiadnjust-(2*lbxbdwidth); if(lbxwid<0) lbxwid=0; document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; lbxwiddim="px"; } else { lbxwid=lbxwid-(2*lbxbdwidth); if(lbxwid<0) lbxwid=0; document.getElementById("lbx_light_"+id).style.width=lbxwid+'px'; } } if(displayoutopt==2) { var titleheight=((2*titfont)); var calcuheight=lbxhe-titleheight; if(iframeopt==0 && title!="") { document.getElementById("lbx_content_"+id).style.height=calcuheight+'px'; document.getElementById("lbx_dbx_"+id).style.height=titleheight+'px'; } if(iframeopt==1 && title!="") { document.getElementById("iframe_"+id).style.height=calcuheight+'px'; document.getElementById("lbx_dbx_"+id).style.height=titleheight+'px'; } if(draggab==1) { jQuery("#lbx_light_"+id).draggable( { containment:'window', scroll:false }); } } } if(dbx_position_style==1) { if(lbxhedim=="px") { hadjust=(screenheight-lbxhe)/2; } else { hadjust=(100-lbxhe)/2; } if(lbxwiddim=="px") { wiadjust=(screenwidth-lbxwid)/2; } else { wiadjust=(100-lbxwid)/2; } hadjust=hadjust-lbxbdwidth; wiadjust=wiadjust-lbxbdwidth; } else if(dbx_position_style==2 && displayoutopt==2) { if(lbxhedim=="px") { hadjust=(element_ht-lbxhe)/2; } else { hadjust=(100-lbxhe/2); } if(lbxwiddim=="px") { wiadjust=(element_wt-lbxwid)/2; } else { wiadjust=(100-lbxwid)/2; } hadjust=(hadjust-2*lbxbdwidth)+offset_top; wiadjust=(wiadjust-2*lbxbdwidth)+offset_left; } if(displayoutopt==5) { 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(posit==2) { if(displayoutopt==1 || (displayoutopt==2 && slideab==0 && dbx_position_style==1)) { 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(displayoutopt==2 && slideab==0 && dbx_position_style==2) { if(def_disp==2) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; document.getElementById("lbx_light_"+id).style.left=offset_left+"px"; } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.top=offset_top+"px"; document.getElementById("lbx_light_"+id).style.left=offset_left+"px"; } if(def_disp==3) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left=offset_left+"px"; document.getElementById("lbx_light_"+id).style.top=offset_top+(element_ht-(lbxhe+(2*lbxbdwidth)))+"px"; } if(def_disp==4) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxbdwidth+lbxwiddim; document.getElementById("lbx_light_"+id).style.top=offset_top+(element_ht-(lbxhe+(2*lbxbdwidth)))+"px"; } if(def_disp==5) { document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; document.getElementById("lbx_light_"+id).style.left=(element_wt-(lbxwid+(2*lbxbdwidth)))+offset_left+lbxwiddim; document.getElementById("lbx_light_"+id).style.top=offset_top+(element_ht-(lbxhe+(2*lbxbdwidth)))+"px"; } if(def_disp==6) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; document.getElementById("lbx_light_"+id).style.right="0px"; document.getElementById("lbx_light_"+id).style.left=(element_wt-(lbxwid+(2*lbxbdwidth)))+offset_left+lbxwiddim; } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.top=offset_top+"px"; document.getElementById("lbx_light_"+id).style.right="0px"; document.getElementById("lbx_light_"+id).style.left=(element_wt-(lbxwid+(2*lbxbdwidth)))+offset_left+lbxwiddim; } if(def_disp==8) { document.getElementById("lbx_light_"+id).style.top=offset_top+"px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxbdwidth+lbxwiddim; } if(def_disp==9) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxbdwidth+lbxwiddim; } } } if(posit==1) { if( (displayoutopt==2 && slideab==0 && dbx_position_style==1)) { if(lbxtopdim=="%") { lbxtop=(screenheight*(lbxtop/100)); lbxtopdim="px"; } else { lbxtop=lbxtop; } if(lbxledim=="%") { lbxleft=(screenwidth*(lbxleft/100)); lbxledim="px"; } else lbxleft=lbxleft; if(lbxrightdim=="%") { lbxright=(screenwidth*(lbxright/100)); lbxrightdim="px"; } else lbxright=lbxright; if(lbxbodim=="%") { lbxbottom=(screenheight*(lbxbottom/100)); lbxbodim="px"; } else lbxbottom=lbxbottom; if(meditpos==1) { document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; } if(meditpos==2) { var wid_adjust_new=screenwidth-lbxwid-lbxright-2*lbxbdwidth; document.getElementById("lbx_light_"+id).style.top=lbxtop+lbxtopdim; //document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; document.getElementById("lbx_light_"+id).style.left=wid_adjust_new+lbxwiddim; document.getElementById("lbx_light_"+id).style.right=lbxright+lbxrightdim; } if(meditpos==3) { var top_adjust_new=screenheight-lbxhe-lbxbottom-2*lbxbdwidth; //document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.top=top_adjust_new+lbxhedim; document.getElementById("lbx_light_"+id).style.left=lbxleft+lbxledim; document.getElementById("lbx_light_"+id).style.bottom=lbxbottom+lbxbodim; } if(meditpos==4) { var wid_adjust_new=screenwidth-lbxwid-lbxright-2*lbxbdwidth; var top_adjust_new=screenheight-lbxhe-lbxbottom-2*lbxbdwidth; //document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; //document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; document.getElementById("lbx_light_"+id).style.top=top_adjust_new+lbxhedim; document.getElementById("lbx_light_"+id).style.left=wid_adjust_new+lbxwiddim; document.getElementById("lbx_light_"+id).style.right=lbxright+lbxrightdim; document.getElementById("lbx_light_"+id).style.bottom=lbxbottom+lbxbodim; } } if( (displayoutopt==2 && slideab==0 && dbx_position_style==2)) { if(lbxtopdim=="%") { lbxtop=(element_ht*(lbxtop/100)); lbxtopdim="px"; } else { lbxtop=lbxtop; } if(lbxledim=="%") { lbxleft=(element_wt*(lbxleft/100)); lbxledim="px"; } else lbxleft=lbxleft; if(lbxrightdim=="%") { lbxright=(element_wt*(lbxright/100)); lbxrightdim="px"; } else lbxright=lbxright; if(lbxbodim=="%") { lbxbottom=(element_ht*(lbxbottom/100)); lbxbodim="px"; } else lbxbottom=lbxbottom; if(meditpos==1) { document.getElementById("lbx_light_"+id).style.top=lbxtop+offset_top+lbxtopdim; document.getElementById("lbx_light_"+id).style.left=lbxleft+offset_left+lbxledim; } if(meditpos==2) { document.getElementById("lbx_light_"+id).style.top=lbxtop+offset_top+lbxtopdim; //document.getElementById("lbx_light_"+id).style.left=(wiadjust-lbxright)+lbxwiddim; document.getElementById("lbx_light_"+id).style.left=offset_left+(element_wt-lbxright-lbxwid-2*lbxbdwidth)+lbxwiddim; document.getElementById("lbx_light_"+id).style.right=lbxright+lbxrightdim; } if(meditpos==3) { //document.getElementById("lbx_light_"+id).style.top=(hadjust-lbxbottom)+lbxhedim; document.getElementById("lbx_light_"+id).style.top=offset_top+(element_ht-lbxbottom-2*lbxbdwidth-lbxhe)+lbxhedim; document.getElementById("lbx_light_"+id).style.left=lbxleft+offset_left+lbxledim; document.getElementById("lbx_light_"+id).style.bottom=lbxbottom+lbxbodim; } if(meditpos==4) { //document.getElementById("lbx_light_"+id).style.top=(hadjust-lbxbottom)+lbxhedim; //document.getElementById("lbx_light_"+id).style.left=(wiadjust-lbxright)+lbxwiddim; document.getElementById("lbx_light_"+id).style.top=offset_top+(element_ht-lbxbottom-2*lbxbdwidth-lbxhe)+lbxhedim; document.getElementById("lbx_light_"+id).style.left=offset_left+(element_wt-lbxright-lbxwid-2*lbxbdwidth)+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'; document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==8) { var calcul=((screenwidth-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.left=calcul+'px'; document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } if(def_disp==7) { var calcul=((lbxwidtos-widtr)/2); document.getElementById('lbx_trig_div_'+id).style.right=calcul+'px'; document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } } 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'; document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==2) { var calcul=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==3) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcul+'px'; document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } } 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'; document.getElementById("lbx_light_"+id).style.top="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } if(def_disp==6) { var calcul=((screenheight-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.top=calcul+'px'; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxhedim; document.getElementById("lbx_light_"+id).style.right="0px"; } if(def_disp==5) { var calcul=((lbxhetos-hetr)/2); document.getElementById('lbx_trig_div_'+id).style.bottom=calcul+'px'; document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } } 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'; document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left="0px"; } if(def_disp==4) { var calcut=(screenwidth-widtr)/2; document.getElementById('lbx_trig_div_'+id).style.left=calcut+'px'; document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxwiddim; } if(def_disp==5) { //var calcut=lbxwid/2-lbxbdwidth; var calcut=(lbxwidtos-widtr)/2; document.getElementById('lbx_trig_div_'+id).style.right=calcut+'px'; document.getElementById("lbx_light_"+id).style.bottom="0px"; document.getElementById("lbx_light_"+id).style.right="0px"; } } } if(posit==2 && displayoutopt==2 && slideab==1 && dbx_position_style==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==2 && displayoutopt==2 && slideab==1 && dbx_position_style==2) { 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=offset_left+'px'; bottomf=document.getElementById('lbx_light_'+id).style.top; if(lbxhedim=="%") { tt=bottomf.split("%"); } else { tt=bottomf.split("px"); } //bottomof=eval(hadjust+tt[0]); bottomof=eval(hadjust-tt[0]+lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "+="+(bottomof)+lbxhedim},"slow"); } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.left=offset_left+'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-offset_top)+lbxhedim},"slow"); } if(def_disp==3) { document.getElementById("lbx_light_"+id).style.left=offset_left+'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=element_ht-lbxhe; } //bottomof=eval(calcu-tt[0]-2*lbxbdwidth); bottomof=eval(calcu-tt[0]-2*lbxbdwidth)+offset_top; jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==4) { //var leftset=(screenwidth-lbxwid)/2; leftset=wiadjust+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=element_ht-lbxhe; } //bottomof=eval(calcu-tt[0]-2*lbxbdwidth); bottomof=eval(calcu-tt[0]-2*lbxbdwidth)+offset_top; jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==5) { //var leftset=screenwidth-lbxwid-(2*lbxbdwidth); var leftset=element_wt-lbxwid-(2*lbxbdwidth)+offset_left; 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=element_ht-lbxhe; } //bottomof=eval(calcu-tt[0]-2*lbxbdwidth); bottomof=eval(calcu-tt[0]-2*lbxbdwidth)+offset_top; jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==6) { //var leftset=screenwidth-lbxwid-(2*lbxbdwidth); var leftset=element_wt-lbxwid-(2*lbxbdwidth)+offset_left; 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]); bottomof=eval(hadjust-tt[0]+lbxbdwidth); jQuery('#lbx_light_'+id).animate({ "top": "+="+bottomof+lbxhedim},"slow"); } if(def_disp==7) { //var leftset=screenwidth-lbxwid-(2*lbxbdwidth); var leftset=element_wt-lbxwid-(2*lbxbdwidth)+offset_left; 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])-offset_top; jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); } if(def_disp==8) { //var rightset=(screenwidth-lbxwid)/2; rightset=wiadjust+lbxbdwidth; 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])-offset_top; jQuery('#lbx_light_'+id).animate({ "top": "-="+bottomof+lbxhedim},"slow"); } if(def_disp==9) { //var rightset=(screenwidth-lbxwid)/2; rightset=wiadjust+lbxbdwidth; 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]); bottomof=eval(hadjust-tt[0]+lbxbdwidth); 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+lbxbdwidth+lbxhedim; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0])-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==1) { document.getElementById("lbx_light_"+id).style.top=offset_top+'px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } leftof=eval(tt[0])-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==3) { //var bottomset=screenheight-lbxhe-(2*lbxbdwidth); var bottomset=(element_ht-lbxhe-(2*lbxbdwidth))+offset_top; 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])-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+leftof+lbxwiddim},"slow"); } if(def_disp==4) { //var bottomset=screenheight-lbxhe-(2*lbxbdwidth); var bottomset=element_ht-lbxhe-(2*lbxbdwidth)+offset_top; 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])+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==5) { //var bottomset=screenheight-lbxhe-(2*lbxbdwidth); var bottomset=element_ht-lbxhe-(2*lbxbdwidth)+offset_top; 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=element_wt-lbxwid; } //leftof=eval(calcu-tt[0]-(2*lbxbdwidth)); leftof=eval(calcu-tt[0]-(2*lbxbdwidth))+offset_left; jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==6) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+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=element_wt-lbxwid; } //leftof=eval(calcu-tt[0]-(2*lbxbdwidth)); leftof=eval(calcu-tt[0]-(2*lbxbdwidth))+offset_left; jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==7) { document.getElementById("lbx_light_"+id).style.top=offset_top+'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=element_wt-lbxwid; } leftof=eval(calcu-tt[0]-(2*lbxbdwidth))+offset_left; jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==8) { document.getElementById("lbx_light_"+id).style.top=offset_top+'px'; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } //leftof=eval(wiadjust-tt[0]); leftof=eval(wiadjust-tt[0])+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "left": "+="+leftof+lbxwiddim},"slow"); } if(def_disp==9) { document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; leftf=document.getElementById('lbx_light_'+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); } else { tt=leftf.split("px"); } //leftof=eval(wiadjust-tt[0]); leftof=eval(wiadjust-tt[0])+lbxbdwidth; 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+lbxbdwidth+lbxhedim; var slpx=screenwidth-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==1) { var calcu; var tt; document.getElementById("lbx_light_"+id).style.top=offset_top+'px'; var slpx=screenwidth-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==3) { var tt; var calcu; //var setpx=screenheight-lbxhe-(2*lbxbdwidth); var setpx=offset_top+(element_ht-(lbxhe+(2*lbxbdwidth))); document.getElementById("lbx_light_"+id).style.top=setpx+'px'; //var slpx=screenwidth; var slpx=screenwidth-offset_left; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==4) { var tt; //var setpx=screenheight-lbxhe-(2*lbxbdwidth); var setpx=offset_top+(element_ht-(lbxhe+(2*lbxbdwidth))); document.getElementById("lbx_light_"+id).style.top=setpx+'px'; //var slpx=screenwidth/2+lbxwid/2; var slpx=screenwidth-offset_left-(element_wt/2)+(lbxwid/2)+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==5) { var tt; //var setpx=screenheight-lbxhe-(2*lbxbdwidth); var setpx=offset_top+(element_ht-(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); var slpx=screenwidth-((element_wt-lbxwid-(2*lbxbdwidth))+offset_left); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==6) { var tt; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; //var slpx=lbxwid+(2*lbxbdwidth); var slpx=screenwidth-((element_wt-lbxwid-(2*lbxbdwidth))+offset_left); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==7) { var tt; document.getElementById("lbx_light_"+id).style.top=offset_top+'px'; //var slpx=lbxwid+(2*lbxbdwidth); var slpx=screenwidth-((element_wt-lbxwid-(2*lbxbdwidth))+offset_left); jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==8) { var tt; document.getElementById("lbx_light_"+id).style.top=offset_top+'px'; //var slpx=screenwidth/2+lbxwid/2; var slpx=screenwidth-offset_left-(element_wt/2)+(lbxwid/2)+lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "left": "-="+slpx+'px'},"slow"); } if(def_disp==9) { var tt; document.getElementById("lbx_light_"+id).style.top=hadjust+lbxbdwidth+lbxhedim; rightf=document.getElementById('lbx_light_'+id).style.right; //var slpx=screenwidth/2+lbxwid/2; var slpx=screenwidth-offset_left-(element_wt/2)+(lbxwid/2)+lbxbdwidth; 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=offset_left+'px'; //var slpx=(screenheight+lbxhe)/2+lbxbdwidth; 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=offset_left+'px'; var slpx=screenheight-offset_top; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==3) { var tt; document.getElementById("lbx_light_"+id).style.left=offset_left+'px'; //var slpx=lbxhe+(2*lbxbdwidth); var slpx=screenheight-((element_ht-lbxhe-(2*lbxbdwidth))+offset_top); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==4) { var tt; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxbdwidth+lbxwiddim; //var slpx=lbxhe+(2*lbxbdwidth); var slpx=screenheight-((element_ht-lbxhe-(2*lbxbdwidth))+offset_top); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==5) { var tt; //var setright=screenwidth-lbxwid-(2*lbxbdwidth); var setright=offset_left+(element_wt-lbxwid-(2*lbxbdwidth)); document.getElementById("lbx_light_"+id).style.left=setright+'px'; //var slpx=lbxhe+(2*lbxbdwidth); var slpx=screenheight-((element_ht-lbxhe-(2*lbxbdwidth))+offset_top); jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==6) { var tt; //var setright=screenwidth-lbxwid-(2*lbxbdwidth); var setright=offset_left+(element_wt-lbxwid-(2*lbxbdwidth)); document.getElementById("lbx_light_"+id).style.left=setright+'px'; //var slpx=(screenheight+lbxhe)/2+lbxbdwidth; 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); var setright=offset_left+(element_wt-lbxwid-(2*lbxbdwidth)); document.getElementById("lbx_light_"+id).style.left=setright+'px'; //var slpx=screenheight; var slpx=screenheight-offset_top; 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+lbxbdwidth+lbxwiddim; //var slpx=screenheight; var slpx=screenheight-offset_top; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } if(def_disp==9) { var tt; document.getElementById("lbx_light_"+id).style.left=wiadjust+lbxbdwidth+lbxwiddim; //var slpx=(screenheight+lbxhe)/2; var slpx=(screenheight-lbxhe)/2-lbxbdwidth; jQuery('#lbx_light_'+id).animate({ "top": "-="+slpx+'px'},"slow"); } } } if(posit==1 && displayoutopt==2 && slideab==1 && dbx_position_style==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"); } } } if(posit==1 && displayoutopt==2 && slideab==1 && dbx_position_style==2) { if(lbxtopdim=="%") { lbxtop=(element_ht*(lbxtop/100)); lbxtopdim="px"; } else { lbxtop=lbxtop; } if(lbxledim=="%") { lbxleft=(element_wt*(lbxleft/100)); lbxledim="px"; } else lbxleft=lbxleft; if(lbxrightdim=="%") { lbxright=(element_wt*(lbxright/100)); lbxrightdim="px"; } else lbxright=lbxright; if(lbxbodim=="%") { lbxbottom=(element_ht*(lbxbottom/100)); lbxbodim="px"; } else lbxbottom=lbxbottom; if(slidestart==3) { document.getElementById("lbx_light_"+id).style.top=(offset_top+element_ht)+'px'; if(meditpos==1) { document.getElementById("lbx_light_"+id).style.left=(lbxleft+offset_left)+lbxledim; var toptosl; /*if(lbxtopdim=="%") { toptosl=100-lbxtop; } else { toptosl=screenheight-lbxtop; }*/ toptosl=(element_ht-lbxtop); jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+lbxtopdim},"slow"); } if(meditpos==3) { document.getElementById("lbx_light_"+id).style.left=(lbxleft+offset_left)+lbxledim; var toptosl; /*if(lbxbodim=="%") { var botpix=(screenheight*lbxbottom)/100; toptosl=lbxhe+botpix; } else { toptosl=lbxhe+lbxbottom; }*/ toptosl=lbxhe+lbxbottom+2*lbxbdwidth; 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);*/ var setleft=element_wt-lbxwid-lbxright-(2*lbxbdwidth)+offset_left; 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); }*/ 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=element_wt-lbxwid-lbxright-(2*lbxbdwidth)+offset_left; document.getElementById("lbx_light_"+id).style.left=setleft+'px'; var toptosl; /*if(lbxtopdim=="%") { toptosl=100-lbxtop; } else { toptosl=screenheight-lbxtop; }*/ toptosl=element_ht-lbxtop; jQuery('#lbx_light_'+id).animate({ "top": "-="+toptosl+lbxtopdim},"slow"); } } if(slidestart==1) { //document.getElementById("lbx_light_"+id).style.left=-offset_left+lbxwiddim; if(meditpos==1) { var tt; var wicpx; var wicps; var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+offset_top+lbxtopdim; leftf=document.getElementById("lbx_light_"+id).style.left; if(lbxwiddim=="%") { tt=leftf.split("%"); var ri=eval(tt[0]); wicpx=(element_wt*ri)/100; } else { tt=leftf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/element_wt; } 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+offset_left)+lbxledim},"slow"); } if(meditpos==2) { var tt; var wicpx; var wicps; var ttc; var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+offset_top+lbxtopdim; rightf=document.getElementById("lbx_light_"+id).style.left; /*if(lbxwiddim=="%") { tt=rightf.split("%"); wicpx=(element_wt*lbxwid)/100; ttc=(element_wt*tt[0])/100; } else { tt=rightf.split("px"); wicps=(100*lbxwid)/element_wt; ttc=(100*tt[0])/element_wt; } if(lbxrightdim=="%") { if(lbxwiddim=="%") { calcu=100-lbxright-lbxwid; } else { calcu=100-lbxright-wicps; } } if(lbxrightdim=="px") { if(lbxwiddim=="px") { calcu=element_wt-lbxright-lbxwid; } else { calcu=element_wt-lbxright-wicpx; } } rightof=eval(calcu-ttc);*/ //rightof=wiadjust-lbxright+offset_left; rightof=offset_left+(element_wt-lbxwid-2*lbxbdwidth-lbxright); 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=(element_ht*lbxbottom)/100; } else { botpx=lbxbottom; } var topset=element_ht-lbxhe-botpx;*/ var topset=element_ht-lbxhe-lbxbottom+offset_top-(2*lbxbdwidth); 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=(element_wt*ri)/100; } else { tt=leftf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/element_wt; } 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+offset_left)+lbxledim},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var ttc; var calcu; var botpx; /*if(lbxbodim=="%") { botpx=(element_ht*lbxbottom)/100; } else { botpx=lbxbottom; } var topset=screenheight-lbxhe-lbxbottom;*/ var topset=(element_ht-lbxhe-lbxbottom)+offset_top-(2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.top=topset+'px'; rightf=document.getElementById("lbx_light_"+id).style.left; /*if(lbxwiddim=="%") { tt=rightf.split("%"); wicpx=(element_wt*lbxwid)/100; ttc=(element_wt*tt[0])/100; } else { tt=rightf.split("px"); wicps=(100*lbxwid)/element_wt; ttc=(100*tt[0])/element_wt; } if(lbxrightdim=="%") { if(lbxwiddim=="%") { calcu=100-lbxright-lbxwid; } else { calcu=100-lbxright-wicps; } } if(lbxrightdim=="px") { if(lbxwiddim=="px") { calcu=element_wt-lbxright-lbxwid; } else { calcu=element_wt-lbxright-wicpx; } } rightof=eval(calcu-ttc);*/ //rightof=wiadjust-lbxright+offset_left; rightof=offset_left+(element_wt-lbxwid-2*lbxbdwidth-lbxright); 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+offset_top+lbxtopdim; if(lbxledim=="%") { calcu=100-lbxleft; } if(lbxledim=="px") { calcu=element_wt-lbxleft; } //rightof=eval(calcu)-offset_left; var rightof=screenwidth-offset_left-lbxleft; jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+lbxledim},"slow"); } if(meditpos==2) { var calcu; document.getElementById("lbx_light_"+id).style.top=lbxtop+offset_top+lbxtopdim; if(lbxrightdim=="%") { calcu=(element_wt*lbxright)/100; } if(lbxrightdim=="px") { calcu=lbxright; } //rightof=eval(lbxwid+calcu)-offset_left+(2*lbxbdwidth); var rightof=screenwidth-((element_wt-lbxwid-lbxleft-(2*lbxbdwidth))+offset_left); 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*element_ht) /100; } else { bottpx=lbxbottom; } //var topset=(hadjust-lbxbottom); var topset=offset_top+(element_ht-(lbxhe+lbxbottom+(2*lbxbdwidth))); document.getElementById("lbx_light_"+id).style.top=topset+'px'; if(lbxledim=="%") { calcu=100-lbxleft; } if(lbxledim=="px") { calcu=element_wt-lbxleft; } //rightof=eval(calcu)-offset_left; var rightof=screenwidth-offset_left-lbxleft; jQuery('#lbx_light_'+id).animate({ "left": "-="+rightof+lbxledim},"slow"); } if(meditpos==4) { var tt; var wicpx; var wicps; var calcu; if(lbxbodim=="%") { bottpx=(lbxbottom*element_ht) /100; } else { bottpx=lbxbottom; } //var topset=(hadjust-lbxbottom); var topset=offset_top+(element_ht-(lbxhe+lbxbottom+(2*lbxbdwidth))); document.getElementById("lbx_light_"+id).style.top=topset+'px'; if(lbxrightdim=="%") { calcu=(element_wt*lbxright)/100; } if(lbxrightdim=="px") { calcu=lbxright; } // rightof=eval(lbxwid+calcu)-offset_left+(2*lbxbdwidth); var rightof=screenwidth-((element_wt-lbxwid-lbxleft-(2*lbxbdwidth))+offset_left); 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+offset_left+lbxledim; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); var ri=eval(tt[0]); wicpx=(element_ht*ri)/100; } else { tt=topf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/element_ht; } 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+offset_top)+lbxtopdim},"slow"); } if(meditpos==2) { var tt; var wicpx; var wicps; var calcu; var rightpx; if(lbxrightdim=="%") { rightpx=(lbxright*element_wt)/100; } else { rightpx=lbxright; } //var leftset=element_wt-rightpx-lbxwid; var leftset=offset_left+(element_wt-rightpx-lbxwid-2*lbxbdwidth); 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=(element_ht*ri)/100; } else { tt=topf.split("px"); var ri=eval(tt[0]); wicps=(100*ri)/element_ht; } 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+offset_top)+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+offset_left)+lbxledim; topf=document.getElementById("lbx_light_"+id).style.top; if(lbxhedim=="%") { tt=topf.split("%"); wicpx=(element_ht*lbxhe)/100; ttc=(element_ht*tt[0])/100; } else { tt=topf.split("px"); wicps=(100*lbxhe)/element_ht; ttc=(100*tt[0])/element_ht; } if(lbxbodim=="%") { if(lbxhedim=="%") { calcu=100-lbxhe-lbxbottom; } else { calcu=100-wicps-lbxbottom; } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { calcu=element_ht-lbxhe-lbxbottom; } else { calcu=element_ht-wicpx-lbxbottom; } } //topof=eval(calcu-ttc); topof=offset_top+(element_ht-lbxbottom-(lbxhe+2*lbxbdwidth)); 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*element_wt)/100; } else { rightpx=lbxright; }*/ //var leftset=(wiadjust-lbxright); var leftset=offset_left+(element_wt-lbxright-lbxwid-2*lbxbdwidth); document.getElementById("lbx_light_"+id).style.left=leftset+'px'; topf=document.getElementById("lbx_light_"+id).style.top; /*if(lbxhedim=="%") { tt=topf.split("%"); wicpx=(element_ht*lbxhe)/100; ttc=(element_ht*tt[0])/100; } else { tt=topf.split("px"); wicps=(100*lbxhe)/element_ht; ttc=(100*tt[0])/element_ht; } if(lbxbodim=="%") { if(lbxhedim=="%") { calcu=100-lbxhe-lbxbottom; } else { calcu=100-wicps-lbxbottom; } } if(lbxtopdim=="px") { if(lbxwiddim=="px") { calcu=element_ht-lbxhe-lbxbottom; } else { calcu=element_ht-wicpx-lbxbottom; } } topof=eval(calcu-ttc);*/ //topof=offset_top+(element_ht-lbxhe+lbxbdwidth-lbxbottom); topof=offset_top+(element_ht-lbxbottom-(lbxhe+2*lbxbdwidth)); jQuery('#lbx_light_'+id).animate({ "top": "+="+topof+lbxbodim},"slow"); } } } } function xyz_wp_popup_show(show_JSONObject) { var dispche=0; id=show_JSONObject.id; mode=show_JSONObject.mode; pagecount=show_JSONObject.pagecount; repeat=show_JSONObject.repeat; shrs=show_JSONObject.shrs; clrs=show_JSONObject.clrs; clbtopt=show_JSONObject.clbtopt; clbt=show_JSONObject.clbt; trigger=show_JSONObject.trigger; triggonclickmeth=show_JSONObject.trigger_onclick_method; lbxauclopt=show_JSONObject.auclopt; lbxaucltiming=show_JSONObject.aucltiming; xyz_lbx_rendered=show_JSONObject.xyz_lbx_rendered; xyz_lbx_until_cookcheck=show_JSONObject.xyz_lbx_until_cookcheck; xyz_lbx_pc_cookie_val=xyz_lbx_get_cookie_custom("_xyz_lbx_pc_"+id); if(xyz_lbx_pc_cookie_val==null) xyz_lbx_pc_cookie_val= 1; else xyz_lbx_pc_cookie_val= (xyz_lbx_pc_cookie_val % pagecount) +1; expires_date = new Date( xyz_lbx_custom_today.getTime() + (24 * 60 * 60 * 1000) ); document.cookie = "_xyz_lbx_pc_" +id+ "=" + xyz_lbx_pc_cookie_val + ";expires=" + expires_date.toGMTString() + ";path=/"; 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) //if(xyz_lbx_pc_cookie_val==1) return; } if( mode=="page_count_only"|| mode =="both") { if(xyz_lbx_pc_cookie_val !=pagecount) return; } xyz_wp_popup_settings(show_JSONObject,0); jQuery(window).resize(function(){ xyz_wp_popup_settings(show_JSONObject,1); }); if(shrs) { shrs(); } if(clbtopt==1){ setTimeout("lbx_show_closebutton_custom("+id+")",clbt*1000); } if(lbxauclopt==1) { setTimeout("xyz_wp_popup_hide('na'"+',xyz_wp_popup_JSONObject_'+show_JSONObject.id+')',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=/"; //document.cookie = "_xyz_lbx_pc_"+id + "=1;expires=" + expires_date.toGMTString() + ";path=/"; //eval("xyz_lbx_rendered"+id+"=true"); show_JSONObject.xyz_lbx_rendered=true; }