CLICKHANDLERS={SetHandler:function(container,handler)
{var cont=UTILS.DOM.get(container);if(cont==null||typeof(handler)!='function')
return;var links=cont.getElementsByTagName('a');for(var i=0;i<links.length;i++)
{UTILS.DOM.addListener(links[i],'click',handler);}}};var swfobject=function(){var b="undefined",Q="object",n="Shockwave Flash",p="ShockwaveFlash.ShockwaveFlash",P="application/x-shockwave-flash",m="SWFObjectExprInst",j=window,K=document,T=navigator,o=[],N=[],i=[],d=[],J,Z=null,M=null,l=null,e=false,A=false;var h=function(){var v=typeof K.getElementById!=b&&typeof K.getElementsByTagName!=b&&typeof K.createElement!=b,AC=[0,0,0],x=null;if(typeof T.plugins!=b&&typeof T.plugins[n]==Q){x=T.plugins[n].description;if(x&&!(typeof T.mimeTypes!=b&&T.mimeTypes[P]&&!T.mimeTypes[P].enabledPlugin)){x=x.replace(/^.*\s+(\S+\s+\S+$)/,"$1");AC[0]=parseInt(x.replace(/^(.*)\..*$/,"$1"),10);AC[1]=parseInt(x.replace(/^.*\.(.*)\s.*$/,"$1"),10);AC[2]=/r/.test(x)?parseInt(x.replace(/^.*r(.*)$/,"$1"),10):0}}else{if(typeof j.ActiveXObject!=b){var y=null,AB=false;try{y=new ActiveXObject(p+".7")}catch(t){try{y=new ActiveXObject(p+".6");AC=[6,0,21];y.AllowScriptAccess="always"}catch(t){if(AC[0]==6){AB=true}}if(!AB){try{y=new ActiveXObject(p)}catch(t){}}}if(!AB&&y){try{x=y.GetVariable("$version");if(x){x=x.split(" ")[1].split(",");AC=[parseInt(x[0],10),parseInt(x[1],10),parseInt(x[2],10)]}}catch(t){}}}}var AD=T.userAgent.toLowerCase(),r=T.platform.toLowerCase(),AA=/webkit/.test(AD)?parseFloat(AD.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,q=false,z=r?/win/.test(r):/win/.test(AD),w=r?/mac/.test(r):/mac/.test(AD);/*@cc_on q=true;@if(@_win32)z=true;@elif(@_mac)w=true;@end@*/return{w3cdom:v,pv:AC,webkit:AA,ie:q,win:z,mac:w}}();var L=function(){if(!h.w3cdom){return}f(H);if(h.ie&&h.win){try{K.write("<script id=__ie_ondomload defer=true src=//:><\/script>");J=C("__ie_ondomload");if(J){I(J,"onreadystatechange",S)}}catch(q){}}if(h.webkit&&typeof K.readyState!=b){Z=setInterval(function(){if(/loaded|complete/.test(K.readyState)){E()}},10)}if(typeof K.addEventListener!=b){K.addEventListener("DOMContentLoaded",E,null)}R(E)}();function S(){if(J.readyState=="complete"){J.parentNode.removeChild(J);E()}}function E(){if(e){return}if(h.ie&&h.win){var v=a("span");try{var u=K.getElementsByTagName("body")[0].appendChild(v);u.parentNode.removeChild(u)}catch(w){return}}e=true;if(Z){clearInterval(Z);Z=null}var q=o.length;for(var r=0;r<q;r++){o[r]()}}function f(q){if(e){q()}else{o[o.length]=q}}function R(r){if(typeof j.addEventListener!=b){j.addEventListener("load",r,false)}else{if(typeof K.addEventListener!=b){K.addEventListener("load",r,false)}else{if(typeof j.attachEvent!=b){I(j,"onload",r)}else{if(typeof j.onload=="function"){var q=j.onload;j.onload=function(){q();r()}}else{j.onload=r}}}}}function H(){var t=N.length;for(var q=0;q<t;q++){var u=N[q].id;if(h.pv[0]>0){var r=C(u);if(r){N[q].width=r.getAttribute("width")?r.getAttribute("width"):"0";N[q].height=r.getAttribute("height")?r.getAttribute("height"):"0";if(c(N[q].swfVersion)){if(h.webkit&&h.webkit<312){Y(r)}W(u,true)}else{if(N[q].expressInstall&&!A&&c("6.0.65")&&(h.win||h.mac)){k(N[q])}else{O(r)}}}}else{W(u,true)}}}function Y(t){var q=t.getElementsByTagName(Q)[0];if(q){var w=a("embed"),y=q.attributes;if(y){var v=y.length;for(var u=0;u<v;u++){if(y[u].nodeName=="DATA"){w.setAttribute("src",y[u].nodeValue)}else{w.setAttribute(y[u].nodeName,y[u].nodeValue)}}}var x=q.childNodes;if(x){var z=x.length;for(var r=0;r<z;r++){if(x[r].nodeType==1&&x[r].nodeName=="PARAM"){w.setAttribute(x[r].getAttribute("name"),x[r].getAttribute("value"))}}}t.parentNode.replaceChild(w,t)}}function k(w){A=true;var u=C(w.id);if(u){if(w.altContentId){var y=C(w.altContentId);if(y){M=y;l=w.altContentId}}else{M=G(u)}if(!(/%$/.test(w.width))&&parseInt(w.width,10)<310){w.width="310"}if(!(/%$/.test(w.height))&&parseInt(w.height,10)<137){w.height="137"}K.title=K.title.slice(0,47)+" - Flash Player Installation";var z=h.ie&&h.win?"ActiveX":"PlugIn",q=K.title,r="MMredirectURL="+j.location+"&MMplayerType="+z+"&MMdoctitle="+q,x=w.id;if(h.ie&&h.win&&u.readyState!=4){var t=a("div");x+="SWFObjectNew";t.setAttribute("id",x);u.parentNode.insertBefore(t,u);u.style.display="none";var v=function(){u.parentNode.removeChild(u)};I(j,"onload",v)}U({data:w.expressInstall,id:m,width:w.width,height:w.height},{flashvars:r},x)}}function O(t){if(h.ie&&h.win&&t.readyState!=4){var r=a("div");t.parentNode.insertBefore(r,t);r.parentNode.replaceChild(G(t),r);t.style.display="none";var q=function(){t.parentNode.removeChild(t)};I(j,"onload",q)}else{t.parentNode.replaceChild(G(t),t)}}function G(v){var u=a("div");if(h.win&&h.ie){u.innerHTML=v.innerHTML}else{var r=v.getElementsByTagName(Q)[0];if(r){var w=r.childNodes;if(w){var q=w.length;for(var t=0;t<q;t++){if(!(w[t].nodeType==1&&w[t].nodeName=="PARAM")&&!(w[t].nodeType==8)){u.appendChild(w[t].cloneNode(true))}}}}}return u}function U(AG,AE,t){var q,v=C(t);if(v){if(typeof AG.id==b){AG.id=t}if(h.ie&&h.win){var AF="";for(var AB in AG){if(AG[AB]!=Object.prototype[AB]){if(AB.toLowerCase()=="data"){AE.movie=AG[AB]}else{if(AB.toLowerCase()=="styleclass"){AF+=' class="'+AG[AB]+'"'}else{if(AB.toLowerCase()!="classid"){AF+=" "+AB+'="'+AG[AB]+'"'}}}}}var AD="";for(var AA in AE){if(AE[AA]!=Object.prototype[AA]){AD+='<param name="'+AA+'" value="'+AE[AA]+'" />'}}v.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+AF+">"+AD+"</object>";i[i.length]=AG.id;q=C(AG.id)}else{if(h.webkit&&h.webkit<312){var AC=a("embed");AC.setAttribute("type",P);for(var z in AG){if(AG[z]!=Object.prototype[z]){if(z.toLowerCase()=="data"){AC.setAttribute("src",AG[z])}else{if(z.toLowerCase()=="styleclass"){AC.setAttribute("class",AG[z])}else{if(z.toLowerCase()!="classid"){AC.setAttribute(z,AG[z])}}}}}for(var y in AE){if(AE[y]!=Object.prototype[y]){if(y.toLowerCase()!="movie"){AC.setAttribute(y,AE[y])}}}v.parentNode.replaceChild(AC,v);q=AC}else{var u=a(Q);u.setAttribute("type",P);for(var x in AG){if(AG[x]!=Object.prototype[x]){if(x.toLowerCase()=="styleclass"){u.setAttribute("class",AG[x])}else{if(x.toLowerCase()!="classid"){u.setAttribute(x,AG[x])}}}}for(var w in AE){if(AE[w]!=Object.prototype[w]&&w.toLowerCase()!="movie"){F(u,w,AE[w])}}v.parentNode.replaceChild(u,v);q=u}}}return q}function F(t,q,r){var u=a("param");u.setAttribute("name",q);u.setAttribute("value",r);t.appendChild(u)}function X(r){var q=C(r);if(q&&(q.nodeName=="OBJECT"||q.nodeName=="EMBED")){if(h.ie&&h.win){if(q.readyState==4){B(r)}else{j.attachEvent("onload",function(){B(r)})}}else{q.parentNode.removeChild(q)}}}function B(t){var r=C(t);if(r){for(var q in r){if(typeof r[q]=="function"){r[q]=null}}r.parentNode.removeChild(r)}}function C(t){var q=null;try{q=K.getElementById(t)}catch(r){}return q}function a(q){return K.createElement(q)}function I(t,q,r){t.attachEvent(q,r);d[d.length]=[t,q,r]}function c(t){var r=h.pv,q=t.split(".");q[0]=parseInt(q[0],10);q[1]=parseInt(q[1],10)||0;q[2]=parseInt(q[2],10)||0;return(r[0]>q[0]||(r[0]==q[0]&&r[1]>q[1])||(r[0]==q[0]&&r[1]==q[1]&&r[2]>=q[2]))?true:false}function V(v,r){if(h.ie&&h.mac){return}var u=K.getElementsByTagName("head")[0],t=a("style");t.setAttribute("type","text/css");t.setAttribute("media","screen");if(!(h.ie&&h.win)&&typeof K.createTextNode!=b){t.appendChild(K.createTextNode(v+" {"+r+"}"))}u.appendChild(t);if(h.ie&&h.win&&typeof K.styleSheets!=b&&K.styleSheets.length>0){var q=K.styleSheets[K.styleSheets.length-1];if(typeof q.addRule==Q){q.addRule(v,r)}}}function W(t,q){var r=q?"visible":"hidden";if(e&&C(t)){C(t).style.visibility=r}else{V("#"+t,"visibility:"+r)}}function g(s){var r=/[\\\"<>\.;]/;var q=r.exec(s)!=null;return q?encodeURIComponent(s):s}var D=function(){if(h.ie&&h.win){window.attachEvent("onunload",function(){var w=d.length;for(var v=0;v<w;v++){d[v][0].detachEvent(d[v][1],d[v][2])}var t=i.length;for(var u=0;u<t;u++){X(i[u])}for(var r in h){h[r]=null}h=null;for(var q in swfobject){swfobject[q]=null}swfobject=null})}}();return{registerObject:function(u,q,t){if(!h.w3cdom||!u||!q){return}var r={};r.id=u;r.swfVersion=q;r.expressInstall=t?t:false;N[N.length]=r;W(u,false)},getObjectById:function(v){var q=null;if(h.w3cdom){var t=C(v);if(t){var u=t.getElementsByTagName(Q)[0];if(!u||(u&&typeof t.SetVariable!=b)){q=t}else{if(typeof u.SetVariable!=b){q=u}}}}return q},embedSWF:function(x,AE,AB,AD,q,w,r,z,AC){if(!h.w3cdom||!x||!AE||!AB||!AD||!q){return}AB+="";AD+="";if(c(q)){W(AE,false);var AA={};if(AC&&typeof AC===Q){for(var v in AC){if(AC[v]!=Object.prototype[v]){AA[v]=AC[v]}}}AA.data=x;AA.width=AB;AA.height=AD;var y={};if(z&&typeof z===Q){for(var u in z){if(z[u]!=Object.prototype[u]){y[u]=z[u]}}}if(r&&typeof r===Q){for(var t in r){if(r[t]!=Object.prototype[t]){if(typeof y.flashvars!=b){y.flashvars+="&"+t+"="+r[t]}else{y.flashvars=t+"="+r[t]}}}}f(function(){U(AA,y,AE);if(AA.id==AE){W(AE,true)}})}else{if(w&&!A&&c("6.0.65")&&(h.win||h.mac)){A=true;W(AE,false);f(function(){var AF={};AF.id=AF.altContentId=AE;AF.width=AB;AF.height=AD;AF.expressInstall=w;k(AF)})}}},getFlashPlayerVersion:function(){return{major:h.pv[0],minor:h.pv[1],release:h.pv[2]}},hasFlashPlayerVersion:c,createSWF:function(t,r,q){if(h.w3cdom){return U(t,r,q)}else{return undefined}},removeSWF:function(q){if(h.w3cdom){X(q)}},createCSS:function(r,q){if(h.w3cdom){V(r,q)}},addDomLoadEvent:f,addLoadEvent:R,getQueryParamValue:function(v){var u=K.location.search||K.location.hash;if(v==null){return g(u)}if(u){var t=u.substring(1).split("&");for(var r=0;r<t.length;r++){if(t[r].substring(0,t[r].indexOf("="))==v){return g(t[r].substring((t[r].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(A&&M){var q=C(m);if(q){q.parentNode.replaceChild(M,q);if(l){W(l,true);if(h.ie&&h.win){M.style.display="block"}}M=null;l=null;A=false}}}}}();;(function($){$.fn.bgIframe=$.fn.bgiframe=function(s){if($.browser.msie&&parseInt($.browser.version)<=6){s=$.extend({top:'auto',left:'auto',width:'auto',height:'auto',opacity:true,src:'javascript:false;'},s||{});var prop=function(n){return n&&n.constructor==Number?n+'px':n;},html='<iframe class="bgiframe"frameborder="0"tabindex="-1"src="'+s.src+'"'+'style="display:block;position:absolute;z-index:-1;'+
(s.opacity!==false?'filter:Alpha(Opacity=\'0\');':'')+'top:'+(s.top=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderTopWidth)||0)*-1)+\'px\')':prop(s.top))+';'+'left:'+(s.left=='auto'?'expression(((parseInt(this.parentNode.currentStyle.borderLeftWidth)||0)*-1)+\'px\')':prop(s.left))+';'+'width:'+(s.width=='auto'?'expression(this.parentNode.offsetWidth+\'px\')':prop(s.width))+';'+'height:'+(s.height=='auto'?'expression(this.parentNode.offsetHeight+\'px\')':prop(s.height))+';'+'"/>';return this.each(function(){if($('> iframe.bgiframe',this).length==0)
this.insertBefore(document.createElement(html),this.firstChild);});}
return this;};if(!$.browser.version)
$.browser.version=navigator.userAgent.toLowerCase().match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)[1];})(jQuery);;(function($){var height=$.fn.height,width=$.fn.width;$.fn.extend({height:function(){if(this[0]==window)
return self.innerHeight||$.boxModel&&document.documentElement.clientHeight||document.body.clientHeight;if(this[0]==document)
return Math.max(document.body.scrollHeight,document.body.offsetHeight);return height.apply(this,arguments);},width:function(){if(this[0]==window)
return self.innerWidth||$.boxModel&&document.documentElement.clientWidth||document.body.clientWidth;if(this[0]==document)
return Math.max(document.body.scrollWidth,document.body.offsetWidth);return width.apply(this,arguments);},innerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(':visible')?this[0].offsetHeight-num(this,'borderTopWidth')-num(this,'borderBottomWidth'):this.height()+num(this,'paddingTop')+num(this,'paddingBottom');},innerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(':visible')?this[0].offsetWidth-num(this,'borderLeftWidth')-num(this,'borderRightWidth'):this.width()+num(this,'paddingLeft')+num(this,'paddingRight');},outerHeight:function(){return this[0]==window||this[0]==document?this.height():this.is(':visible')?this[0].offsetHeight:this.height()+num(this,'borderTopWidth')+num(this,'borderBottomWidth')+num(this,'paddingTop')+num(this,'paddingBottom');},outerWidth:function(){return this[0]==window||this[0]==document?this.width():this.is(':visible')?this[0].offsetWidth:this.width()+num(this,'borderLeftWidth')+num(this,'borderRightWidth')+num(this,'paddingLeft')+num(this,'paddingRight');},scrollLeft:function(val){if(val!=undefined)
return this.each(function(){if(this==window||this==document)
window.scrollTo(val,$(window).scrollTop());else
this.scrollLeft=val;});if(this[0]==window||this[0]==document)
return self.pageXOffset||$.boxModel&&document.documentElement.scrollLeft||document.body.scrollLeft;return this[0].scrollLeft;},scrollTop:function(val){if(val!=undefined)
return this.each(function(){if(this==window||this==document)
window.scrollTo($(window).scrollLeft(),val);else
this.scrollTop=val;});if(this[0]==window||this[0]==document)
return self.pageYOffset||$.boxModel&&document.documentElement.scrollTop||document.body.scrollTop;return this[0].scrollTop;},position:function(options,returnObject){var elem=this[0],parent=elem.parentNode,op=elem.offsetParent,options=$.extend({margin:false,border:false,padding:false,scroll:false},options||{}),x=elem.offsetLeft,y=elem.offsetTop,sl=elem.scrollLeft,st=elem.scrollTop;if($.browser.mozilla||$.browser.msie){x+=num(elem,'borderLeftWidth');y+=num(elem,'borderTopWidth');}
if($.browser.mozilla){do{if($.browser.mozilla&&parent!=elem&&$.css(parent,'overflow')!='visible'){x+=num(parent,'borderLeftWidth');y+=num(parent,'borderTopWidth');}
if(parent==op)break;}while((parent=parent.parentNode)&&(parent.tagName.toLowerCase()!='body'||parent.tagName.toLowerCase()!='html'));}
var returnValue=handleOffsetReturn(elem,options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this;}
else{return returnValue;}},offset:function(options,returnObject){var x=0,y=0,sl=0,st=0,elem=this[0],parent=this[0],op,parPos,elemPos=$.css(elem,'position'),mo=$.browser.mozilla,ie=$.browser.msie,sf=$.browser.safari,oa=$.browser.opera,absparent=false,relparent=false,options=$.extend({margin:true,border:false,padding:false,scroll:true,lite:false},options||{});if(options.lite)return this.offsetLite(options,returnObject);if(elem.tagName.toLowerCase()=='body'){x=elem.offsetLeft;y=elem.offsetTop;if(mo){x+=num(elem,'marginLeft')+(num(elem,'borderLeftWidth')*2);y+=num(elem,'marginTop')+(num(elem,'borderTopWidth')*2);}else
if(oa){x+=num(elem,'marginLeft');y+=num(elem,'marginTop');}else
if(ie&&jQuery.boxModel){x+=num(elem,'borderLeftWidth');y+=num(elem,'borderTopWidth');}}else{do{parPos=$.css(parent,'position');x+=parent.offsetLeft;y+=parent.offsetTop;if(mo||ie){x+=num(parent,'borderLeftWidth');y+=num(parent,'borderTopWidth');if(mo&&parPos=='absolute')absparent=true;if(ie&&parPos=='relative')relparent=true;}
op=parent.offsetParent;if(options.scroll||mo){do{if(options.scroll){sl+=parent.scrollLeft;st+=parent.scrollTop;}
if(mo&&parent!=elem&&$.css(parent,'overflow')!='visible'){x+=num(parent,'borderLeftWidth');y+=num(parent,'borderTopWidth');}
parent=parent.parentNode;}while(parent!=op);}
parent=op;if(parent.tagName.toLowerCase()=='body'||parent.tagName.toLowerCase()=='html'){if((sf||(ie&&$.boxModel))&&elemPos!='absolute'&&elemPos!='fixed'){x+=num(parent,'marginLeft');y+=num(parent,'marginTop');}
if((mo&&!absparent&&elemPos!='fixed')||(ie&&elemPos=='static'&&!relparent)){x+=num(parent,'borderLeftWidth');y+=num(parent,'borderTopWidth');}
break;}}while(parent);}
var returnValue=handleOffsetReturn(elem,options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this;}
else{return returnValue;}},offsetLite:function(options,returnObject){var x=0,y=0,sl=0,st=0,parent=this[0],op,options=$.extend({margin:true,border:false,padding:false,scroll:true},options||{});do{x+=parent.offsetLeft;y+=parent.offsetTop;op=parent.offsetParent;if(options.scroll){do{sl+=parent.scrollLeft;st+=parent.scrollTop;parent=parent.parentNode;}while(parent!=op);}
parent=op;}while(parent&&parent.tagName.toLowerCase()!='body'&&parent.tagName.toLowerCase()!='html');var returnValue=handleOffsetReturn(this[0],options,x,y,sl,st);if(returnObject){$.extend(returnObject,returnValue);return this;}
else{return returnValue;}}});var num=function(el,prop){return parseInt($.css(el.jquery?el[0]:el,prop))||0;};var handleOffsetReturn=function(elem,options,x,y,sl,st){if(!options.margin){x-=num(elem,'marginLeft');y-=num(elem,'marginTop');}
if(options.border&&($.browser.safari||$.browser.opera)){x+=num(elem,'borderLeftWidth');y+=num(elem,'borderTopWidth');}else if(!options.border&&!($.browser.safari||$.browser.opera)){x-=num(elem,'borderLeftWidth');y-=num(elem,'borderTopWidth');}
if(options.padding){x+=num(elem,'paddingLeft');y+=num(elem,'paddingTop');}
if(options.scroll){sl-=elem.scrollLeft;st-=elem.scrollTop;}
return options.scroll?{top:y-st,left:x-sl,scrollTop:st,scrollLeft:sl}:{top:y,left:x};};})(jQuery);;;(function($){var helper={},current,title,tID,IE=$.browser.msie&&/MSIE\s(5\.5|6\.)/.test(navigator.userAgent),track=false;$.tooltip={blocked:false,defaults:{delay:200,fade:false,showURL:true,extraClass:"",top:15,left:15,id:"tooltip"},block:function(){$.tooltip.blocked=!$.tooltip.blocked;}};$.fn.extend({tooltip:function(settings){settings=$.extend({},$.tooltip.defaults,settings);createHelper(settings);return this.each(function(){$.data(this,"tooltip",settings);this.tOpacity=helper.parent.css("opacity");this.tooltipText=this.title;$(this).removeAttr("title");this.alt="";}).mouseover(save).mouseout(hide).click(hide);},fixPNG:IE?function(){return this.each(function(){var image=$(this).css('backgroundImage');if(image.match(/^url\(["']?(.*\.png)["']?\)$/i)){image=RegExp.$1;$(this).css({'backgroundImage':'none','filter':"progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='"+image+"')"}).each(function(){var position=$(this).css('position');if(position!='absolute'&&position!='relative')$(this).css('position','relative');});}});}:function(){return this;},unfixPNG:IE?function(){return this.each(function(){$(this).css({'filter':'',backgroundImage:''});});}:function(){return this;},hideWhenEmpty:function(){return this.each(function(){$(this)[$(this).html()?"show":"hide"]();});},url:function(){return this.attr('href')||this.attr('src');}});function createHelper(settings){if(helper.parent)return;helper.parent=$('<div id="'+settings.id+'"><h3></h3><div class="body"></div><div class="url"></div></div>').appendTo(document.body).hide();if($.fn.bgiframe)helper.parent.bgiframe();helper.title=$('h3',helper.parent);helper.body=$('div.body',helper.parent);helper.url=$('div.url',helper.parent);}function settings(element){return $.data(element,"tooltip");}function handle(event){if(settings(this).delay)tID=setTimeout(show,settings(this).delay);else
show();track=!!settings(this).track;$(document.body).bind('mousemove',update);update(event);}function save(){if($.tooltip.blocked||this==current||(!this.tooltipText&&!settings(this).bodyHandler))return;current=this;title=this.tooltipText;if(settings(this).bodyHandler){helper.title.hide();var bodyContent=settings(this).bodyHandler.call(this);if(bodyContent.nodeType||bodyContent.jquery){helper.body.empty().append(bodyContent)}else{helper.body.html(bodyContent);}helper.body.show();}else if(settings(this).showBody){var parts=title.split(settings(this).showBody);helper.title.html(parts.shift()).show();helper.body.empty();for(var i=0,part;(part=parts[i]);i++){if(i>0)helper.body.append("<br/>");helper.body.append(part);}helper.body.hideWhenEmpty();}else{helper.title.html(title).show();helper.body.hide();}if(settings(this).showURL&&$(this).url())helper.url.html($(this).url().replace('http://','')).show();else
helper.url.hide();helper.parent.addClass(settings(this).extraClass);if(settings(this).fixPNG)helper.parent.fixPNG();handle.apply(this,arguments);}function show(){tID=null;if((!IE||!$.fn.bgiframe)&&settings(current).fade){if(helper.parent.is(":animated"))helper.parent.stop().show().fadeTo(settings(current).fade,current.tOpacity);else
helper.parent.is(':visible')?helper.parent.fadeTo(settings(current).fade,current.tOpacity):helper.parent.fadeIn(settings(current).fade);}else{helper.parent.show();}update();}function update(event){if($.tooltip.blocked)return;if(event&&event.target.tagName=="OPTION"){return;}if(!track&&helper.parent.is(":visible")){$(document.body).unbind('mousemove',update)}if(current==null){$(document.body).unbind('mousemove',update);return;}helper.parent.removeClass("viewport-right").removeClass("viewport-bottom");var left=helper.parent[0].offsetLeft;var top=helper.parent[0].offsetTop;if(event){left=event.pageX+settings(current).left;top=event.pageY+settings(current).top;var right='auto';if(settings(current).positionLeft){right=$(window).width()-left;left='auto';}helper.parent.css({left:left,right:right,top:top});}var v=viewport(),h=helper.parent[0];if(v.x+v.cx<h.offsetLeft+h.offsetWidth){left-=h.offsetWidth+20+settings(current).left;helper.parent.css({left:left+'px'}).addClass("viewport-right");}if(v.y+v.cy<h.offsetTop+h.offsetHeight){top-=h.offsetHeight+20+settings(current).top;helper.parent.css({top:top+'px'}).addClass("viewport-bottom");}}function viewport(){return{x:$(window).scrollLeft(),y:$(window).scrollTop(),cx:$(window).width(),cy:$(window).height()};}function hide(event){if($.tooltip.blocked)return;if(tID)clearTimeout(tID);current=null;var tsettings=settings(this);function complete(){helper.parent.removeClass(tsettings.extraClass).hide().css("opacity","");}if((!IE||!$.fn.bgiframe)&&tsettings.fade){if(helper.parent.is(':animated'))helper.parent.stop().fadeTo(tsettings.fade,0,complete);else
helper.parent.stop().fadeOut(tsettings.fade,complete);}else
complete();if(settings(this).fixPNG)helper.parent.unfixPNG();}})(jQuery);;var showhide_first=true;function showhide(id)
{var obj=document.getElementById(id);if(obj){obj.style.display=(obj.style.display=='none'?'':'none');}
if(showhide_first){track_icon(16);showhide_first=false;}}
function DisplayComeFromSearchMessage(element_id)
{if(document.cookie.indexOf('come_from_search=')>=0)
{var dt=new Date();dt.setTime((new Date()).getTime()-24*60*60*1000);document.cookie='come_from_search=nope;expires='+dt.toGMTString()+';path=/';var el=document.getElementById(element_id);el.innerHTML='<strong><span id=notext><a href="#" onclick="SendFeedback();return false;">Find what you were looking for?</a></span></strong>';el.style.display='';}}
function validate_filter_b()
{if(document.getElementById('term_s').value=='')
{enter_search_popup();return false;}
else
{return true;}}
function get_text_height(text,width)
{var tmp=window.document.createElement('div');tmp.innerHTML=text;tmp.style.width=width+'px';tmp.style.position='absolute';tmp.style.visibility='hidden';tmp=document.body.appendChild(tmp);var res=tmp.offsetHeight;tmp.parentNode.removeChild(tmp);return res;}
function init_back_links(http,short_term_path)
{window.is_loaded_links_block=false;if(document.getElementById('more-drop-c')!=null)
document.getElementById('more-drop-c').style.display='none';window.back_links_http=http;window.back_links_path=short_term_path;}
function toogle_more_links()
{var a=document.getElementById('more-drop-c');var b=document.getElementById('more-drop');if(a.style.display=='none')
{a.style.display='block';b.className='';if(!window.is_loaded_links_block)
{var res=Query('get',window.back_links_http+'view_term.php?path='+window.back_links_path+'&mode=get_rest_back_links','');a.innerHTML=res.documentElement.childNodes[0].nodeValue;window.is_loaded_links_block=true;}
if(window.is_loaded_links_block)
{var hgt=get_text_height(a.innerHTML,720);if(hgt<86)a.style.height=(hgt+10)+'px';}}
else
{a.style.display='none';b.className='more-closed';}}
function init_app_links(http,short_term_path,terms_ids)
{window.is_loaded_appeared_in_terms_block=false;if(document.getElementById('more-drop-appered-in-terms')!=null)
document.getElementById('more-drop-appered-in-terms').style.display='none';window.app_links_http=http;window.app_links_path=short_term_path;window.app_links_ids=terms_ids;}
function togle_more_appeared_links()
{var a=document.getElementById('more-drop-appered-in-terms');var b=document.getElementById('more-drop-appeared-in-terms-button');if(a.style.display=='none')
{a.style.display='block';b.className='';if(!window.is_loaded_appeared_in_terms_block)
{var res=Query('get',window.app_links_http+'view_term.php?path='+window.app_links_path+'&mode=get_rest_appeared_in_terms_links&ids='+window.app_links_ids,'');a.innerHTML=res.documentElement.childNodes[0].nodeValue;window.is_loaded_appeared_in_terms_block=true;}
if(window.is_loaded_appeared_in_terms_block)
{var hgt=get_text_height(a.innerHTML,720);if(hgt<86)a.style.height='auto';else a.style.height='86px';}}
else
{a.style.display='none';b.className='more-closed';}}
function InsertAudioPlayer(c,g,e,t,f,a)
{var b={LinkText:t,mp3_url:e};var h={menu:"false",quality:"high",scale:"noscale",wmode:"opaque",allowfullscreen:"false",allowscriptaccess:"sameDomain",allownetworking:"internal",align:"middle",play:"true",loop:"true",scale:"showall",devicefont:"false",bgcolor:"#ffffff"}
var d={id:c};swfobject.embedSWF(g,c,f,a,"9.0.28",false,b,h,d);}
jQuery(document).ready(function()
{if(typeof(have_more_back_links)=='undefined'||!have_more_back_links)
return;init_back_links(HTTP,short_term_path);jQuery.ajax({type:"GET",url:back_links_http+'view_term.php?path='+back_links_path+'&mode=get_rest_back_links',dataType:"xml",error:function()
{},success:function(data)
{if(data!=null)
{var links=data.documentElement.childNodes[0].nodeValue.split(", ");var left=document.getElementById("backLinks-left");var right=document.getElementById("backLinks-right");var leftHTML='';var rightHTML='';for(var i=0;i<links.length;i++)
{if(i%2==0)
{leftHTML+='<br />'+links[i];}
else
{rightHTML+='<br />'+links[i];}}
if(left!=null)
left.innerHTML+=leftHTML;if(right!=null)
right.innerHTML+=rightHTML;jQuery('#terms_in_definition_container').jScrollPane({showArrows:true,scrollbarWidth:34,dragMaxHeight:19,dragMinHeight:19});CLICKHANDLERS.SetHandler('terms_in_definition_container',function(){track_icon(75);});}}});});jQuery(document).ready(function()
{if(typeof(window.have_more_appeared_in_terms)=='undefined'||!window.have_more_appeared_in_terms)
return;init_app_links(HTTP,short_term_path,more_appeared_in_terms_ids);jQuery.ajax({type:"GET",url:app_links_http+'view_term.php?path='+app_links_path+'&mode=get_rest_appeared_in_terms_links&ids='+app_links_ids,dataType:"xml",error:function()
{},success:function(data)
{if(data!=null)
{var links=data.documentElement.childNodes[0].nodeValue.split(", ");var left=document.getElementById("termsInTerms-left");var right=document.getElementById("termsInTerms-right");var leftHTML='';var rightHTML='';for(var i=0;i<links.length;i++)
{if(i%2==0)
{leftHTML+='<br />'+links[i];}
else
{rightHTML+='<br />'+links[i];}}
if(left!=null)
left.innerHTML+=leftHTML;if(right!=null)
right.innerHTML+=rightHTML;jQuery('#term_in_terms_contailner').jScrollPane({showArrows:true,scrollbarWidth:34,dragMaxHeight:19,dragMinHeight:19});CLICKHANDLERS.SetHandler('term_in_terms_contailner',function(){track_icon(76);});}}});});jQuery(document).ready(function()
{if(typeof(CLICKHANDLERS)!='undefined')
{CLICKHANDLERS.SetHandler('mostPopular-content',function(){track_icon(77);});CLICKHANDLERS.SetHandler('term-is-container',function(){track_icon(78);});CLICKHANDLERS.SetHandler('nearbyTerms-content',function(){track_icon(79);});}});;StarRating=function()
{var rateText='Rate this definition:';var rateInWords=['<span style="color: #FF0000">Poor</span>','<span style="color: #BB3400">Below Average</span>','<span style="color: #7F6200">Average</span>','<span style="color: #419200">Above Average</span>','<span style="color: #00C400">Excellent</span>'];var starWidth=14;var mouseOvered=false;var h_mouseout=0;var canVote=true;var defText='';var highlightElements=[];var container,rateInWordsElement;var starElements=[];function mouseout_handler()
{h_mouseout=0;if(canVote)
{for(var i=0;i<highlightElements.length;i++){highlightElements[i].style.display='none';}
rateInWordsElement.innerHTML=defText;mouseOvered=false;}}
return{getWordsForRate:function(rate)
{return(rate?rateInWords[rate-1]:'');},create:function(element,currentRate,_defText,_canVote)
{if(typeof(element)=='string')element=document.getElementById(element);if(!element)return;currentRate=currentRate||0;defText=_defText||'';canVote=(typeof(_canVote)=='undefined'?true:_canVote);var resObj=function()
{var onClickHandlerFunc=null;return{clickHappened:function()
{if(onClickHandlerFunc!=null)onClickHandlerFunc();},setOnClickHandler:function(func)
{onClickHandlerFunc=func;},setCanVote:function(canVoteValue)
{canVote=canVoteValue;for(var i=0;i<starElements.length;i++)
{highlightElements[i].style.display='none';starElements[i].className='rate-star'+(canVote?' can-vote':'')+((i<currentRate)?' star-on':'');}},setDefText:function(text)
{defText=text;if(!mouseOvered)rateInWordsElement.innerHTML=defText;},clearRates:function()
{for(var i=0;i<starElements.length;i++)
{highlightElements[i].style.display='none';starElements[i].className='rate-star can-vote';}
defText='';rateInWordsElement.innerHTML=defText;currentRate=0;},getRate:function()
{return currentRate;},getRateInWords:function()
{return(currentRate?rateInWords[currentRate-1]:'');}}}();container=document.createElement('DIV');container.className='rating-stars';element.appendChild(container);var rateTextElement=document.createElement('DIV');rateTextElement.className='rate-text';rateTextElement.innerHTML=rateText;container.appendChild(rateTextElement);var starsContainer=document.createElement('DIV');starsContainer.className='stars-container';container.appendChild(starsContainer);starsContainer.onmouseout=function()
{if(h_mouseout>0)clearTimeout(h_mouseout);h_mouseout=setTimeout(mouseout_handler,100);}
for(var i=0;i<rateInWords.length;i++)
{var starElement=document.createElement('DIV');starElement.className='rate-star'+(canVote?' can-vote':'')+((i<currentRate)?' star-on':'');starElement.style.left=(starWidth*i)+'px';starsContainer.appendChild(starElement);var highlightElement=document.createElement('DIV');highlightElement.className='rate-highlight';highlightElement.style.left=(starWidth*i)+'px';highlightElement.style.display='none';starsContainer.appendChild(highlightElement);starElements.push(starElement);highlightElements.push(highlightElement);starElement.onmouseover=function()
{var num=i;return function()
{if(h_mouseout>0)clearTimeout(h_mouseout);h_mouseout=0;if(canVote)
{for(var i=0;i<=num;i++){highlightElements[i].style.display='';}
rateInWordsElement.innerHTML=rateInWords[num];mouseOvered=true;}}}();highlightElement.onmouseover=function()
{if(h_mouseout>0)clearTimeout(h_mouseout);h_mouseout=0;}
highlightElement.onmouseout=function()
{var num=i;return function()
{if(h_mouseout>0)clearTimeout(h_mouseout);mouseout_handler();}}();starElement.onclick=function()
{var num=i;return function()
{if(!canVote)
{resObj.clickHappened();}}}();highlightElement.onclick=function()
{var num=i;return function()
{if(canVote)
{for(var i=0;i<starElements.length;i++){starElements[i].className='rate-star can-vote'+((i<=num)?' star-on':'');}
currentRate=num+1;resObj.clickHappened();}}}();}
rateInWordsElement=document.createElement('DIV');rateInWordsElement.className='rate-in-words-text';rateInWordsElement.innerHTML=defText;container.appendChild(rateInWordsElement);return resObj;}}}();;function setCookie(name,value,expires,path,domain,secure)
{var today=new Date();today.setTime(today.getTime());if(expires)
{expires=expires*1000*60*60*24;}
var date=new Date(today.getTime()+(expires));document.cookie=name+"="+escape(value)+((expires)?";expires="+date.toGMTString():"")+
((path)?";path="+path:"")+
((domain)?";domain="+domain:"")+
((secure)?";secure":"");}
function getCookie(check_name)
{var a_all_cookies=document.cookie.split(';');var a_temp_cookie='';var cookie_name='';var cookie_value='';var b_cookie_found=false;for(i=0;i<a_all_cookies.length;i++)
{a_temp_cookie=a_all_cookies[i].split('=');cookie_name=a_temp_cookie[0].replace(/^\s+|\s+$/g,'');if(cookie_name==check_name)
{b_cookie_found=true;if(a_temp_cookie.length>1)
{cookie_value=unescape(a_temp_cookie[1].replace(/^\s+|\s+$/g,''));}
return cookie_value;break;}
a_temp_cookie=null;cookie_name='';}
if(!b_cookie_found)
{return null;}}
var inProgress=false;function ShowMessage(message,width)
{inProgress=true;var msg=jQuery('<div />').addClass('popupwindow').css({position:'absolute',left:parseInt(jQuery('body').width()/2-width/2),width:width,top:(window.pageYOffset?window.pageYOffset:document.body.scrollTop)+width/2,display:'none'}).html('<p style="margin:0 auto;text-align: center">'+message+'</p>'+'<div class="popupbtns"></div>');jQuery('.popupbtns',msg).append(jQuery('<input type="button" class="popupbutton ok" />').click(function()
{msg.fadeIn('slow',function()
{msg.remove();unblockUI();inProgress=false;});}));jQuery('body').append(msg);jQuery('.popupwindow').draggable({handle:'#close_div'});msg.fadeIn('slow');}
function ShowCommentWindow(termID,id,rating,starObject)
{var result=true;if(getCookie('ratings'+termID)!=null)
{ShowMessage('You have already rated this term.',260);return false;}
var tpl='<div style="text-align:center;">';tpl+='<span style="color:#ffffff;font-weight:bold;">Thanks for voting, we have recorded your rating.</span><br />';tpl+='<b>Enter your comment:</b><br />';var tmpRate=StarRating.getWordsForRate(rating);var reg=/<span.*>(.*)<\/span>/;var newRate='';if(reg.exec(tmpRate))
{newRate=reg.exec(tmpRate)[1];}
tpl+='<textarea id="comment_box" rows="10" class="send-to-friend-control">I rate this term "'+newRate+'" because </textarea><br />';tpl+='</div>';var popupWidth=360;var msg=jQuery('<div />').addClass('popupwindow').css({position:'absolute',left:parseInt(jQuery('body').width()/2-(popupWidth/2)),width:popupWidth,top:(window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop)+100,display:'none'}).html('<div class="close_div"></div><p style="margin:0 auto;text-align: center">'+tpl+'</p>'+'<div class="popupbtns"></div>');jQuery('.popupbtns',msg).append(jQuery('<input type="button" class="popupbutton submit" />').click(function()
{var comment=document.getElementById('comment_box').value;msg.fadeIn('slow',function(){msg.remove();unblockUI();});var data='id='+id+"&comment="+escape(comment)+'&mode=update'+'&rate='+rating;var res=Query('POST',"/rate_service.php",data,true);if(res.toLowerCase()=='ok')
{setCookie('ratings'+termID,rating,7);ShowMessage('Successfully rated. Thanks for rating!',260);}
else
{msg.fadeIn('slow',function(){msg.remove();unblockUI();});var errors=res.split(';');error=errors[0].split(':')[1];ShowMessage(error,260);result=false;starObject.setCanVote(true);starObject.clearRates();}
inProgress=false;}));jQuery('.close_div',msg).append(jQuery('<img src="/images/close_popup.png" alt="close" id="close_button" />').click(function(){msg.fadeIn('slow',function()
{setCookie('ratings'+termID,rating,7);starObject.setCanVote(false);msg.remove();unblockUI();inProgress=false;});}));jQuery('.popupbtns',msg).append(jQuery('<input type="button" class="popupbutton dont_submit" />').click(function(){msg.fadeIn('slow',function()
{setCookie('ratings'+termID,rating,7);starObject.setCanVote(false);msg.remove();unblockUI();inProgress=false;});}));jQuery('body').append(msg);setTimeout(function()
{var el=document.getElementById('comment_box');el.focus();var sz=el.value.length;if(el.setSelectionRange)
{el.setSelectionRange(sz,sz);}
else if(el.createTextRange)
{var rng=el.createTextRange();rng.collapse(true);rng.moveEnd('character',sz);rng.moveStart('character',sz);rng.select();}},100);jQuery('.popupwindow').draggable({handle:'#close_div'});msg.fadeIn('slow');return result;}
function CheckRateVisibility(termID)
{var el=document.getElementById('stars-container');var currRate=getCookie('ratings'+termID);if(typeof(el)!=undefined)
{var rs=StarRating.create('stars-container',(currRate!=null?currRate:0),(currRate!=null?StarRating.getWordsForRate(currRate):''),(currRate==null));rs.setOnClickHandler(function()
{var tmpRate=getCookie('ratings'+termID);if(tmpRate==null&&!inProgress)
{inProgress=true;rs.setCanVote(false);rs.setDefText(StarRating.getWordsForRate(rs.getRate()));var data='id='+termID+'&mode=add'+'&rate='+rs.getRate();var id=Query('POST',"/rate_service.php",data,true);if(isNaN(id))
{var errors=id.split(';');error=errors[0].split(':')[1];ShowMessage(error,260);rs.setCanVote(true);rs.clearRates();inProgress=false;return false;}
var res=ShowCommentWindow(termID,id,rs.getRate(),rs);rs.setCanVote(!res);return res;}
else if(!inProgress)
{ShowMessage('You have already rated this term.',260);}
return false;});}
else
{setTimeout('CheckRateVisibility('+termID+')',1000);}};function show_feedback_error(message)
{if(!canOpenPopup('feedback_error'))return;var msg=jQuery('<div />').addClass('popupwindow popupwindow-feedback-error').css({position:'absolute',top:(window.pageYOffset?window.pageYOffset:document.documentElement.scrollTop)+200,left:parseInt(jQuery('body').width()/2-160),display:'none'}).html('<div class="close_div close_div_feedback_error"></div><p style="margin: 0 auto;text-align: center">'+message+'</p><div class="popupbtns popupbtns-feedback-error"></div>');jQuery('.close_div_feedback_error',msg).append(jQuery('<img src="/images/close_popup.png" alt="Close" />').click(function()
{msg.fadeIn('slow',function()
{msg.remove();popupClosed('feedback_error');});}));jQuery('.popupbtns-feedback-error',msg).append(jQuery('<input type="button" class="popupbutton ok" />').click(function(){msg.fadeIn('slow',function(){msg.remove();popupClosed('feedback_error');});}));jQuery('body').append(msg);jQuery('.popupwindow-feedback-error').draggable({handle:'.close_div_feedback_error'});msg.fadeIn('slow');}
function store_feedback(feedback_el_id,term_id,main_el,ok_el)
{var feedback=document.getElementById(feedback_el_id).value;var data='feedback='+escape(feedback)+'&term_id='+escape(term_id);var res=Query('POST','/feedback.php',data,true);if(res.indexOf('ok:')>=0)
{document.getElementById(main_el).style.display='none';document.getElementById(ok_el).style.display='';}
else
{show_feedback_error(res);}};function translate_loaded()
{if(typeof(google)=='undefined'||typeof(google.load)=='undefined')
{setTimeout(translate_loaded,1);return;}
google.load('language','1');}
translate_loaded();function translate(lang)
{if(lang=='')
{document.getElementById('nothing').style.display='block';document.getElementById('term_result').style.display='none';document.getElementById('definition').style.display='none';document.getElementById('translation').style.display='none';document.getElementById('browsepage').style.display='none';return;}
if(lang=='more')
{addLanguage();return;}
if(lang!='')
{document.getElementById('nothing').style.display='none';document.getElementById('term_result').style.display='block';document.getElementById('definition').style.display='block';document.getElementById('translation').style.display='block';document.getElementById('browsepage').style.display='block';}
if(document.all)
{var source=document.getElementById('definition_div').innerText;var termsource=document.getElementById('term_div').innerText;}
else
{var source=document.getElementById('definition_div').textContent;var termsource=document.getElementById('term_div').textContent;}
var len=source.length;var words=300;var sourcelang="en";document.getElementById("translation").innerHTML="";document.getElementById("term_result").innerHTML="";google.language.translate(termsource,"en",lang,function(result){var termName=document.getElementById("term_result");if(!result.error){termName.innerHTML=result.translation;}else{termName.innerHTML="";}});google.language.translate("Definition","en",lang,function(result){var heading=document.getElementById("definition");if(!result.error){heading.innerHTML=result.translation;}else{heading.innerHTML="";}});for(var l in google.language.Languages){if(google.language.Languages[l]==lang){language=l;break;}}
var browse=document.getElementById("browsepage");var url=window.location.href;browse.innerHTML='<a href="http://translate.google.com/translate?hl=en&ie=UTF-8&u='+url+'&sl=auto&tl='+lang+'&history_state0=auto|sv|" target=_blank>Browse the entire site in <span style="font-weight:bold;">'+language+' </span></a>';for(i=0;i<=(len/words);i++)
{google.language.translate(source.substr(i*words,words),"en",lang,function(result){var translated=document.getElementById("translation");if(!result.error){translated.innerHTML=translated.innerHTML+result.translation;}else{translated.innerHTML="";}});}}
function addLanguage()
{var optionList=document.getElementById("languagemenu");optionList.options[0]=new Option("More languages added...","");optionList.options[optionList.length-1]=new Option("---------------------","");optionList.options[optionList.length-2]=new Option("More languages added","");optionList.options[optionList.length-3]=new Option("---------------------","");optionList.options[optionList.length]=new Option("Bulgarian","bg");optionList.options[optionList.length]=new Option("Catalan","ca");optionList.options[optionList.length]=new Option("Croatian","hr");optionList.options[optionList.length]=new Option("Czech","cs");optionList.options[optionList.length]=new Option("Danish","da");optionList.options[optionList.length]=new Option("Dutch","nl");optionList.options[optionList.length]=new Option("Filipino","tl");optionList.options[optionList.length]=new Option("Finnish","fi");optionList.options[optionList.length]=new Option("Hebrew","iw");optionList.options[optionList.length]=new Option("Hindi","hi");optionList.options[optionList.length]=new Option("Indonesian","id");optionList.options[optionList.length]=new Option("Latvian","lv");optionList.options[optionList.length]=new Option("Lithuanian","lt");optionList.options[optionList.length]=new Option("Norwegian","lt");optionList.options[optionList.length]=new Option("Polish","pl");optionList.options[optionList.length]=new Option("Romanian","ro");optionList.options[optionList.length]=new Option("Serbian","sr");optionList.options[optionList.length]=new Option("Slovak","sk");optionList.options[optionList.length]=new Option("Slovenian","sl");optionList.options[optionList.length]=new Option("Swedish","sv");optionList.options[optionList.length]=new Option("Ukrainian","uk");optionList.options[optionList.length]=new Option("Vietnamese","vi");};(function($){$.fn.extend({mousewheel:function(f){if(!f.guid)f.guid=$.event.guid++;if(!$.event._mwCache)$.event._mwCache=[];return this.each(function(){if(this._mwHandlers)return this._mwHandlers.push(f);else this._mwHandlers=[];this._mwHandlers.push(f);var s=this;this._mwHandler=function(e){e=$.event.fix(e||window.event);$.extend(e,this._mwCursorPos||{});var delta=0,returnValue=true;if(e.wheelDelta)delta=e.wheelDelta/120;if(e.detail)delta=-e.detail/3;if(window.opera)delta=-e.wheelDelta;for(var i=0;i<s._mwHandlers.length;i++)if(s._mwHandlers[i])if(s._mwHandlers[i].call(s,e,delta)===false){returnValue=false;e.preventDefault();e.stopPropagation();}return returnValue;};if($.browser.mozilla&&!this._mwFixCursorPos){this._mwFixCursorPos=function(e){this._mwCursorPos={pageX:e.pageX,pageY:e.pageY,clientX:e.clientX,clientY:e.clientY};};$(this).bind('mousemove',this._mwFixCursorPos);}if(this.addEventListener)if($.browser.mozilla)this.addEventListener('DOMMouseScroll',this._mwHandler,false);else this.addEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=this._mwHandler;$.event._mwCache.push($(this));});},unmousewheel:function(f){return this.each(function(){if(f&&this._mwHandlers){for(var i=0;i<this._mwHandlers.length;i++)if(this._mwHandlers[i]&&this._mwHandlers[i].guid==f.guid)delete this._mwHandlers[i];}else{if($.browser.mozilla&&!this._mwFixCursorPos)$(this).unbind('mousemove',this._mwFixCursorPos);if(this.addEventListener)if($.browser.mozilla)this.removeEventListener('DOMMouseScroll',this._mwHandler,false);else this.removeEventListener('mousewheel',this._mwHandler,false);else
this.onmousewheel=null;this._mwHandlers=this._mwHandler=this._mwFixCursorPos=this._mwCursorPos=null;}});}});$(window).one('unload',function(){var els=$.event._mwCache||[];for(var i=0;i<els.length;i++)els[i].unmousewheel();});})(jQuery);;jQuery.jScrollPane={active:[]};jQuery.fn.jScrollPane=function(settings)
{settings=jQuery.extend({scrollbarWidth:10,scrollbarMargin:5,wheelSpeed:18,showArrows:false,arrowSize:0,animateTo:false,dragMinHeight:1,dragMaxHeight:99999,animateInterval:100,animateStep:3,maintainPosition:true,scrollbarOnLeft:false},settings);return this.each(function()
{var $this=jQuery(this);if(jQuery(this).parent().is('.jScrollPaneContainer')){var currentScrollPosition=settings.maintainPosition?$this.offset({relativeTo:jQuery(this).parent()[0]}).top:0;var $c=jQuery(this).parent();var paneWidth=$c.innerWidth();var paneHeight=$c.outerHeight();var trackHeight=paneHeight;if($c.unmousewheel){$c.unmousewheel();}
jQuery('>.jScrollPaneTrack, >.jScrollArrowUp, >.jScrollArrowDown',$c).remove();$this.css({'top':0});}else{var currentScrollPosition=0;this.originalPadding=$this.css('paddingTop')+' '+$this.css('paddingRight')+' '+$this.css('paddingBottom')+' '+$this.css('paddingLeft');this.originalSidePaddingTotal=(parseInt($this.css('paddingLeft'))||0)+(parseInt($this.css('paddingRight'))||0);var paneWidth=$this.innerWidth();var paneHeight=$this.innerHeight();var trackHeight=paneHeight;$this.wrap(jQuery('<div></div>').attr({'className':'jScrollPaneContainer'}).css({'height':paneHeight+'px','width':paneWidth+'px'}));jQuery(document).bind('emchange',function(e,cur,prev)
{$this.jScrollPane(settings);});}
var p=this.originalSidePaddingTotal;var cssToApply={'height':'auto','width':paneWidth-settings.scrollbarWidth-settings.scrollbarMargin-p+'px'}
if(settings.scrollbarOnLeft){cssToApply.paddingLeft=settings.scrollbarMargin+settings.scrollbarWidth+'px';}else{cssToApply.paddingRight=settings.scrollbarMargin+'px';}
$this.css(cssToApply);var contentHeight=$this.outerHeight();var percentInView=paneHeight/contentHeight;if(percentInView<.99){var $container=$this.parent();$container.append(jQuery('<div></div>').attr({'className':'jScrollPaneTrack'}).css({'width':settings.scrollbarWidth+'px'}).append(jQuery('<div></div>').attr({'className':'jScrollPaneDrag'}).css({'width':settings.scrollbarWidth+'px'}).append(jQuery('<div></div>').attr({'className':'jScrollPaneDragTop'}).css({'width':settings.scrollbarWidth+'px'}),jQuery('<div></div>').attr({'className':'jScrollPaneDragBottom'}).css({'width':settings.scrollbarWidth+'px'}))));var $track=jQuery('>.jScrollPaneTrack',$container);var $drag=jQuery('>.jScrollPaneTrack .jScrollPaneDrag',$container);if(settings.showArrows){var currentArrowButton;var currentArrowDirection;var currentArrowInterval;var currentArrowInc;var whileArrowButtonDown=function()
{if(currentArrowInc>4||currentArrowInc%4==0){positionDrag(dragPosition+currentArrowDirection*mouseWheelMultiplier);}
currentArrowInc++;};var onArrowMouseUp=function(event)
{jQuery('html').unbind('mouseup',onArrowMouseUp);currentArrowButton.removeClass('jScrollActiveArrowButton');clearInterval(currentArrowInterval);};var onArrowMouseDown=function(){jQuery('html').bind('mouseup',onArrowMouseUp);currentArrowButton.addClass('jScrollActiveArrowButton');currentArrowInc=0;whileArrowButtonDown();currentArrowInterval=setInterval(whileArrowButtonDown,100);};$container.append(jQuery('<a></a>').attr({'href':'javascript:;','className':'jScrollArrowUp'}).css({'width':settings.scrollbarWidth+'px'}).html('Scroll up').bind('mousedown',function()
{currentArrowButton=jQuery(this);currentArrowDirection=-1;onArrowMouseDown();this.blur();return false;}),jQuery('<a></a>').attr({'href':'javascript:;','className':'jScrollArrowDown'}).css({'width':settings.scrollbarWidth+'px'}).html('Scroll down').bind('mousedown',function()
{currentArrowButton=jQuery(this);currentArrowDirection=1;onArrowMouseDown();this.blur();return false;}));var $upArrow=jQuery('>.jScrollArrowUp',$container);var $downArrow=jQuery('>.jScrollArrowDown',$container);if(settings.arrowSize){trackHeight=paneHeight-settings.arrowSize-settings.arrowSize;$track.css({'height':trackHeight+'px',top:settings.arrowSize+'px'})}else{var topArrowHeight=$upArrow.height();settings.arrowSize=topArrowHeight;trackHeight=paneHeight-topArrowHeight-$downArrow.height();$track.css({'height':trackHeight+'px',top:topArrowHeight+'px'})}}
var $pane=jQuery(this).css({'position':'absolute','overflow':'visible'});var currentOffset;var maxY;var mouseWheelMultiplier;var dragPosition=0;var dragMiddle=percentInView*paneHeight/2;var getPos=function(event,c){var p=c=='X'?'Left':'Top';return event['page'+c]||(event['client'+c]+(document.documentElement['scroll'+p]||document.body['scroll'+p]))||0;};var ignoreNativeDrag=function(){return false;};var initDrag=function()
{ceaseAnimation();currentOffset=$drag.offset(false);currentOffset.top-=dragPosition;maxY=trackHeight-$drag[0].offsetHeight;mouseWheelMultiplier=2*settings.wheelSpeed*maxY/contentHeight;};var onStartDrag=function(event)
{initDrag();dragMiddle=getPos(event,'Y')-dragPosition-currentOffset.top;jQuery('html').bind('mouseup',onStopDrag).bind('mousemove',updateScroll);if(jQuery.browser.msie){jQuery('html').bind('dragstart',ignoreNativeDrag).bind('selectstart',ignoreNativeDrag);}
return false;};var onStopDrag=function()
{jQuery('html').unbind('mouseup',onStopDrag).unbind('mousemove',updateScroll);dragMiddle=percentInView*paneHeight/2;if(jQuery.browser.msie){jQuery('html').unbind('dragstart',ignoreNativeDrag).unbind('selectstart',ignoreNativeDrag);}};var positionDrag=function(destY)
{destY=destY<0?0:(destY>maxY?maxY:destY);dragPosition=destY;$drag.css({'top':destY+'px'});var p=destY/maxY;$pane.css({'top':((paneHeight-contentHeight)*p)+'px'});$this.trigger('scroll');if(settings.showArrows){$upArrow[destY==0?'addClass':'removeClass']('disabled');$downArrow[destY==maxY?'addClass':'removeClass']('disabled');}};var updateScroll=function(e)
{positionDrag(getPos(e,'Y')-currentOffset.top-dragMiddle);};var dragH=Math.max(Math.min(percentInView*(paneHeight-settings.arrowSize*2),settings.dragMaxHeight),settings.dragMinHeight);$drag.css({'height':dragH+'px'}).bind('mousedown',onStartDrag);var trackScrollInterval;var trackScrollInc;var trackScrollMousePos;var doTrackScroll=function()
{if(trackScrollInc>8||trackScrollInc%4==0){positionDrag((dragPosition-((dragPosition-trackScrollMousePos)/2)));}
trackScrollInc++;};var onStopTrackClick=function()
{clearInterval(trackScrollInterval);jQuery('html').unbind('mouseup',onStopTrackClick).unbind('mousemove',onTrackMouseMove);};var onTrackMouseMove=function(event)
{trackScrollMousePos=getPos(event,'Y')-currentOffset.top-dragMiddle;};var onTrackClick=function(event)
{initDrag();onTrackMouseMove(event);trackScrollInc=0;jQuery('html').bind('mouseup',onStopTrackClick).bind('mousemove',onTrackMouseMove);trackScrollInterval=setInterval(doTrackScroll,100);doTrackScroll();};$track.bind('mousedown',onTrackClick);if($container.mousewheel){$container.mousewheel(function(event,delta){initDrag();ceaseAnimation();var d=dragPosition;positionDrag(dragPosition-delta*mouseWheelMultiplier);var dragOccured=d!=dragPosition;return!dragOccured;},false);}
var _animateToPosition;var _animateToInterval;function animateToPosition()
{var diff=(_animateToPosition-dragPosition)/settings.animateStep;if(diff>1||diff<-1){positionDrag(dragPosition+diff);}else{positionDrag(_animateToPosition);ceaseAnimation();}}
var ceaseAnimation=function()
{if(_animateToInterval){clearInterval(_animateToInterval);delete _animateToPosition;}};var scrollTo=function(pos,preventAni)
{if(typeof pos=="string"){$e=jQuery(pos,this);if(!$e.length)return;pos=$e.offset().top-$this.offset().top;}
ceaseAnimation();var destDragPosition=-pos/(paneHeight-contentHeight)*maxY;if(!preventAni||settings.animateTo){_animateToPosition=destDragPosition;_animateToInterval=setInterval(animateToPosition,settings.animateInterval);}else{positionDrag(destDragPosition);}};$this[0].scrollTo=scrollTo;$this[0].scrollBy=function(delta)
{var currentPos=-parseInt($pane.css('top'))||0;scrollTo(currentPos+delta);};initDrag();scrollTo(-currentScrollPosition,true);jQuery.jScrollPane.active.push($this[0]);}else{$this.css({'height':paneHeight+'px','width':paneWidth-this.originalSidePaddingTotal+'px','padding':this.originalPadding});}})};jQuery(window).bind('unload',function(){var els=jQuery.jScrollPane.active;for(var i=0;i<els.length;i++){els[i].scrollTo=els[i].scrollBy=null;}});;jQuery(document).ready(function(){jQuery('.scroll').jScrollPane({showArrows:true,scrollbarWidth:34,dragMaxHeight:19,dragMinHeight:19});});;jQuery(document).ready(function()
{jQuery("#term_is_tooltip").tooltip({bodyHandler:function(){return'A list of the subject(s) that apply to this term.';},showURL:false});jQuery("#definition_tooltip").tooltip({bodyHandler:function(){return'This term is related to the term(s) listed below.';},showURL:false});jQuery("#other_term_tooltip").tooltip({bodyHandler:function(){return'This term is part of the term(s) listed below.';},showURL:false});jQuery("#tools_tooltip").tooltip({bodyHandler:function(){return'Some helpful tools for sharing this term with others and getting some additional information.';},showURL:false});jQuery("#nearby_tooltip").tooltip({bodyHandler:function(){return'The five terms that appear before and after this term in alphabetical order.';},showURL:false});jQuery("#popular_term_tooltip").tooltip({bodyHandler:function(){return'A list of ten of the most popular terms in this subject.';},showURL:false});jQuery("#news_tooltip").tooltip({bodyHandler:function(){return'Current news items that specifically mention this term.';},showURL:false});});jQuery(document).ready(function()
{if(typeof(swfobject)!="undefined")
{var params={menu:"false",quality:"high",scale:"noscale",wmode:"opaque",allowfullscreen:"false",allowscriptaccess:"sameDomain",allownetworking:"internal",align:"middle",play:"true",loop:"true",scale:"showall",devicefont:"false",bgcolor:"#ffffff"};swfobject.embedSWF("/aplayer_top.swf","speaker","17","17","9.0.28",false,{mp3_url:"/audio/"+ID+".mp3"},params,{id:"speaker"});var params2={menu:"false",quality:"high",scale:"noscale",wmode:"opaque",allowfullscreen:"false",allowscriptaccess:"sameDomain",allownetworking:"internal",align:"middle",play:"true",loop:"true",scale:"showall",devicefont:"false",bgcolor:"#F2F8FF"};swfobject.embedSWF("/aplayer_1.swf","speaker_tools","50","17","9.0.28",false,{mp3_url:"/audio/"+ID+".mp3",LinkText:"hear"},params2,{id:"speaker_tools"});}});jQuery(document).ready(function()
{DisplayComeFromSearchMessage('come_from_search_container');});;function $()
{var elements=new Array();for(var i=0;i<arguments.length;i++)
{var element=arguments[i];if(typeof element=='string')
element=document.getElementById(element);if(arguments.length==1)
return element;elements.push(element);}
return elements;}
var $A=function(iterable)
{if(!iterable)return[];if(iterable.toArray)
{return iterable.toArray();}
else
{var results=[];for(var i=0;i<iterable.length;i++)
results.push(iterable[i]);return results;}}
Function.prototype.bind=function()
{var __method=this,args=$A(arguments),object=args.shift();return function()
{return __method.apply(object,args.concat($A(arguments)));}}
var Utils={AttachEvent:function(element,ev,func)
{if(element.addEventListener)element.addEventListener(ev,func,false);else
if(element.attachEvent)element.attachEvent('on'+ev,func);else
element['on'+ev]=func;}};function Menu(fieldName)
{this.objField=$(fieldName);this.timer=false;this.hideTimeOut=200;this.timeoutID=-1;this.containerName='menu_'+fieldName;this.requests=new Array();}
Menu.prototype={init:function(obj)
{this.items=obj.items;Utils.AttachEvent(this.objField,'mouseover',this.ShowMenu.bind(this));Utils.AttachEvent(this.objField,'mouseout',this.hideTimerSet.bind(this));},onMouseOverDiv:function(evt)
{var evt=(evt)?evt:((window.event)?event:null);var target=(evt.target)?evt.target:evt.srcElement;},onMouseOutDiv:function(evt)
{var evt=(evt)?evt:((window.event)?event:null);var target=(evt.target)?evt.target:evt.srcElement;},hideMenu:function(text)
{var elem=$(this.containerName);if(elem)
{elem.style.display='none';}},ShowMenu:function()
{var cont=this.createContainer();cont.style.display='block';this.hideTimerReset.bind(this);},hideTimerSet:function()
{this.timer=setTimeout(this.hideMenu.bind(this),this.hideTimeOut);},hideTimerReset:function()
{if(this.timer)clearTimeout(this.timer);},createContainer:function()
{if($(this.containerName))return $(this.containerName);var body=document.getElementsByTagName('body');if(body&&body[0])
{var container=document.createElement('DIV');container.id=this.containerName;container.style.display='none';container.style.position='absolute';container.className='menu-container';container.onmouseover=this.hideTimerReset.bind(this);container.onmouseout=this.hideTimerSet.bind(this);body[0].appendChild(container);this.containerPosition(container);for(var i=0;i<this.items.length;i++)
{var it=this.items[i];var el=document.createElement('A');el.id='menu_link_'+i;el.href=it.link;el.className=it.className;el.innerHTML=it.content;el.cookie=it.cookie;container.appendChild(el);}}
return container;},containerPosition:function(container)
{var left=this.getLeftPos(this.objField);var top=this.getTopPos(this.objField)+this.objField.offsetHeight;container.style.left=left+'px';container.style.top=top+'px';},getLeftPos:function(obj)
{var res=0;while(obj)
{res+=obj.offsetLeft;obj=obj.offsetParent;}
return res;},getTopPos:function(obj)
{var res=0;while(obj)
{res+=obj.offsetTop;obj=obj.offsetParent;}
return res;}};var MenuInit={Init:function()
{var el=document.getElementById(MenuInit.Element);if(el==null)
{setTimeout(function(){MenuInit.Init();},100);}
var menu=new Menu(MenuInit.Element);var params={items:[{link:'/tips/authors',content:'Search By Auhtor',cookie:'authors',className:'menu menu_9'},{link:'/tips/tags',content:'Search By Tag',cookie:'tags',className:'menu menu_8'}]};menu.init(params);MenuInit.Menu=menu;},Element:'tips_menu',Menu:null};MenuInit.Init();