function getCookie(a){var f=document.cookie.split(";");var b="";var d="";var e="";var c=false;for(i=0;i<f.length;i++){b=f[i].split("=");d=b[0].replace(/^\s+|\s+$/g,"");if(d==a){c=true;if(b.length>1){e=unescape(b[1].replace(/^\s+|\s+$/g,""));}return e;break;}b=null;d="";}if(!c){return null;}}function liveToStageRedirect(b,a){var c=location.href.indexOf(a)==-1;var d=getCookie("preview");if(d&&!c){var e=location.href;
e=e.replace(a,b);setTimeout(function(){document.location.href=e;},1000);}}
