jQuery(document).ready(function(){jQuery("#gigya-socialize-update").submit(function(a){a.preventDefault();if(jQuery("#gigya-socialize-update-text").val()!=""){if(typeof gigya!="undefined"){a=jQuery("#gigya-socialize-update-text").val();var b=jQuery("#gigya-socialize-update-via").val();if(b!="")a+=" via "+b;gigya.services.socialize.setStatus(gsConf,{status:a})}jQuery("#gigya-socialize-update-text").val("What are you doing now?")}});jQuery("#gigya-socialize-update-text").click(function(a){jQuery(this).val()==
"What are you doing now?"&&jQuery(this).val("")});jQuery("#gigya-socialize-update-text").blur(function(a){jQuery(this).val()==""&&jQuery(this).val("What are you doing now?")})});
function processLogin(a){jQuery(".login #login #nav,.gs-for-wordpress-login-widget").after('<div id="gs-for-wordpress-login-message-container"><p id="gs-for-wordpress-login-message" class="message">Please wait &mdash; logging in...</p></div>');jQuery.post("index.php",{"gigya-authenticate":1,"gigya-timestamp":a.timestamp,"gigya-uid":a.UID,"gigya-signature":a.signature,"gigya-is-site-user":a.user.isSiteUser,"gigya-is-log-in-identity":a.user.isLogInIdentity,"gigya-is-connected":a.user.isConnected,"gigya-nickname":a.user.nickname,
"gigya-login-provider":a.user.loginProvider,"gigya-photo-url":a.user.photoURL,"gigya-thumbnail-url":a.user.thumbnailURL,"gigya-first-name":a.user.firstName,"gigya-last-name":a.user.lastName,"gigya-gender":a.user.gender,"gigya-age":a.user.age,"gigya-birth-day":a.user.birthDay,"gigya-birth-month":a.user.birthMonth,"gigya-birth-year":a.user.birthYear,"gigya-email":a.user.email,"gigya-country":a.user.country,"gigya-state":a.user.state,"gigya-city":a.user.city,"gigya-zip":a.user.zip,"gigya-profile-url":a.user.profileURL,
"redirect-url":jQuery("#gs-for-wordpress-redirect-url").attr("href")},function(b,c){jQuery("#gs-for-wordpress-login-message").html(b.message);""!=b.redirect&&setTimeout('window.document.location.href = "'+b.redirect+'";',150)},"json")}shutterOnload=function(){shutterReloaded.init("sh")};
if(typeof shutterOnload=="function")if("undefined"!=typeof jQuery)jQuery(document).ready(function(){shutterOnload()});else if(typeof window.onload!="function")window.onload=shutterOnload;else{oldonld=window.onload;window.onload=function(){oldonld&&oldonld();shutterOnload()}}
shutterReloaded={I:function(a){return document.getElementById(a)},settings:function(){var a=this,b=shutterSettings;a.imageCount=b.imageCount||0;a.msgLoading=b.msgLoading||"L O A D I N G";a.msgClose=b.msgClose||"Click to Close"},init:function(a){var b=this,c,d,e,f,g;shutterLinks={};shutterSets={};if("object"!=typeof shutterSettings)shutterSettings={};for(f=0;f<document.links.length;f++){c=document.links[f];e=c.href.indexOf("?")==-1?c.href.slice(-4).toLowerCase():c.href.substring(0,c.href.indexOf("?")).slice(-4).toLowerCase();
if(!(e!=".jpg"&&e!=".png"&&e!=".gif"&&e!="jpeg"))if(!(a=="sh"&&c.className.toLowerCase().indexOf("shutter")==-1))if(!(a=="lb"&&c.rel.toLowerCase().indexOf("lightbox")==-1)){if(c.className.toLowerCase().indexOf("shutterset")!=-1)e=c.className.replace(/\s/g,"_");else if(c.rel.toLowerCase().indexOf("lightbox[")!=-1)e=c.rel.replace(/\s/g,"_");else{e=0;g=-1}if(e){shutterSets[e]||(shutterSets[e]=[]);g=shutterSets[e].push(f)}d=c.href.slice(c.href.lastIndexOf("/")+1);d=c.title&&c.title!=d?c.title:"";shutterLinks[f]=
{link:c.href,num:g,set:e,title:d};c.onclick=new Function('shutterReloaded.make("'+f+'");return false;')}}b.settings()},make:function(a,b){var c=this,d,e="",f="",g;e=-1;if(!c.Top)c.Top=typeof window.pageYOffset!="undefined"?window.pageYOffset:document.documentElement.scrollTop>0?document.documentElement.scrollTop:document.body.scrollTop;if(typeof c.pgHeight=="undefined")c.pgHeight=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);c.FS=b?b>0?1:0:shutterSettings.FS||0;if(c.resizing)c.resizing=
null;window.onresize=new Function('shutterReloaded.resize("'+a+'");');document.documentElement.style.overflowX="hidden";if(!c.VP){c._viewPort();c.VP=true}if(!(e=c.I("shShutter"))){e=document.createElement("div");e.setAttribute("id","shShutter");document.getElementsByTagName("body")[0].appendChild(e);c.hideTags()}if(!(b=c.I("shDisplay"))){b=document.createElement("div");b.setAttribute("id","shDisplay");b.style.top=c.Top+"px";document.getElementsByTagName("body")[0].appendChild(b)}e.style.height=c.pgHeight+
"px";f=c.textBtns?" | ":"";if(shutterLinks[a].num>1){d=shutterSets[shutterLinks[a].set][shutterLinks[a].num-2];e='<a href="#" onclick="shutterReloaded.make('+d+');return false">&lt;&lt;</a>'+f;g=new Image;g.src=shutterLinks[d].link}else e="";if(shutterLinks[a].num!=-1&&shutterLinks[a].num<shutterSets[shutterLinks[a].set].length){d=shutterSets[shutterLinks[a].set][shutterLinks[a].num];f='<a href="#" onclick="shutterReloaded.make('+d+');return false">&gt;&gt;</a>'+f;g=new Image;g.src=shutterLinks[d].link}else f=
"";d=shutterLinks[a].num>0&&c.imageCount?'<div id="shCount">&nbsp;(&nbsp;'+shutterLinks[a].num+"&nbsp;/&nbsp;"+shutterSets[shutterLinks[a].set].length+"&nbsp;)&nbsp;</div>":"";e='<div id="shTitle"><div id="shPrev">'+e+'</div><div id="shNext">'+f+'</div><div id="shName">'+shutterLinks[a].title+"</div>"+d+"</div>";b.innerHTML='<div id="shWrap"><img src="" id="shTopImg" title="'+c.msgClose+'" onload="shutterReloaded.showImg();" onclick="shutterReloaded.hideShutter();" />'+e+"</div>";document.getElementById("shTopImg").src=
shutterLinks[a].link;window.setTimeout(function(){shutterReloaded.loading()},2000)},loading:function(){var a=this,b,c;if(!((b=a.I("shWrap"))&&b.style.visibility=="visible"))if(b=a.I("shShutter"))if(!a.I("shWaitBar")){c=document.createElement("div");c.setAttribute("id","shWaitBar");c.style.top=a.Top+"px";c.innerHTML=a.msgLoading;b.appendChild(c)}},hideShutter:function(){var a=this,b;if(b=a.I("shDisplay"))b.parentNode.removeChild(b);if(b=a.I("shShutter"))b.parentNode.removeChild(b);a.hideTags(true);
window.scrollTo(0,a.Top);window.onresize=a.FS=a.Top=a.VP=null;document.documentElement.style.overflowX=""},resize:function(a){var b=this;if(!b.resizing)if(b.I("shShutter")){var c=b.I("shWrap");if(c)c.style.visibility="hidden";window.setTimeout(function(){shutterReloaded.resizing=null},500);window.setTimeout(new Function('shutterReloaded.VP = null;shutterReloaded.make("'+a+'");'),100);b.resizing=true}},_viewPort:function(){var a=this,b=window.innerHeight?window.innerHeight:0,c=document.body.clientHeight?
document.body.clientHeight:0,d=document.documentElement?document.documentElement.clientHeight:0;if(b>0){a.wHeight=b-c>1&&b-c<30?c:b;a.wHeight=a.wHeight-d>1&&a.wHeight-d<30?d:a.wHeight}else a.wHeight=d>0?d:c;b=document.documentElement?document.documentElement.clientWidth:0;c=window.innerWidth?window.innerWidth:document.body.clientWidth;a.wWidth=b>1?b:c},showImg:function(){var a=this,b=a.I("shShutter"),c=a.I("shDisplay"),d=a.I("shTopImg"),e=a.I("shTitle"),f=a.I("shNavBar"),g,h=0;if(b)if(!((g=a.I("shWrap"))&&
g.style.visibility=="visible")){if(f=a.I("shWaitBar"))f.parentNode.removeChild(f);b.style.width=c.style.width="";e.style.width=d.width-4+"px";f=a.wHeight-7;if(a.FS){if(d.width>a.wWidth-10)b.style.width=c.style.width=d.width+10+"px";document.documentElement.style.overflowX=""}else{window.scrollTo(0,a.Top);if(d.height>f){d.width*=f/d.height;d.height=f;h=1}if(d.width>a.wWidth-16){d.height*=(a.wWidth-16)/d.width;d.width=a.wWidth-16;h=1}e.style.width=d.width-4+"px"}e=a.Top+d.height+10;if(e>a.pgHeight)b.style.height=
e+"px";window.scrollTo(0,a.Top);b=(f-d.height)*0.45;b=b>3?Math.floor(b):3;c.style.top=a.Top+b+"px";g.style.visibility="visible"}},hideTags:function(a){var b=document.getElementsByTagName("select"),c=document.getElementsByTagName("object"),d=document.getElementsByTagName("embed"),e=document.getElementsByTagName("iframe");a=a?"visible":"hidden";for(i=0;i<b.length;i++)b[i].style.visibility=a;for(i=0;i<c.length;i++)c[i].style.visibility=a;for(i=0;i<d.length;i++)d[i].style.visibility=a;for(i=0;i<e.length;i++)e[i].style.visibility=
a}};
jQuery(document).ready(function(){jQuery("a").each(function(){var a=jQuery(this),b=a.attr("href");if(b!=undefined){var c=b.replace("http://","").replace("https://",""),d=b.split(".").reverse(),e=d[0].toLowerCase();d=b.split("/").reverse();d=d[2];d=false;if(jQuery.inArray(e,analyticsFileTypes)!=-1){d=true;a.click(function(){analyticsEventTracking=="enabled"?_gaq.push(["_trackEvent","Downloads",e.toUpperCase(),b]):_gaq.push(["_trackPageview",analyticsDownloadsPrefix+c])})}b.match(/^http/)&&!b.match(document.domain)&&d==
false&&a.click(function(){analyticsEventTracking=="enabled"?_gaq.push(["_trackEvent","Outbound Traffic",b.match(/:\/\/(.[^/]+)/)[1],b]):_gaq.push(["_trackPageview",analyticsOutboundPrefix+c])})}})});