if ( typeof( phplive_utf8_encode ) == "undefined" ){ function phplive_utf8_encode(r){if(null===r||"undefined"==typeof r)return"";var e,n,t=r+"",a="",o=0;e=n=0,o=t.length;for(var f=0;o>f;f++){var i=t.charCodeAt(f),l=null;if(128>i)n++;else if(i>127&&2048>i)l=String.fromCharCode(i>>6|192,63&i|128);else if(55296!=(63488&i))l=String.fromCharCode(i>>12|224,i>>6&63|128,63&i|128);else{if(55296!=(64512&i))throw new RangeError("Unmatched trail surrogate at "+f);var d=t.charCodeAt(++f);if(56320!=(64512&d))throw new RangeError("Unmatched lead surrogate at "+(f-1));i=((1023&i)<<10)+(1023&d)+65536,l=String.fromCharCode(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}null!==l&&(n>e&&(a+=t.slice(e,n)),a+=l,e=n=f+1)}return n>e&&(a+=t.slice(e,o)),a} function phplive_md5(n){var r,t,u,e,o,f,c,i,a,h,v=function(n,r){return n<>>32-r},g=function(n,r){var t,u,e,o,f;return e=2147483648&n,o=2147483648&r,t=1073741824&n,u=1073741824&r,f=(1073741823&n)+(1073741823&r),t&u?2147483648^f^e^o:t|u?1073741824&f?3221225472^f^e^o:1073741824^f^e^o:f^e^o},s=function(n,r,t){return n&r|~n&t},d=function(n,r,t){return n&t|r&~t},l=function(n,r,t){return n^r^t},w=function(n,r,t){return r^(n|~t)},A=function(n,r,t,u,e,o,f){return n=g(n,g(g(s(r,t,u),e),f)),g(v(n,o),r)},C=function(n,r,t,u,e,o,f){return n=g(n,g(g(d(r,t,u),e),f)),g(v(n,o),r)},b=function(n,r,t,u,e,o,f){return n=g(n,g(g(l(r,t,u),e),f)),g(v(n,o),r)},m=function(n,r,t,u,e,o,f){return n=g(n,g(g(w(r,t,u),e),f)),g(v(n,o),r)},y=function(n){for(var r,t=n.length,u=t+8,e=(u-u%64)/64,o=16*(e+1),f=new Array(o-1),c=0,i=0;t>i;)r=(i-i%4)/4,c=i%4*8,f[r]=f[r]|n.charCodeAt(i)<>>29,f},L=function(n){var r,t,u="",e="";for(t=0;3>=t;t++)r=n>>>8*t&255,e="0"+r.toString(16),u+=e.substr(e.length-2,2);return u},S=[],_=7,j=12,k=17,p=22,q=5,x=9,z=14,B=20,D=4,E=11,F=16,G=23,H=6,I=10,J=15,K=21;for(n=this.phplive_utf8_encode(n),S=y(n),c=1732584193,i=4023233417,a=2562383102,h=271733878,r=S.length,t=0;r>t;t+=16)u=c,e=i,o=a,f=h,c=A(c,i,a,h,S[t+0],_,3614090360),h=A(h,c,i,a,S[t+1],j,3905402710),a=A(a,h,c,i,S[t+2],k,606105819),i=A(i,a,h,c,S[t+3],p,3250441966),c=A(c,i,a,h,S[t+4],_,4118548399),h=A(h,c,i,a,S[t+5],j,1200080426),a=A(a,h,c,i,S[t+6],k,2821735955),i=A(i,a,h,c,S[t+7],p,4249261313),c=A(c,i,a,h,S[t+8],_,1770035416),h=A(h,c,i,a,S[t+9],j,2336552879),a=A(a,h,c,i,S[t+10],k,4294925233),i=A(i,a,h,c,S[t+11],p,2304563134),c=A(c,i,a,h,S[t+12],_,1804603682),h=A(h,c,i,a,S[t+13],j,4254626195),a=A(a,h,c,i,S[t+14],k,2792965006),i=A(i,a,h,c,S[t+15],p,1236535329),c=C(c,i,a,h,S[t+1],q,4129170786),h=C(h,c,i,a,S[t+6],x,3225465664),a=C(a,h,c,i,S[t+11],z,643717713),i=C(i,a,h,c,S[t+0],B,3921069994),c=C(c,i,a,h,S[t+5],q,3593408605),h=C(h,c,i,a,S[t+10],x,38016083),a=C(a,h,c,i,S[t+15],z,3634488961),i=C(i,a,h,c,S[t+4],B,3889429448),c=C(c,i,a,h,S[t+9],q,568446438),h=C(h,c,i,a,S[t+14],x,3275163606),a=C(a,h,c,i,S[t+3],z,4107603335),i=C(i,a,h,c,S[t+8],B,1163531501),c=C(c,i,a,h,S[t+13],q,2850285829),h=C(h,c,i,a,S[t+2],x,4243563512),a=C(a,h,c,i,S[t+7],z,1735328473),i=C(i,a,h,c,S[t+12],B,2368359562),c=b(c,i,a,h,S[t+5],D,4294588738),h=b(h,c,i,a,S[t+8],E,2272392833),a=b(a,h,c,i,S[t+11],F,1839030562),i=b(i,a,h,c,S[t+14],G,4259657740),c=b(c,i,a,h,S[t+1],D,2763975236),h=b(h,c,i,a,S[t+4],E,1272893353),a=b(a,h,c,i,S[t+7],F,4139469664),i=b(i,a,h,c,S[t+10],G,3200236656),c=b(c,i,a,h,S[t+13],D,681279174),h=b(h,c,i,a,S[t+0],E,3936430074),a=b(a,h,c,i,S[t+3],F,3572445317),i=b(i,a,h,c,S[t+6],G,76029189),c=b(c,i,a,h,S[t+9],D,3654602809),h=b(h,c,i,a,S[t+12],E,3873151461),a=b(a,h,c,i,S[t+15],F,530742520),i=b(i,a,h,c,S[t+2],G,3299628645),c=m(c,i,a,h,S[t+0],H,4096336452),h=m(h,c,i,a,S[t+7],I,1126891415),a=m(a,h,c,i,S[t+14],J,2878612391),i=m(i,a,h,c,S[t+5],K,4237533241),c=m(c,i,a,h,S[t+12],H,1700485571),h=m(h,c,i,a,S[t+3],I,2399980690),a=m(a,h,c,i,S[t+10],J,4293915773),i=m(i,a,h,c,S[t+1],K,2240044497),c=m(c,i,a,h,S[t+8],H,1873313359),h=m(h,c,i,a,S[t+15],I,4264355552),a=m(a,h,c,i,S[t+6],J,2734768916),i=m(i,a,h,c,S[t+13],K,1309151649),c=m(c,i,a,h,S[t+4],H,4149444226),h=m(h,c,i,a,S[t+11],I,3174756917),a=m(a,h,c,i,S[t+2],J,718787259),i=m(i,a,h,c,S[t+9],K,3951481745),c=g(c,u),i=g(i,e),a=g(a,o),h=g(h,f);var M=L(c)+L(i)+L(a)+L(h);return M.toLowerCase()} } if ( typeof( phplive_init_jquery ) == "undefined" ) { var phplive_jquery ; var phplive_stat_refer = encodeURIComponent( document.referrer.replace("http", "hphp") ) ; var phplive_stat_onpage = encodeURIComponent( location.toString( ).replace("http", "hphp") ) ; var phplive_stat_title = encodeURIComponent( document.title ) ; var phplive_stat_title_temp = phplive_stat_title.replace( / /g,'' ) ; if ( !phplive_stat_title_temp ) { phplive_stat_title = "- no title -" ; } var phplive_win_width = screen.width ; var phplive_win_height = screen.height ; var phplive_resolution = encodeURI( phplive_win_width + " x " + phplive_win_height ) ; var phplive_query_extra = "&r="+phplive_stat_refer+"&title="+phplive_stat_title+"&resolution="+phplive_resolution ; var proto = location.protocol ; // to avoid JS proto error, use page proto for areas needing to access the JS objects var phplive_browser = navigator.appVersion ; var phplive_mime_types = "" ; var phplive_display_width = screen.availWidth ; var phplive_display_height = screen.availHeight ; var phplive_display_color = screen.colorDepth ; var phplive_timezone = new Date().getTimezoneOffset() ; if ( navigator.mimeTypes.length > 0 ) { for (var x=0; x < navigator.mimeTypes.length; x++) { phplive_mime_types += navigator.mimeTypes[x].description ; } } var phplive_browser_token = phplive_md5( phplive_display_width+phplive_display_height+phplive_display_color+phplive_timezone+phplive_browser+phplive_mime_types ) ; var phplive_session_support = ( typeof( Storage ) !== "undefined" ) ? 1 : 0 ; if ( phplive_session_support ) { try { sessionStorage.minmax = 1 ; } catch (error) {} } var phplive_js_center = function(a){var b=phplive_jquery(window),c=b.scrollTop( );return this.each(function( ){var f=phplive_jquery(this),e=phplive_jquery.extend({against:"window",top:false,topPercentage:0.5},a),d=function( ){var h,g,i;if(e.against==="window"){h=b;}else{if(e.against==="parent"){h=f.parent( );c=0;}else{h=f.parents(against);c=0;}}g=((h.width( ))-(f.outerWidth( )))*0.5;i=((h.height( ))-(f.outerHeight( )))*e.topPercentage+c;if(e.top){i=e.top+c;}f.css({left:g,top:i});};d( );b.resize(d);});} ; var phplive_jquery_loading = 0 ; var undeefined ; var phplive_quirks = 0 ; var phplive_IE ; //@cc_on phplive_IE = navigator.appVersion ; var phplive_IE_cs = ( phplive_IE && !0 ) ? 0 : 0 ; var mode = document.compatMode,m ; if ( ( mode == 'BackCompat' ) && phplive_IE ) { phplive_quirks = 1 ; } window.phplive_init_jquery = function( ) { if ( typeof( phplive_jquery ) == "undefined" ) { if ( typeof( window.jQuery ) == "undefined" ) { if ( !phplive_jquery_loading ) { phplive_jquery_loading = 1 ; var script_jquery = document.createElement('script') ; script_jquery.type = "text/javascript" ; script_jquery.async = true ; script_jquery.onload = script_jquery.onreadystatechange = function ( ) { if ( ( typeof( this.readyState ) == "undefined" ) || ( this.readyState == "loaded" || this.readyState == "complete" ) ) { phplive_jquery_loading = 0 ; phplive_jquery = window.jQuery.noConflict( true ) ; phplive_jquery.fn.center = phplive_js_center ; } } ; script_jquery.src = "https://phplive.superb.net/js/framework.js?4.5" ; var script_jquery_s = document.getElementsByTagName('script')[0] ; script_jquery_s.parentNode.insertBefore(script_jquery, script_jquery_s) ; } } else { phplive_jquery_loading = 0 ; phplive_jquery = window.jQuery ; phplive_jquery.fn.center = phplive_js_center ; } } else { phplive_jquery_loading = 0 ; } } window.phplive_unique = function( ) { var date = new Date( ) ; return date.getTime( ) ; } phplive_init_jquery( ) ; } if ( typeof( phplive_widget_embed ) == "undefined" ) { var phplive_interval_jquery_check ; // one default invite per page to avoid multiple invites var phplive_widget_embed = 0 ; var this_position = ( phplive_quirks ) ? "absolute" : "fixed" ; var phplive_embed_div_loaded = 0 ; var phplive_widget_div_js_loaded = 0 ; var phplive_widget_div_loaded = 0 ; // seems the quirks fixed so keep it same for now (was 270x180) var phplive_widget_width = ( phplive_quirks ) ? 250 : 250 ; var phplive_widget_height = ( phplive_quirks ) ? 160 : 160 ; var phplive_widget_image = 'https://phplive.superb.net/themes/initiate/initiate.gif?1469978023' ; var phplive_widget_image_op = 'https://phplive.superb.net/themes/initiate/initiate_op_cover.png' ; var phplive_widget = "" ; var phplive_widget_embed_div = " \
\
\
\
\ " ; window.phplive_display_invite_widget = function( thecoverimg, theurl ) { if ( !phplive_widget_div_js_loaded ) { phplive_widget_div_js_loaded = 1 ; phplive_jquery( "body" ).append( phplive_widget ) ; } if ( !phplive_widget_div_loaded ) { phplive_widget_div_loaded = 1 ; phplive_create_iframe( 'phplive_widget', 'iframe_widget', theurl ) ; phplive_jquery( '#phplive_widget_image_img').attr( 'src', thecoverimg ) ; if ( 1 > 4 ) { phplive_jquery( '#phplive_widget_image' ).center( ).show( ) ; phplive_jquery( '#phplive_widget' ).center( ).fadeIn('fast') ; } else { if ( thecoverimg.indexOf( "op_cover" ) != -1 ) { phplive_jquery( '#phplive_widget' ).fadeIn( "fast", function( ) { phplive_jquery( '#phplive_widget_image' ).animate({ left: '50px' }, 200, function( ) { phplive_jquery( '#phplive_widget_image' ).show( ) ; }) ; }) ; } else { phplive_jquery( '#phplive_widget_image' ).show( ).animate({ left: '50px' }, 2000, function( ) { phplive_jquery( '#phplive_widget' ).fadeIn('fast') ; }) ; } } } } window.phplive_widget_init = function ( ) { if ( typeof( phplive_interval_jquery_check ) != "undefined" ) { clearInterval( phplive_interval_jquery_check ) ; } phplive_interval_jquery_check = setInterval(function( ){ if ( typeof( phplive_jquery ) != "undefined" ) { clearInterval( phplive_interval_jquery_check ) ; phplive_display_invite_widget( phplive_widget_image_op, "https://phplive.superb.net/widget.php?token="+phplive_browser_token+"&height="+phplive_widget_height +"&"+phplive_unique( ) ) ; } }, 200) ; } window.phplive_widget_launch = function( ) { phplive_widget_div_loaded = 0 ; phplive_widget_close( ) ; phplive_launch_chat_1(0, 1, "", 0, 0, 1) ; } window.phplive_widget_close = function( ) { phplive_jquery( '#phplive_widget_image' ).stop().fadeOut('fast') ; phplive_jquery( '#phplive_widget' ).fadeOut('fast') ; phplive_create_iframe( 'phplive_widget', 'iframe_widget', 'about:blank' ) ; } window.phplive_widget_decline = function( ) { if ( phplive_widget_div_loaded ) { var phplive_pullimg_widget = new Image ; phplive_pullimg_widget.onload = function( ) { if ( 1 > 4 ) { phplive_jquery( '#phplive_widget' ).fadeOut('fast') ; } else { phplive_jquery( '#phplive_widget_image' ).animate({ left: -800 }, 2000) ; } }; phplive_pullimg_widget.src = "https://phplive.superb.net/ajax/chat_actions_disconnect.php?action=disconnect&token="+phplive_browser_token+"&isop=0&widget=1&"+phplive_unique( ) ; phplive_widget_close( ) ; phplive_widget_div_loaded = 0 ; } } window.phplive_widget_embed_launch = function( theurl, theminmax, theauto ) { if ( !phplive_embed_div_loaded ) { phplive_embed_div_loaded = 1 ; var load_counter = 0 ; phplive_jquery( "body" ).append( phplive_widget_embed_div ) ; if ( phplive_session_support ) { try { sessionStorage.minmax = theminmax ; } catch (error) {} } if ( !theminmax ) { phplive_jquery('#phplive_widget_embed_iframe').css({'bottom': 50000}).show( ) ; setTimeout( function( ){ phplive_widget_embed_minimize( ) ; phplive_jquery('#phplive_widget_embed_iframe').css({'bottom': 5}) ; }, 1500 ) ; } else { phplive_jquery('#phplive_widget_embed_iframe_loading').show( ) ; phplive_jquery('#phplive_widget_embed_iframe').hide( ) ; phplive_jquery('#phplive_widget_embed_iframe').css({'bottom': -550}).show( ) ; phplive_jquery('#phplive_widget_embed_iframe').animate({ bottom: 5 }, 500, function( ) { phplive_jquery('#phplive_widget_embed_iframe_shadow').fadeIn('fast') ; }) ; } phplive_create_iframe( 'phplive_widget_embed_iframe_wrapper', 'iframe_widget_embed', theurl+"&embed=1&"+phplive_unique( ) ) ; phplive_jquery( '#iframe_widget_embed' ).load(function ( ){ ++load_counter ; // some browsers triggers load() multiple times... only check on 1st instance if ( load_counter == 1 ) phplive_jquery('#phplive_widget_embed_iframe_loading').hide( ) ; }) ; } else { phplive_widget_embed_window_reset( ) ; if ( phplive_session_support ) { try { sessionStorage.minmax = 1 ; } catch (error) {} } phplive_jquery('#phplive_widget_embed_iframe').fadeOut('fast', function( ) { phplive_jquery('#phplive_widget_embed_iframe').fadeIn('fast', function ( ) { phplive_jquery( '#phplive_widget_embed_iframe_shadow' ).fadeIn('fast') ; } ) ; }) ; } } window.phplive_widget_embed_minimize = function( ) { phplive_jquery('#phplive_widget_embed_iframe').css({'height': 40}) ; phplive_jquery('#phplive_widget_embed_iframe').css({'width': 250}) ; phplive_jquery('#phplive_embed_menu_minimize').hide( ) ; phplive_jquery('#phplive_embed_menu_popout').hide( ) ; phplive_jquery('#phplive_embed_menu_maximize').show( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow').hide( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow_minimzed').fadeIn("fast") ; if ( phplive_session_support ) { try { sessionStorage.minmax = 0 ; } catch (error) {} } } window.phplive_widget_embed_maximize = function( ) { phplive_widget_embed_window_reset( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow').fadeIn("fast") ; phplive_jquery('#phplive_widget_embed_iframe_shadow_minimzed').hide( ) ; if ( phplive_session_support ) { try { sessionStorage.minmax = 1 ; } catch (error) {} } } window.phplive_widget_embed_popout = function( ) { phplive_launch_chat_1(1, 1, "", 0, 0, 0) ; phplive_jquery('#phplive_widget_embed_iframe').css({'bottom': 50000}) ; phplive_jquery('#phplive_widget_embed_iframe_shadow').hide( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow_minimzed').hide( ) ; phplive_widget_embed_window_reset( ) ; phplive_create_iframe( 'phplive_widget_embed_iframe_wrapper', 'iframe_widget_embed', 'about:blank' ) ; phplive_embed_div_loaded = 0 ; } window.phplive_widget_embed_close = function( ) { phplive_jquery('#phplive_widget_embed_iframe').css({'bottom': 50000}) ; phplive_jquery('#phplive_widget_embed_iframe_shadow').hide( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow_minimzed').hide( ) ; phplive_widget_embed_window_reset( ) ; phplive_create_iframe( 'phplive_widget_embed_iframe_wrapper', 'iframe_widget_embed', 'about:blank' ) ; phplive_embed_div_loaded = 0 ; } window.phplive_widget_embed_mimax = function( ) { if ( !phplive_jquery('#phplive_embed_menu_minimize').is(':visible') ) { phplive_widget_embed_maximize( ) ; } else { phplive_widget_embed_minimize( ) ; } } window.phplive_widget_embed_window_reset = function( ) { phplive_jquery('#phplive_widget_embed_iframe').css({'height': 510}) ; phplive_jquery('#phplive_widget_embed_iframe').css({'width': 400}) ; phplive_jquery('#phplive_embed_menu_maximize').hide( ) ; phplive_jquery('#phplive_embed_menu_popout').show( ) ; phplive_jquery('#phplive_embed_menu_minimize').show( ) ; phplive_jquery('#phplive_widget_embed_iframe_shadow_minimzed').hide( ) ; } window.phplive_create_iframe = function( thediv, thename, theurl ) { if ( document.getElementById(thename) ) { phplive_jquery('#'+thename).empty().remove() ; } var phplive_dynamic_iframe = document.createElement("iframe") ; phplive_dynamic_iframe.src = theurl ; phplive_dynamic_iframe.id = thename ; phplive_dynamic_iframe.name = thename ; phplive_dynamic_iframe.style.width = "100%" ; phplive_dynamic_iframe.style.height = "100%" ; phplive_dynamic_iframe.style.border = 0 ; phplive_dynamic_iframe.scrolling = "no" ; phplive_dynamic_iframe.frameBorder = 0 ; phplive_dynamic_iframe.style.MozBorderRadius = "5px" ; phplive_dynamic_iframe.style.borderRadius = "5px" ; phplive_jquery('#'+thediv).empty( ).html( phplive_dynamic_iframe ) ; } var phplive_interval_jquery_init = setInterval(function( ){ if ( typeof( phplive_jquery ) != "undefined" ) { clearInterval( phplive_interval_jquery_init ) ; } }, 100) ; } if ( typeof( phplive_thec_1 ) == "undefined" ) { var phplive_thec_1 = 0 ; var phplive_fetch_status_image_1 ; var phplive_fetch_footprint_image_1 ; var phplive_interval_fetch_status_1 ; var phplive_interval_footprint_1 ; var phplive_request_url_query_1 = "d=1&token="+phplive_browser_token+"&onpage="+phplive_stat_onpage+"&title="+phplive_stat_title+"&" ; var phplive_fetch_status_url_1 = "https://phplive.superb.net/ajax/status.php?action=js&token="+phplive_browser_token+"&deptid=1&jkey=a1dce59110c6d6cb57c23039b096214b" ; var phplive_request_url_1 = "https://phplive.superb.net/phplive.php?"+phplive_request_url_query_1 ; var phplive_request_url_1_embed = "https://phplive.superb.net/phplive_embed.php?"+phplive_request_url_query_1 ; var phplive_offline_redirect_1 = 0 ; var phplive_online_offline_1 ; var phplive_image_online_1 = "https://phplive.superb.net/web/icon_online_0.JPEG?1469978023" ; var phplive_image_offline_1 = "https://phplive.superb.net/pics/icons/icon_offline.gif" ; window.phplive_get_thec_1 = function( ) { return phplive_thec_1 ; } window.phplive_fetch_status_1 = function( ) { phplive_fetch_status_image_1 = new Image ; phplive_fetch_status_image_1.onload = phplive_fetch_status_actions_1 ; phplive_fetch_status_image_1.src = phplive_fetch_status_url_1+"&"+phplive_unique( ) ; } window.phplive_fetch_status_actions_1 = function( ) { var thisflag = phplive_fetch_status_image_1.width ; if ( ( thisflag == 1 ) || ( thisflag == 4 ) || ( thisflag == 6 ) || ( thisflag == 8 ) || ( thisflag == 10 ) ) { phplive_online_offline_1 = 1 ; if ( ( thisflag == 4 ) && !phplive_widget_div_loaded && !phplive_embed_div_loaded ) { phplive_widget_init( ) ; } else if ( ( thisflag == 10 ) && !phplive_widget_div_loaded && !phplive_embed_div_loaded ) { } else if ( ( thisflag == 8 ) && !phplive_embed_div_loaded ) { // setTimeout is for brief delay to avoid too fast loading causing 1px height issue if ( phplive_session_support ) { if ( sessionStorage.minmax == 1 ) { setTimeout( function( ){ phplive_launch_chat_1(0, 1, "", 1, 1, 0) ; }, 100 ) ; } else { setTimeout( function( ){ phplive_launch_chat_1(0, 0, "", 1, 1, 0) ; }, 100 ) ; } } else { setTimeout( function( ){ phplive_launch_chat_1(0, 0, "", 0, 1, 0) ; }, 100 ) ; } } else if ( thisflag == 6 ) { phplive_display_invite_widget( phplive_widget_image, "about:blank" ) ; } // auto invite } else { phplive_online_offline_1 = 0 ; if ( ( thisflag == 5 ) && !phplive_widget_div_loaded && !phplive_embed_div_loaded ) { phplive_widget_init( ) ; } else if ( ( thisflag == 11 ) && !phplive_widget_div_loaded && !phplive_embed_div_loaded ) { } if ( ( thisflag == 9 ) && !phplive_embed_div_loaded ) { if ( phplive_session_support ) { if ( sessionStorage.minmax == 1 ) { setTimeout( function( ){ phplive_launch_chat_1(0, 1, "", 1, 1, 0) ; }, 100 ) ; } else { setTimeout( function( ){ phplive_launch_chat_1(0, 0, "", 1, 1, 0) ; }, 100 ) ; } } else { setTimeout( function( ){ phplive_launch_chat_1(0, 0, "", 0, 1, 0) ; }, 100 ) ; } } else if ( thisflag == 7 ) { phplive_display_invite_widget( phplive_widget_image, "about:blank" ) ; } // auto invite } if ( typeof( phplive_interval_fetch_status_1 ) != "undefined" ) clearInterval( phplive_interval_fetch_status_1 ) ; phplive_interval_fetch_status_1 = setInterval(function( ){ phplive_fetch_status_1( ) ; }, 13 * 1000) ; } window.phplive_footprint_track_1 = function( ) { var c = phplive_get_thec_1( ) ; ++phplive_thec_1 ; var fetch_url = "https://phplive.superb.net/ajax/footprints.php?deptid=1&token="+phplive_browser_token+"&onpage="+phplive_stat_onpage+"&c="+c+"&"+phplive_unique( ) ; if ( !c ) { fetch_url += phplive_query_extra ; } phplive_fetch_footprint_image_1 = new Image ; phplive_fetch_footprint_image_1.onload = phplive_fetch_footprint_actions_1 ; phplive_fetch_footprint_image_1.src = fetch_url ; } window.phplive_fetch_footprint_actions_1 = function( ) { var thisflag = phplive_fetch_footprint_image_1.width ; if ( thisflag == 1 ) { if ( typeof( phplive_interval_footprint_1 ) != "undefined" ) clearInterval( phplive_interval_footprint_1 ) ; phplive_interval_footprint_1 = setTimeout(function( ){ phplive_footprint_track_1( ) }, 25 * 1000) ; } else if ( thisflag == 4 ) { // if browser idle too long, clear all interval processes to save on resources if ( typeof( phplive_interval_footprint_1 ) != "undefined" ) { clearInterval( phplive_interval_footprint_1 ) ; } if ( typeof( phplive_interval_fetch_status_1 ) != "undefined" ) { clearInterval( phplive_interval_fetch_status_1 ) ; } if ( ( typeof( phplive_interval_status_check_1431042259 ) != "undefined" ) && ( typeof( phplive_btn_loaded_complete_1431042259 ) != "undefined" ) ) { clearInterval( phplive_interval_status_check_1431042259 ) ; } } } window.phplive_launch_chat_1 = function( theflag, theminmax, thetheme, theforce, theauto, thewidget ) { // theflag - indication of md5 reset for chat window popout // theforce - force embed chat var winname = ( theflag ) ? "popup_win" : "win_"+phplive_unique( ) ; var name = "", email = "" ; var custom_vars = "&custom=" ; if ( typeof( theminmax ) == "undefined" ){ theminmax = 1 ; } if ( typeof( thetheme ) == "undefined" ){ thetheme = "" ; } if ( typeof( phplive_v ) != "undefined" ) { for ( var key in phplive_v ) { if ( key == "name" ) { name = encodeURIComponent( phplive_v["name"] ) ; } else if ( key == "email" ) { email = encodeURIComponent( phplive_v["email"] ) ; } else { custom_vars += encodeURIComponent( key )+"-_-"+encodeURIComponent( phplive_v[key] )+"-cus-" ; } } } phplive_widget_close( ) ; // incase widget is opened, close it since chat window opened if ( ( "" != "" ) && !phplive_online_offline_1 && !theauto ) { location.href = "" ; } else { var launch_embed = ( theforce ) ? 1 : 0 ; if ( phplive_online_offline_1 ) { if ( 0 && !theflag ) { launch_embed = 1 ; } } else { if ( 0 && !theflag ) { launch_embed = 1 ; } } // if the device window is smaller then widget width, most likely a mobile browser // and better to open in new window for streamlined chat experience (window.innerWidth) if ( 400 > phplive_win_width ) { launch_embed = 0 ; } if ( launch_embed && !phplive_IE_cs ) phplive_widget_embed_launch( phplive_request_url_1_embed+"&theme="+thetheme+"&js_name="+name+"&js_email="+email+custom_vars+"&", theminmax, theauto ) ; else if ( !theauto ) { if ( thewidget ) { theflag = 1 ; } popupWin = window.open( phplive_request_url_1+"&popout="+theflag+"&theme="+thetheme+"&js_name="+name+"&js_email="+email+custom_vars+"&", winname, 'scrollbars=no,resizable=yes,menubar=no,location=no,screenX=50,screenY=100,width=600,height=560' ) ; var interval = window.setInterval(function() { try { if (popupWin == null || popupWin.closed) { window.clearInterval(interval); if (typeof closeCallback === "function") { closeCallback(popupWin); } } } catch (e) { } }, 1000); } } } phplive_fetch_status_1( ) ; phplive_footprint_track_1( ) ; } if ( typeof( phplive_btn_loaded_1431042259 ) == "undefined" ) { var phplive_btn_loaded_1431042259 = 1 ; var phplive_btn_loaded_complete_1431042259 ; var phplive_interval_status_check_1431042259 ; var phplive_interval_jquery_check_1431042259 ; var phplive_online_offline_prev_1431042259 ; window.phplive_image_refresh_1431042259 = function( ) { if ( typeof( phplive_interval_status_check_1431042259 ) != "undefined" ) { clearInterval( phplive_interval_status_check_1431042259 ) ; } var image_or_text ; if ( phplive_online_offline_1 ) image_or_text = ( 0 ) ? "" : "" ; else { if ( 1 ) { image_or_text = "" ; } else { image_or_text = ( 0 ) ? "" : "" ; } } if ( phplive_online_offline_prev_1431042259 != image_or_text ) { document.getElementById("phplive_btn_1431042259").innerHTML = image_or_text ; phplive_online_offline_prev_1431042259 = image_or_text ; } phplive_btn_loaded_complete_1431042259 = 1 ; phplive_interval_status_check_1431042259 = setInterval(function( ){ phplive_image_refresh_1431042259( ) ; }, 5000) ; } window.phplive_output_image_or_text_1431042259 = function( ) { if ( typeof( phplive_online_offline_1 ) == "undefined" ) { phplive_interval_status_check_1431042259 = setInterval(function( ){ if ( typeof( phplive_online_offline_1 ) != "undefined" ) phplive_image_refresh_1431042259( ) ; }, 200) ; } else { phplive_image_refresh_1431042259( ) ; } } window.phplive_process_1431042259 = function( ) { if ( phplive_quirks ) { var phplive_btn = document.getElementById('phplive_btn_1431042259') ; if ( ( typeof( phplive_btn.style.position ) != "undefined" ) && phplive_btn.style.position ) phplive_btn.style.position = "absolute" ; } phplive_output_image_or_text_1431042259( ) ; } var phplive_interval_jquery_check_1431042259 = setInterval(function( ){ if ( typeof( phplive_jquery ) != "undefined" ){ clearInterval( phplive_interval_jquery_check_1431042259 ) ; phplive_interval_jquery_check_1431042259 = undeefined ; phplive_process_1431042259( ) ; } else if ( !phplive_jquery_loading ) { phplive_init_jquery( ) ; } }, 200) ; }