/* JS FOR WEBSITE ONLY */;/*7P1RCD3H9R0M*/var I10C;var I11C;(function(I10C){ I10C.ScriptBegin || (I10C.ScriptBegin = function(){}); I10C.ScriptEnd || (I10C.ScriptEnd = function(){});I10C.PostMessage || (I10C.PostMessage = function(){ return this.postMessage.apply(this, arguments); });I10C.Location || (I10C.Location = function i10cloc(ba$e, isWrite, op){ var locat1onPresent = Object.getOwnPropertyNames(ba$e).indexOf('locat1on') !== -1; return (!isWrite) ? ( locat1onPresent ? ba$e.locat1on : (ba$e.location || ba$e.locat1on)) : (locat1onPresent ? {set href(v) {ba$e.locat1on.href = v;}, get href() {return i10cloc(ba$e,false,op);}} : {set href(v) {ba$e.location = v;}, get href() {return i10cloc(ba$e,false,op);}});}); I11C.PreLocationContextProxy || (I11C.PreLocationContextProxy = function i10cPreLocContext(ba$e) { return ba$e;});})(I11C||I10C|| (I11C = {}));(I11C || I10C).ScriptBegin(); /* ----------TOGGLE ALERT BOX AND SET COOKIE ------------*/ if (document.getElementById('pmalerts_close_btn') != undefined) { jQuery("#pmalerts_close_btn").on("click", function(){ var hidden = jQuery('#pmalerts_link'); if (hidden.hasClass('visible')){ jQuery( "body" ).removeClass( 'pm_isalert' ); jQuery("#pmalerts_holder").slideToggle([1000]); // set cookie so reader does not see the same alert again after closing it var date_ = new Date(); date_.setTime(date_.getTime() + (2 * 24 * 60 * 60 * 1000)); //document.cookie = "pm_alert=" + document.getElementById('pmalerts_body').innerHTML + "; expires=" + date_.toGMTString() + "; path=/"; document.cookie = "pm_alert=" + pmalerts_content + "; expires=" + date_.toGMTString() + "; path=/"; } }); } jQuery( document ).ready( function() { var cki_ = pm_alerts_cookie_get(); if ( 0 < jQuery( '#pmalerts_body' ).length ) { //if ( cki_['pm_alert'] !== document.getElementById('pmalerts_body').innerHTML ) { if ( cki_['pm_alert'] !== pmalerts_content ) { document.getElementById('pmalerts_holder').style.display = 'block'; jQuery( "body" ).addClass( 'pm_isalert' ); } else { document.getElementById('pmalerts_holder').style.display = 'none'; jQuery( "body" ).removeClass( 'pm_isalert' ); } } }); function pm_alerts_cookie_get() { var ary_ = Array(); var all_ = document.cookie; cki_ = all_.split( ';' ); for ( var i = 0; i < cki_.length; i++ ) { key_ = cki_[ i ].split( '=' )[0]; if ( 'undefined' !== typeof( key_ ) ) { key_ = key_.trim(); key_ = unescape( key_ ); val_ = cki_[ i ].split( '=' )[1]; if ( 'undefined' !== typeof( val_ ) ) { val_ = val_.trim(); val_ = unescape( val_ ); ary_[ key_ ] = val_; } } } ary_['pm_alert'] = ( ary_['pm_alert'] != undefined ? ary_['pm_alert'] : '' ); return ary_; } ;(I11C || I10C).ScriptEnd();