if(typeof GDWidget=="undefined"){var GDWidget={};
GDWidget.DISMISS_MILLIS=100;
GDWidget.TYPE_MODULE="module";
GDWidget.TYPE_COMBO="combo";
GDWidget.TYPE_LINK="link";
GDWidget.getElementsByClassName=function(B,A,C){if(document.getElementsByClassName){getElementsByClassName=function(I,L,H){H=H||document;
var D=H.getElementsByClassName(I),K=(L)?new RegExp("\\b"+L+"\\b","i"):null,E=[],G;
for(var F=0,J=D.length;
F<J;
F+=1){G=D[F];
if(!K||K.test(G.nodeName)){E.push(G)
}}return E
}
}else{if(document.evaluate){getElementsByClassName=function(M,P,L){P=P||"*";
L=L||document;
var F=M.split(" "),N="",J="http://www.w3.org/1999/xhtml",O=(document.documentElement.namespaceURI===J)?J:null,G=[],D,E;
for(var H=0,I=F.length;
H<I;
H+=1){N+="[contains(concat(' ', @class, ' '), ' "+F[H]+" ')]"
}try{D=document.evaluate(".//"+P+N,L,O,0,null)
}catch(K){D=document.evaluate(".//"+P+N,L,null,0,null)
}while((E=D.iterateNext())){G.push(E)
}return G
}
}else{getElementsByClassName=function(O,R,N){R=R||"*";
N=N||document;
var H=O.split(" "),Q=[],D=(R==="*"&&N.all)?N.all:N.getElementsByTagName(R),M,J=[],L;
for(var I=0,E=H.length;
I<E;
I+=1){Q.push(new RegExp("(^|\\s)"+H[I]+"(\\s|$)"))
}for(var G=0,P=D.length;
G<P;
G+=1){M=D[G];
L=false;
for(var F=0,K=Q.length;
F<K;
F+=1){L=Q[F].test(M.className);
if(!L){break
}}if(L){J.push(M)
}}return J
}
}}return getElementsByClassName(B,A,C)
};
GDWidget.getSizeFromFormat=function(A){var C={x:300,y:250};
if(A){var D=/(\d+)x(\d+)/i;
var B=D.exec(A);
if(B!=null){C={x:parseInt(B[1]),y:parseInt(B[2])}
}}return C
};
GDWidget.getTypeFromFormat=function(A,D){var B=D;
if(typeof A==="string"){var C=A.indexOf("-");
if(C>0){B=A.substr(0,C)
}}return B
};
GDWidget.initialize=function(B){if(B.widgetInitialized){return 
}B.widgetInitialized=true;
if(B.tagName=="A"){B.type=GDWidget.TYPE_LINK;
B.URL=B.href
}else{B.type=GDWidget.TYPE_MODULE;
B.URL=B.getElementsByTagName("a")[0].href
}B.URL=B.URL.replace("&t.a=c","");
B.URL=B.URL.replace("?t.a=c","");
if(B.URL.indexOf("&")>0){B.URL+="&"
}else{B.URL+="?"
}B.URL+="t.a=i";
var A=GDWidget.parseUri(B.URL).queryKey.format;
B.type=GDWidget.getTypeFromFormat(A,B.type);
B.size=GDWidget.getSizeFromFormat(A);
B.mainDiv=GDWidget.createSpinner(B);
B.iframe=GDWidget.createIFrame(B);
if((B.type==GDWidget.TYPE_MODULE)||(B.type==GDWidget.TYPE_COMBO)){B.style.width=B.size.x+"px";
B.style.height=B.size.y+"px";
B.innerHTML="";
B.appendChild(B.mainDiv);
B.mainDiv.style.display="block";
B.mainDiv.appendChild(B.iframe)
}else{if(B.type==GDWidget.TYPE_LINK){B.style.position="relative";
GDWidget.addEvent(B,"mouseover",function(){var C=B;
GDWidget.showPopup(C)
});
GDWidget.addEvent(B,"mouseout",function(){var C=B;
GDWidget.hidePopup(C)
})
}}};
GDWidget.showPopup=function(A){if(A.mouseOutTimeout){clearTimeout(A.mouseOutTimeout);
A.mouseOutTimeout=null
}if(!A.popup){A.appendChild(A.mainDiv);
A.popup=A.mainDiv.appendChild(A.iframe);
A.displayMainDiv=function(B){var C=GDWidget.calcPopupPos(B);
B.mainDiv.style.top=C.top+"px";
B.mainDiv.style.left=C.left+"px";
B.mainDiv.style.boxShadow="0 3px 5px #777";
B.mainDiv.style.WebkitBoxShadow="0 3px 5px #777";
B.mainDiv.style.MozBoxShadow="0 3px 5px #777";
B.parentNode.style.zIndex=666;
B.style.zIndex=666;
B.mainDiv.style.display="block"
}
}A.displayMainDiv(A)
};
GDWidget.hidePopup=function(A){if(!A.mouseOutTimeout){A.mouseOutTimeout=setTimeout(function(){A.style.zIndex=0;
A.parentNode.style.zIndex=0;
A.mainDiv.style.display="none"
},GDWidget.DISMISS_MILLIS)
}};
GDWidget.createSpinner=function(F){var E=GDWidget.parseUri(F.URL);
var G=E.protocol;
var D=E.host;
var B=E.port;
if(B&&!(B=="80"||B=="443")){D+=":"+B
}var A=G+"://"+D;
var C=document.createElement("div");
C.style.position="absolute";
C.style.overflow="hidden";
C.style.width=F.size.x+"px";
C.style.height=F.size.y+"px";
C.style.backgroundColor="transparent";
C.style.textDecoration="none";
C.style.border="none";
C.style.display="none";
C.innerHTML="<div style='position:relative;width:100%;height:100%;background-color:white;'><h3 style='padding-top:40px;margin:0;text-align:center;font-family: Arial, sans-serif;font-size:14px;color:black;'>Loading...</h3><p style='text-align:center;margin-top:15px;'><img height='24' width='24' src='"+A+"/static/img/icons/wait/spinner-orange-24.gif' style='border:none;' /></p><div style='position: absolute; bottom: 0; font-size: 11px; height: 22px; width: 100%; background-color: #EEE; color: #AAA'><p style='font-family: Arial, sans-serif; line-height: 22px; padding-left: 9px; margin: 0'><a href='"+A+"/index.htm' target='_gd'>Salary</a> search powered by Glassdoor<a href='"+A+"/index.htm' target='_gd' style='position: absolute; right: 5px;'><img alt='glassdoor logo' style='border: none; vertical-align: middle' src='"+A+"/static/img/widget/gd-logo.gif' width='74' height='15'></a></p></div>";
"</div>";
return C
};
GDWidget.createIFrame=function(B){var A=document.createElement("iframe");
A.scrolling="no";
A.style.visibility="hidden";
A.style.border="none";
A.style.overflow="hidden";
A.style.width=B.size.x+"px";
A.style.height=B.size.y+"px";
A.src=B.URL+"&responseType=embed";
A.widget=B;
if(A.addEventListener){A.onload=function(){var D=B;
GDWidget.replaceSpinner(D)
}
}else{if(A.attachEvent){A.frameBorder="0";
var C=function(){var D=B;
if(A.readyState=="complete"){GDWidget.replaceSpinner(D)
}};
A.onreadystatechange=C
}}return A
};
GDWidget.replaceSpinner=function(B){var A=B.mainDiv;
A.removeChild(A.firstChild);
B.iframe.style.visibility="visible"
};
GDWidget.calcViewportCoords=function(){var A={};
if(window.innerWidth){A.top=window.pageYOffset;
A.bottom=A.top+window.innerHeight;
A.left=window.pageXOffset;
A.right=A.left+window.innerWidth
}else{if(document.documentElement&&document.documentElement.clientWidth){A.top=document.documentElement.scrollTop;
A.bottom=A.top+document.documentElement.clientHeight;
A.left=document.documentElement.scrollLeft;
A.right=A.left+document.documentElement.clientWidth
}else{if(document.body.clientWidth){A.top=document.body.scrollTop;
A.bottom=A.top+document.body.clientHeight;
A.left=document.body.scrollLeft;
A.right=A.left+document.body.clientWidth
}}}return A
};
GDWidget.calcPopupPos=function(I){var B;
var G={};
var E=3;
var H=5;
G.top=I.offsetHeight+E;
G.left=0;
var A=GDWidget.calcViewportCoords();
B=I.getBoundingClientRect();
var C=window.screenLeft!=undefined?window.screenLeft:window.screenX;
var D=0;
if(window.scrollMaxX-C>0){D=17
}if(B.bottom+E+I.size.y+H+D-A.bottom+A.top>0){if(B.top-(I.size.y+E+H)>A.top-A.bottom){G.top=0-(I.size.y+E)
}}if(I.getClientRects()[0].left+I.size.x+H>A.right){var F=0;
if(window.scrollMaxY){F=22
}G.left=A.right-(I.getClientRects()[0].left+I.size.x+H)-F
}if((I.getClientRects()[0].left-H)<A.left){G.left=H-I.getClientRects()[0].left
}return G
};
GDWidget.addEvent=function(C,B,A){if(C.attachEvent){C["e"+B+A]=A;
C[B+A]=function(){C["e"+B+A](window.event)
};
C.attachEvent("on"+B,C[B+A])
}else{C.addEventListener(B,A,false)
}};
GDWidget.onReady=function(A){if(typeof (jQuery)=="function"){$(function(){A()
})
}else{if(document.addEventListener){document.addEventListener("DOMContentLoaded",A,false)
}else{if(document.attachEvent){document.attachEvent("onreadystatechange",function(){if(document.readyState==="complete"){document.detachEvent("onreadystatechange",arguments.callee);
A()
}});
if((document.documentElement.doScroll)&&(window==window.top)){(function(){try{document.documentElement.doScroll("left")
}catch(B){setTimeout(arguments.callee,0);
return 
}A()
})()
}}}}};
GDWidget.parseUri=function(E){var D=GDWidget.parseUri.options;
var A=D.parser[D.strictMode?"strict":"loose"].exec(E);
var C={};
var B=14;
while(B--){C[D.key[B]]=A[B]||""
}C[D.q.name]={};
C[D.key[12]].replace(D.q.parser,function(G,F,H){if(F){C[D.q.name][F]=H
}});
return C
};
GDWidget.parseUri.options={strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};
GDWidget.initAllWidgets=function(){if(arguments.callee.done){return 
}arguments.callee.done=true;
var B=GDWidget.getElementsByClassName("gdWidget");
for(var A=0;
A<B.length;
A++){GDWidget.initialize(B[A])
}}
}GDWidget.onReady(function(){GDWidget.initAllWidgets()
});