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);});}});jQuery(document).ready(function()
{CheckRateVisibility(TERMID);jQuery('#link_to_this').click(function()
{track_icon(16);showhide('link');});jQuery('#translate_button').click(function()
{track_icon(17);showhide('select_lang');});jQuery('#print_tools').click(function()
{track_icon(14);});jQuery('#send_to_friend_tools').click(function()
{track_icon(13);ShowSendToFriend(CITETERMNAME);});jQuery('#cite_tools').click(function()
{ShowCite(CITETERMNAME,CITESITENAME,CITETERMPATH,CITEFULLDATE);});});;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 GSvideoBar(barRoot,opt_playerRoot,options){this.processArguments(barRoot,opt_playerRoot,options);this.setGlobals();this.buildSuperStructure();this.buildSearchControl();if(this.autoExecuteMode){this.cycleTimeClosure=this.methodClosure(this,GSvideoBar.prototype.cycleTimeout,[null]);if(this.executeList.length==1){this.switchToListItem(0);}else{this.cycleTimeout();}}}
GSvideoBar.CYCLE_TIME_EXTRA_SHORT=3000;GSvideoBar.CYCLE_TIME_SHORT=10000;GSvideoBar.CYCLE_TIME_MEDIUM=15000;GSvideoBar.CYCLE_TIME_LONG=30000;GSvideoBar.CYCLE_MODE_RANDOM=1;GSvideoBar.CYCLE_MODE_LINEAR=2;GSvideoBar.MAX_CACHE_LIFETIME=50;GSvideoBar.MIN_CACHE_LIFETIME=2;GSvideoBar.DEFAULT_CACHE_LIFETIME=2;GSvideoBar.MAX_ERROR_COUNT=4;GSvideoBar.DEFAULT_QUERY="VW GTI";GSvideoBar.THUMBNAILS_SMALL=1;GSvideoBar.THUMBNAILS_MEDIUM=2;GSvideoBar.PLAYER_ROOT_FLOATING="floating";GSvideoBar.prototype.processArguments=function(barRoot,opt_playerRoot,opt_options){this.floatingPlayerBox=null;this.barRoot=barRoot;this.playerRoot=opt_playerRoot;this.statusRoot=null;this.externalMaster=null;this.verticalMode=true;this.thumbSize=GSvideoBar.THUMBNAILS_MEDIUM;this.autoExecuteMode=false;this.executeList=new Array();this.cycleTime=GSvideoBar.CYCLE_TIME_MEDIUM;this.cycleMode=GSvideoBar.CYCLE_MODE_RANDOM;this.cycleNext=0;this.cycleTimer=null;this.cacheLifetime=GSvideoBar.DEFAULT_CACHE_LIFETIME;this.resultSetSize=GSearch.SMALL_RESULTSET;this.ST_ALL_DONE=GSearch.strings["im-done"];if(opt_options){if(opt_options.largeResultSet&&opt_options.largeResultSet==true){this.resultSetSize=GSearch.LARGE_RESULTSET;}else{this.resultSetSize=GSearch.SMALL_RESULTSET;}
if(opt_options.master){this.externalMaster=opt_options.master;}
if(opt_options.horizontal&&opt_options.horizontal==true){this.verticalMode=false;}else{this.verticalMode=true;}
if(opt_options.thumbnailSize){if(opt_options.thumbnailSize==GSvideoBar.THUMBNAILS_MEDIUM){this.thumbSize=GSvideoBar.THUMBNAILS_MEDIUM;}else if(opt_options.thumbnailSize==GSvideoBar.THUMBNAILS_SMALL){this.thumbSize=GSvideoBar.THUMBNAILS_SMALL;}else{this.thumbSize=GSvideoBar.THUMBNAILS_MEDIUM;}}
if(opt_options.string_allDone){this.ST_ALL_DONE=opt_options.string_allDone;}
if(opt_options.autoExecuteList){if(opt_options.autoExecuteList.cycleTime){var cycleTime=opt_options.autoExecuteList.cycleTime;if(cycleTime==GSvideoBar.CYCLE_TIME_EXTRA_SHORT||cycleTime==GSvideoBar.CYCLE_TIME_SHORT||cycleTime==GSvideoBar.CYCLE_TIME_MEDIUM||cycleTime==GSvideoBar.CYCLE_TIME_LONG){this.cycleTime=cycleTime;}}
if(opt_options.autoExecuteList.cycleMode){var cycleMode=opt_options.autoExecuteList.cycleMode;if(cycleMode==GSvideoBar.CYCLE_MODE_RANDOM||cycleMode==GSvideoBar.CYCLE_MODE_LINEAR){this.cycleMode=cycleMode;}}
if(opt_options.autoExecuteList.executeList&&opt_options.autoExecuteList.executeList.length>0){for(var i=0;i<opt_options.autoExecuteList.executeList.length;i++){this.executeList.push(this.newListItem(opt_options.autoExecuteList.executeList[i]));}
this.autoExecuteMode=true;this.currentIndex=0;if(opt_options.autoExecuteList.statusRoot){this.statusRoot=opt_options.autoExecuteList.statusRoot;}}}}}
GSvideoBar.prototype.resetAutoExecuteListItems=function(newList){if(this.autoExecuteMode&&newList.length>0){if(this.cycleTimer){clearTimeout(this.cycleTimer);this.cycleTimer=null;}
if(this.statusRoot){this.removeChildren(this.statusRoot);}
this.executeList=new Array();for(var i=0;i<newList.length;i++){this.executeList.push(this.newListItem(newList[i]));}
this.currentIndex=0;if(this.statusRoot){this.populateStatusRoot();}
if(this.executeList.length==1){this.switchToListItem(0);}else{this.cycleTimeout();}}}
GSvideoBar.prototype.setGlobals=function(){this.br_AgentContains_cache_={};this.CL_PLAYERBOX="playerBox_gsvb";this.CL_PLAYING="playerBox_gsvb playing_gsvb";this.CL_IDLE="playerBox_gsvb idle_gsvb";this.CL_FLOATING_BOX="floatingPlayerBox_gsvb";this.CL_FLOATING_BRANDING="floatingBranding_gsvb";this.CL_FLOATING_BOX_PLAYING="floatingPlayerBox_gsvb playing_gsvb";this.CL_FLOATING_BOX_IDLE="floatingPlayerBox_gsvb idle_gsvb";this.CL_FLOATING_PLAYER="floatingPlayer_gsvb";this.CL_FLOATING_PLAYER_PLAYING="floatingPlayer_gsvb playing_gsvb";this.CL_FLOATING_PLAYER_IDLE="floatingPlayer_gsvb idle_gsvb";this.CL_PLAYERINNERBOX="playerInnerBox_gsvb";this.CL_VIDEOBARBOX="videoBarBox_gsvb";this.CL_VIDEOBARBOXFULL="videoBarBox_gsvb full_gsvb";this.CL_VIDEOBARBOXEMPTY="videoBarBox_gsvb empty_gsvb";this.CL_ACTIVE="active_gsvb";this.CL_PLAYER="player_gsvb";this.CL_ALLDONE="alldone_gsvb";this.CL_TITLE="title_gsvb";this.CL_RESULTSBOX="resultsBox_gsvb";this.CL_BRANDINGBOX="brandingBox_gsvb";this.CL_RESULTTABLE_VERTICAL="resultTable_gsvb vertical_gsvb";this.CL_RESULTTABLE_HORIZONTAL="resultTable_gsvb horizontal_gsvb";this.CL_RESULTCELL="resultCell_gsvb";this.CL_RESULTDIV="resultDiv_gsvb";this.CL_RESULTDIV_SMALL="resultDiv_gsvb smallResultDiv_gsvb";this.CL_STATUSBOX="statusBox_gsvb";this.CL_STATUSITEM="statusItem_gsvb";this.CL_STATUSITEM_SELECTED="statusItem_gsvb statusItemSelected_gsvb";this.smallResultBoxHeight=39;this.resultBoxHeight=77;}
GSvideoBar.prototype.buildSuperStructure=function(){if(this.externalMaster==null){if(this.playerRoot==GSvideoBar.PLAYER_ROOT_FLOATING){this.floatingPlayerBox=this.createDiv(null,this.CL_FLOATING_BOX_IDLE);this.playerRoot=this.createDiv(null,this.CL_FLOATING_PLAYER_IDLE);document.body.appendChild(this.floatingPlayerBox);document.body.appendChild(this.playerRoot);if(this.br_IsMac()){this.floatingPlayerBox.style.opacity="1.00";}}else{this.removeChildren(this.playerRoot);}
this.playerBox=this.createDiv(null,this.CL_PLAYERBOX);this.playerAllDone=this.createDiv(this.ST_ALL_DONE,this.CL_ALLDONE);this.playerAllDone.onclick=this.methodClosure(this,this.stopVideo,[]);this.playerInnerBox=this.createDiv(null,this.CL_PLAYERINNERBOX);this.playerBox.appendChild(this.playerAllDone);this.playerBox.appendChild(this.playerInnerBox);this.playerRoot.appendChild(this.playerBox);this.cssSetClass(this.playerBox,this.CL_IDLE);}
this.player=null;this.removeChildren(this.barRoot);this.barBox=this.createDiv(null,this.CL_VIDEOBARBOX);this.barRoot.appendChild(this.barBox);this.resultsBox=this.createDiv(null,this.CL_RESULTSBOX);this.barBox.appendChild(this.resultsBox);this.cssSetClass(this.barBox,this.CL_VIDEOBARBOXEMPTY);if(this.statusRoot){this.populateStatusRoot();}}
GSvideoBar.prototype.buildSearchControl=function(){this.vs=new GvideoSearch();this.vs.setResultSetSize(this.resultSetSize);this.vs.setSearchCompleteCallback(this,GSvideoBar.prototype.searchComplete,[true]);this.vsBypass=new GvideoSearch();this.vsBypass.setResultSetSize(this.resultSetSize);this.vsBypass.setSearchCompleteCallback(this,GSvideoBar.prototype.searchComplete,[false]);}
GSvideoBar.prototype.execute=function(query){this.vsBypass.execute(query);}
GSvideoBar.prototype.executeInternal=function(query){this.vs.execute(query);}
GSvideoBar.prototype.clearAllResults=function(){this.cssSetClass(this.barBox,this.CL_VIDEOBARBOXEMPTY);}
GSvideoBar.prototype.searchComplete=function(fromListItem){var results=null;if(fromListItem){var currentListItem=this.executeList[this.currentIndex];if(this.vs.results&&this.vs.results.length>0){currentListItem.results=new Array();currentListItem.cacheCount=1;currentListItem.errorCount=0;for(var i=0;i<this.vs.results.length;i++){currentListItem.results.push(this.vs.results[i]);}
results=currentListItem.results;}else{currentListItem.errorCount++;if(this.vs.completionStatus==200){currentListItem.errorCount=GSvideoBar.MAX_ERROR_COUNT+1;}}}else{if(this.vsBypass.results&&this.vsBypass.results.length>0){results=this.vsBypass.results;}}
this.processResults(results);}
GSvideoBar.prototype.processResults=function(results){if(results&&results.length>0){this.cssSetClass(this.barBox,this.CL_VIDEOBARBOXFULL);this.removeChildren(this.resultsBox);var cell;var table;var row=null;if(this.verticalMode){table=this.createTable(this.CL_RESULTTABLE_VERTICAL);}else{table=this.createTable(this.CL_RESULTTABLE_HORIZONTAL);}
table.setAttribute("align","center");for(var i=0;i<results.length;i++){var res=results[i];var imageScaler;var resultBoxHeight;var resultClass=null;if(this.thumbSize==GSvideoBar.THUMBNAILS_MEDIUM){imageScaler={width:100,height:75};resultBoxHeight=this.resultBoxHeight;resultClass=this.CL_RESULTDIV;}else{imageScaler={width:50,height:37};resultBoxHeight=this.smallResultBoxHeight;resultClass=this.CL_RESULTDIV_SMALL;}
var scaled=GSearch.scaleImage(res.tbWidth,res.tbHeight,imageScaler);var img=this.createImage(res.tbUrl,scaled.width,scaled.height,null);if(this.externalMaster){img.onclick=this.methodClosure(this.externalMaster,this.externalMaster.playVideo,[res]);}else{img.onclick=this.methodClosure(this,this.playVideo,[res]);}
if((resultBoxHeight-scaled.height)>0){var padTop=Math.round((resultBoxHeight-scaled.height)/2);img.setAttribute("vspace",padTop);}
var seconds=res.duration;var minutes=parseInt(seconds/60);var durationString;if(minutes>0){durationString=minutes+"m";var remainder=seconds%60;if(remainder>20){durationString+=" "+remainder+"s";}}else{durationString=seconds+"s";}
var toolTip=res.titleNoFormatting+" ( "+durationString+" )";var div=this.createDiv(null,resultClass);div.title=toolTip;div.appendChild(img);if(this.verticalMode){row=this.createTableRow(table);}else{if(row==null){row=this.createTableRow(table);}}
cell=this.createTableCell(row,this.CL_RESULTCELL);cell.setAttribute("align","center");cell.appendChild(div);}
row=this.createTableRow(table);var brandingOrientation;if(this.verticalMode){cell=this.createTableCell(row,this.CL_RESULTCELL);brandingOrientation=GSearch.VERTICAL_BRANDING;}else{cell=this.createTableCell(row,this.CL_RESULTCELL);if(this.br_IsIE()){cell.setAttribute("colSpan",results.length);}else{cell.setAttribute("colspan",results.length);}
brandingOrientation=GSearch.HORIZONTAL_BRANDING;}
GSearch.getBranding(cell,brandingOrientation,"http://www.youtube.com");this.brandingCell=cell;this.resultsBox.appendChild(table);}else{this.cssSetClass(this.barBox,this.CL_VIDEOBARBOXEMPTY);}}
GSvideoBar.prototype.playVideo=function(result){this.stopVideo();if(this.autoExecuteMode&&this.cycleTimer){clearTimeout(this.cycleTimer);this.cycleTimer=null;}
if(result.playUrl&&result.playUrl!=""){this.cssSetClass(this.playerBox,this.CL_PLAYING);if(this.floatingPlayerBox){this.cssSetClass(this.floatingPlayerBox,this.CL_FLOATING_BOX_PLAYING);this.cssSetClass(this.playerRoot,this.CL_FLOATING_PLAYER_PLAYING);}
this.player=GvideoSearch.createPlayer(result,this.CL_PLAYER);this.playerInnerBox.appendChild(this.player);var title=this.createDivLink(result.url,result.title,null,this.CL_TITLE);this.playerInnerBox.appendChild(title);if(this.floatingPlayerBox){var playerBounds=GSvideoBar.nodeBounds(this.playerRoot);var bounds=GSvideoBar.nodeBounds(this.barRoot);var x;var y;if(this.verticalMode){x=bounds.x-playerBounds.width;y=bounds.y+bounds.height/2-playerBounds.height/2;var brandingBounds=GSvideoBar.nodeBounds(this.brandingCell);y=y-brandingBounds.height/2;if(x<10){x=bounds.x+bounds.width;}}else{x=bounds.x+bounds.width/2-playerBounds.width/2;y=bounds.y-playerBounds.height;if(y<10){y=bounds.y+bounds.height;}}
this.playerRoot.style.top=y+"px";this.playerRoot.style.left=x+"px";this.floatingPlayerBox.style.top=y-10+"px";this.floatingPlayerBox.style.left=x-10+"px";boxWidth=(playerBounds.width+20)+"px";this.floatingPlayerBox.style.width=boxWidth;this.floatingPlayerBox.style.height=(playerBounds.height+20)+"px";}
google.loader.recordStat('vbp','1');}}
GSvideoBar.prototype.stopVideo=function(){this.cssSetClass(this.playerBox,this.CL_IDLE);if(this.floatingPlayerBox){this.cssSetClass(this.floatingPlayerBox,this.CL_FLOATING_BOX_IDLE);this.cssSetClass(this.playerRoot,this.CL_FLOATING_PLAYER_IDLE);}
this.removeChildren(this.playerInnerBox);if(this.player){delete(this.player);this.player=null;}
if(this.autoExecuteMode&&this.executeList.length>1){this.clearTimer();this.cycleTimer=setTimeout(this.cycleTimeClosure,this.cycleTime);}}
GSvideoBar.prototype.clearTimer=function(){if(this.cycleTimer){clearTimeout(this.cycleTimer);this.cycleTimer=null;}}
GSvideoBar.prototype.cycleTimeout=function(){if(this.player==null){if(this.executeList.length==1){this.switchToListItem(0);}else{var index=0;if(this.cycleMode==GSvideoBar.CYCLE_MODE_RANDOM){var max=this.executeList.length-1;index=Math.round(max*Math.random());}else if(this.cycleMode==GSvideoBar.CYCLE_MODE_LINEAR){index=this.cycleNext;this.cycleNext++;if(this.cycleNext>=this.executeList.length){this.cycleNext=0;}}
this.switchToListItem(index);this.clearTimer();this.cycleTimer=setTimeout(this.cycleTimeClosure,this.cycleTime);}}}
GSvideoBar.prototype.newListItem=function(q){var listItem=new Object();listItem.node=null;listItem.query=q;listItem.results=new Array();listItem.errorCount=0;listItem.cacheCount=0;return listItem;}
GSvideoBar.prototype.switchToListItem=function(i){if(this.executeList[this.currentIndex].node){this.cssSetClass(this.executeList[this.currentIndex].node,this.CL_STATUSITEM);}
this.currentIndex=i;if(this.executeList[this.currentIndex].node){this.cssSetClass(this.executeList[this.currentIndex].node,this.CL_STATUSITEM_SELECTED);}
var queryTerm=this.executeList[this.currentIndex].query;var cacheResults=false;var currentListItem=null;currentListItem=this.executeList[this.currentIndex];if(currentListItem.errorCount>GSvideoBar.MAX_ERROR_COUNT){currentListItem.errorCount=0;queryTerm=GSvideoBar.DEFAULT_QUERY;currentListItem.query=queryTerm;}
if(currentListItem.cacheCount==0||currentListItem.cacheCount>this.cacheLifetime){currentListItem.cacheCount=0;this.executeInternal(queryTerm);}else{currentListItem.cacheCount++;this.processResults(currentListItem.results);}}
GSvideoBar.prototype.populateStatusRoot=function(){this.removeChildren(this.statusRoot);this.statusBox=this.createDiv(null,this.CL_STATUSBOX);this.statusRoot.appendChild(this.statusBox);if(this.executeList.length>0){for(var i=0;i<this.executeList.length;i++){var listItem=this.executeList[i];var displayTerm=listItem.query;var m=displayTerm.match(/feed:(top100|top100new)$/);if(m&&m.length==2){displayTerm=m[1];}
var div=this.createDiv(displayTerm,this.CL_STATUSITEM);div.onclick=this.methodClosure(this,GSvideoBar.prototype.switchToListItem,[i]);listItem.node=div;this.statusBox.appendChild(div);this.statusBox.appendChild(document.createTextNode(" "));}}}
GSvideoBar.methodCallback=function(object,method){return function(){return method.apply(object,arguments);}}
GSvideoBar.prototype.methodClosure=function(object,method,opt_argArray){return function(){return method.apply(object,opt_argArray);}}
GSvideoBar.prototype.createDiv=function(opt_text,opt_className){var el=document.createElement("div");if(opt_text){el.innerHTML=opt_text;}
if(opt_className){el.className=opt_className;}
return el;}
GSvideoBar.prototype.removeChildren=function(parent){while(parent.firstChild){parent.removeChild(parent.firstChild);}}
GSvideoBar.prototype.removeChild=function(parent,child){parent.removeChild(child);}
GSvideoBar.prototype.cssSetClass=function(el,className){el.className=className;}
GSvideoBar.prototype.createTable=function(opt_className){var el=document.createElement("table");if(opt_className){el.className=opt_className;}
return el;}
GSvideoBar.prototype.createTableRow=function(table,opt_className){var tr=table.insertRow(-1);if(opt_className){tr.className=opt_className;}
return tr;}
GSvideoBar.prototype.createTableCell=function(tr,opt_className){var td=tr.insertCell(-1);if(opt_className){td.className=opt_className;}
return td;}
GSvideoBar.prototype.createDivLink=function(href,text,opt_target,opt_className){var div=this.createDiv(null,opt_className);var el=document.createElement("a");el.href=href;el.appendChild(document.createTextNode(text));if(opt_className){el.className=opt_className;}
if(opt_target){el.target=opt_target;}
div.appendChild(el);return div;}
GSvideoBar.prototype.createImage=function(src,opt_w,opt_h,opt_className){var el=document.createElement("img");el.src=src;if(opt_w){el.width=opt_w;}
if(opt_h){el.height=opt_h;}
if(opt_className){el.className=opt_className;}
return el;}
GSvideoBar.prototype.getNodeWidth=function(node){return node.offsetWidth;}
GSvideoBar.prototype.br_AgentContains_=function(str){if(str in this.br_AgentContains_cache_){return this.br_AgentContains_cache_[str];}
return this.br_AgentContains_cache_[str]=(navigator.userAgent.toLowerCase().indexOf(str)!=-1);}
GSvideoBar.prototype.br_IsIE=function(){return this.br_AgentContains_('msie');}
GSvideoBar.prototype.br_IsMac=function(){return this.br_AgentContains_('macintosh')||this.br_AgentContains_('mac_powerpc');}
GSvideoBar.prototype.br_IsKonqueror=function(){return this.br_AgentContains_('konqueror');}
GSvideoBar.prototype.br_IsOpera=function(){return this.br_AgentContains_('opera');}
GSvideoBar.prototype.br_IsSafari=function(){return this.br_AgentContains_('safari')||this.br_IsKonqueror();}
GSvideoBar.prototype.br_IsNav=function(){return!this.br_IsIE()&&!this.br_IsSafari()&&this.br_AgentContains_('mozilla');}
GSvideoBar.prototype.br_IsWin=function(){return this.br_AgentContains_('win');}
GSvideoBar.nodeBounds=function(obj){var result={};function fixRectForScrolling(r){for(var o=obj.offsetParent;o&&o.offsetParent;o=o.offsetParent){if(o.scrollLeft){r.x-=o.scrollLeft;}
if(o.scrollTop){r.y-=o.scrollTop;}}}
if(obj.ownerDocument&&obj.ownerDocument.getBoxObjectFor){var box=obj.ownerDocument.getBoxObjectFor(obj);result.x=box.x;result.y=box.y;result.width=box.width;result.height=box.height;fixRectForScrolling(result);return result;}
if(obj.getBoundingClientRect){var refWindow;if(obj.ownerDocument&&obj.ownerDocument.parentWindow){refWindow=obj.ownerDocument.parentWindow;}else{refWindow=window;}
var rect=obj.getBoundingClientRect();result.x=rect.left+GSvideoBar.GetIEScrollLeft(refWindow);result.y=rect.top+GSvideoBar.GetIEScrollTop(refWindow);result.width=rect.right-rect.left;result.height=rect.bottom-rect.top;return result;}
var left=0;var top=0;for(var o=obj;o.offsetParent;o=o.offsetParent){left+=o.offsetLeft;top+=o.offsetTop;}
result.x=left;result.y=top;result.width=obj.offsetWidth;result.height=obj.offsetHeight;fixRectForScrolling(result);return result;}
GSvideoBar.GetIEScrollTop=function(win){if("compatMode"in win.document&&win.document.compatMode=="CSS1Compat"){return win.document.documentElement.scrollTop;}else{return win.document.body.scrollTop;}}
GSvideoBar.GetIEScrollLeft=function(win){if("compatMode"in win.document&&win.document.compatMode=="CSS1Compat"){return win.document.documentElement.scrollLeft;}else{return win.document.body.scrollLeft;}};(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;}});;$(document).ready(function()
{});;jQuery(document).ready(function()
{$("#term_is_tooltip").tooltip({bodyHandler:function(){return'A list of the subject(s) that apply to this term.';},showURL:false});$("#definition_tooltip").tooltip({bodyHandler:function(){return'This term is related to the term(s) listed below.';},showURL:false});$("#other_term_tooltip").tooltip({bodyHandler:function(){return'This term is part of the term(s) listed below.';},showURL:false});$("#other_sports_tooltip").tooltip({bodyHandler:function(){return'This term is used in other sports too';},showURL:false});$("#tools_tooltip").tooltip({bodyHandler:function(){return'Some helpful tools for sharing this term with others and getting some additional information.';},showURL:false});$("#nearby_tooltip").tooltip({bodyHandler:function(){return'The five terms that appear before and after this term in alphabetical order.';},showURL:false});$("#related_tooltip").tooltip({bodyHandler:function(){return'Here are some other terms used in the same sport.';},showURL:false});$("#popular_term_tooltip").tooltip({bodyHandler:function(){return'A list of ten of the most popular terms in this subject.';},showURL:false});$("#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');});;jQuery(function(){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:"#EFF6FF"};swfobject.embedSWF("/bizjumble/bizjumble-small.swf","bizjumble_game_container","340","310","9.0.28",false,{},params,{id:"bizjumble_game_container"});});