gadgets.AuUserPrefStore=function(){gadgets.UserPrefStore.call(this)};gadgets.AuUserPrefStore.inherits(gadgets.UserPrefStore);gadgets.AuUserPrefStore.prototype.getPrefs=function(c){if(c.owner===undefined){return{}}var b={};var a="/gadgets/get_prefs?st="+c.secureToken;new Ajax.Request(a,{method:"get",asynchronous:false,contentType:"application/json",evalJSON:true,onSuccess:function(d){b=d.responseJSON}});return b};gadgets.AuUserPrefStore.prototype.savePrefs=function(c){var b=c.getUserPrefs();var a="/gadgets/set_prefs?st="+c.secureToken;new Ajax.Request(a,{contentType:"application/json",postBody:gadgets.json.stringify({prefs:b})})};gadgets.AuGadgetService=function(a,b){gadgets.IfrGadgetService.call(this);this.owner=a;this.viewer=b};gadgets.AuGadgetService.inherits(gadgets.IfrGadgetService);gadgets.AuGadgetService.prototype.setUserPref=function(h,c,e){var g=gadgets.container.gadgetService.getGadgetIdFromModuleId(this.f);var f=gadgets.container.getGadget(g);var b=f.getUserPrefs()||{};for(var d=1,a=arguments.length;d<a;d+=2){b[arguments[d]]=arguments[d+1]}f.setUserPrefs(b)};gadgets.AuGadgetService.prototype.requestNavigateTo=function(j,c,k){var l=k;if(l==undefined){l=owner}var e="remote_iframe_";var d=this.f.substring(e.length);var f=gadgets.container.getGadget(d);var b=l.split(":",3);var i=b[2];var h={appPermalink:f.appPermalink};if(b[1]=="a"){h.avatarPermalink=i}else{if(b[1]=="g"){h.groupPermalink=i}}var a=gadgets.container.gadgetService.getUrlForView(j,h);if(c){var g=gadgets.json.stringify(c);if(g.length>0&&g!="{}"){a+="?view-params="+encodeURIComponent(g)}}if(a){document.location.href=a}};gadgets.AuGadgetService.prototype.getUrlForView=function(b,a){var d;switch(b){case"CANVAS":d="/avatars/{avatarPermalink}/apps/{appPermalink}";break;case"HOME":d="/apps/home";break;case"PREVIEW":d="/apps/{appPermalink}";break;case"PROFILE":d="/avatars/{avatarPermalink}";break;case"GROUP_CANVAS":d="/groups/{groupPermalink}/apps/{appPermalink}";break;case"GROUP_PROFILE":d="/groups/{groupPermalink}";break;default:return null}var c=this.bindUrlTemplate(d,a);return c};gadgets.AuGadgetService.prototype.bindUrlTemplate=function(p,n){if(typeof p!="string"){throw new Error("Invalid urlTemplate")}if(typeof n!="object"){throw new Error("Invalid environment")}var l=/^([a-zA-Z0-9][a-zA-Z0-9_\.\-]*)(=([a-zA-Z0-9\-\._~]|(%[0-9a-fA-F]{2}))*)?$/,r=new RegExp("\\{([^}]*)\\}","g"),o=/^-([a-zA-Z]+)\|([^|]*)\|(.+)$/,h=[],k=0,f,e,c,j,g,b,i,m;function d(t,s){return n.hasOwnProperty(t)?n[t]:s}function a(s){if(!(e=s.match(l))){throw new Error("Invalid variable : "+s)}}function q(w,s,v){var t,u=w.split(",");for(t=0;t<u.length;++t){a(u[t]);if(v(s,d(e[1]),e[1])){break}}return s}while(f=r.exec(p)){h.push(p.substring(k,f.index));k=r.lastIndex;if(e=f[1].match(l)){c=e[1];j=e[2]?e[2].substr(1):"";h.push(d(c,j))}else{if(e=f[1].match(o)){g=e[1];b=e[2];i=e[3];m=0;switch(g){case"neg":m=1;case"opt":if(q(i,{flag:m},function(t,s){if(typeof s!="undefined"&&(typeof s!="object"||s.length)){t.flag=!t.flag;return 1}}).flag){h.push(b)}break;case"join":h.push(q(i,[],function(u,t,s){if(typeof t==="string"){u.push(s+"="+t)}}).join(b));break;case"list":a(i);value=d(e[1]);if(typeof value==="object"&&typeof value.join==="function"){h.push(value.join(b))}break;case"prefix":m=1;case"suffix":a(i);value=d(e[1],e[2]&&e[2].substr(1));if(typeof value==="string"){h.push(m?b+value:value+b)}else{if(typeof value==="object"&&typeof value.join==="function"){h.push(m?b+value.join(b):value.join(b)+b)}}break;default:throw new Error("Invalid operator : "+g)}}else{throw new Error("Invalid syntax : "+f[0])}}}h.push(p.substr(k));return h.join("")};gadgets.AuGadgetService.prototype.updateSecurityToken=function(a,b){gadgets.rpc.call(a,"update_security_token",null,b)};gadgets.AuGadgetService.prototype.setTheme=function(c,e,d,b,g,f,a){gadgets.rpc.call(c,"set_theme",null,e,d,b,g,f,a)};gadgets.AuGadgetService.prototype.getOwner=function(){return this.owner};gadgets.AuGadgetService.prototype.getViewer=function(){return this.viewer};gadgets.AuGadgetService.prototype.viewerIsOwner=function(){return this.viewer==this.owner};gadgets.AuGadgetService.ANONYMOUS_ID="-1";gadgets.AuGadgetService.prototype.ownerIsAnonymous=function(){return this.owner==gadgets.AuGadgetService.ANONYMOUS_ID};gadgets.AuGadgetService.prototype.viewerIsAnonymous=function(){return this.viewer==gadgets.AuGadgetService.ANONYMOUS_ID};gadgets.AuCanvasLayoutManager=function(){gadgets.StaticLayoutManager.call(this)};gadgets.AuCanvasLayoutManager.inherits(gadgets.StaticLayoutManager);gadgets.AuCanvasLayoutManager.prototype.getGadgetChrome=function(b){var c=document.getElementById(b.placeholderId);if(c){var a=document.createElement("div");a.id=b.id;a.className="canvas";c.appendChild(a);return a}else{return null}};gadgets.AuHomeLayoutManager=function(){gadgets.StaticLayoutManager.call(this)};gadgets.AuHomeLayoutManager.inherits(gadgets.StaticLayoutManager);gadgets.AuHomeLayoutManager.prototype.getGadgetChrome=function(c){var e=document.getElementById(c.placeholderId);if(e){var b=document.createElement("div");b.className="content_wide";var d=(c.id%2==0)?"float_left clear_left":"float_right clear_right";b.className+=" "+d;e.appendChild(b);var a=document.createElement("div");a.id=c.id;a.className="box";b.appendChild(a);return a}else{return null}};gadgets.AuPreviewLayoutManager=function(){gadgets.StaticLayoutManager.call(this)};gadgets.AuPreviewLayoutManager.inherits(gadgets.StaticLayoutManager);gadgets.AuPreviewLayoutManager.prototype.getGadgetChrome=function(b){var c=document.getElementById(b.placeholderId);if(c){var a=document.createElement("div");a.id="preview";a.className="box";c.appendChild(a);return a}else{return null}};gadgets.AuProfileLayoutManager=function(){gadgets.StaticLayoutManager.call(this)};gadgets.AuProfileLayoutManager.inherits(gadgets.StaticLayoutManager);gadgets.AuProfileLayoutManager.prototype.getGadgetChrome=function(b){var c=document.getElementById(b.placeholderId);if(c){var a=document.createElement("div");a.id=b.id;a.className="box";c.appendChild(a);return a}else{return null}};gadgets.AuGadget=function(b,a){gadgets.IfrGadget.call(this,a);this.serverBase_="http://"+b+"/gadgets/"};gadgets.AuGadget.inherits(gadgets.IfrGadget);gadgets.AuGadget.prototype.rpcRelay="container/rpc_relay.html";gadgets.AuGadget.prototype.getContent=function(a){gadgets.callAsyncAndJoin([this.getTitleBarContent,this.getMainContent],function(b){a(b.join(""))},this)};gadgets.AuGadget.prototype.getMainContent=function(a){throw Error(gadgets.error.SUBCLASS_RESPONSIBILITY)};gadgets.AuGadget.prototype.getTitleBarContent=function(a){throw Error(gadgets.error.SUBCLASS_RESPONSIBILITY)};gadgets.AuGadget.prototype.getIframeUrl=function(){return this.serverBase_+"ifr?container="+this.CONTAINER+"&mid="+this.id+(gadgets.container.nocache_?"&nocache="+gadgets.container.nocache_:"")+"&country="+gadgets.container.country_+"&lang="+gadgets.container.language_+"&view="+gadgets.container.view_+(this.specVersion?"&v="+this.specVersion:"")+(gadgets.container.parentUrl_?"&parent="+encodeURIComponent(gadgets.container.parentUrl_):"")+(this.debug?"&debug=1":"")+this.getAdditionalParams()+this.getUserPrefsParams()+(this.secureToken?"&st="+this.secureToken:"")+"&url="+encodeURIComponent(this.specUrl)+(this.viewParams?"&view-params="+encodeURIComponent(gadgets.json.stringify(this.viewParams)):"")+"#rpctoken="+this.rpcToken+(this.hashData?"&"+this.hashData:"")};gadgets.AuGadget.prototype.setSecureToken=function(a){this.secureToken=a;gadgets.container.gadgetService.updateSecurityToken(this.getIframeId(),decodeURIComponent(a))};gadgets.AuGadget.prototype.toggle=function(){document.getElementById(this.id).toggle()};gadgets.AuGadget.prototype.hide=function(){document.getElementById(this.id).hide()};gadgets.AuCanvasGadget=function(b,a){gadgets.AuGadget.call(this,b,a);this.theme={boxBgColor1:a.boxBgColor1,boxBgColor2:a.boxBgColor2,boxBgColor3:a.boxBgColor3,textColor1:a.textColor1,textColor2:a.textColor2,linkColor:a.linkColor}};gadgets.AuCanvasGadget.inherits(gadgets.AuGadget);gadgets.AuCanvasGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box fullscreen"><div class="box_head"><div class="box_head_content clearfix"><div class="box_title"><div class="float_right"><a href="'+this.profileUrl+'" class="normal">Back to Profile</a></div><a href="'+this.canvasUrl+'" id="'+this.getIframeId()+'_title" class="box_title_link'+(this.iconUrl?' icon_text" style="background-image:url('+this.iconUrl+")":"")+'">'+this.title+'</a></div><div class="box_controls"><a onclick="show_box_menu(\'box_menu_'+this.id+'\');"><img src="/images/graphics/box_control_collapse.gif" /></a></div></div><div id="box_menu_'+this.id+'" class="box_menu" style="display:none;"><ul><li><a class="icon_link" href="'+this.aboutPageUrl+'" style="background-image:url(/images/icons/information.png);">About '+this.title+"</a></li>"+((!gadgets.container.gadgetService.viewerIsAnonymous()&&!this.installedByViewer)?'<li id="install_app_li_'+this.id+'"><a class="icon_link popup_link" href="'+this.installUrl+'" onclick="show_box_menu(\'box_menu_'+this.id+'\');" style="background-image:url(/images/icons/application_install.png);">Install '+this.title+"</a></li>":"")+'</ul></div></div><div class="box_body"><div class="box_content"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div></div><div class="box_footer"> </div></div>')};gadgets.AuCanvasGadget.prototype.getTitleBarContent=function(a){a("")};gadgets.AuCanvasGadget.prototype.setTheme=function(d,c,b,f,e,a){this.theme.boxBgColor1=d;this.theme.boxBgColor2=c;this.theme.boxBgColor3=b;this.theme.textColor1=f;this.theme.textColor2=e;this.theme.linkColor=a;this.applyTheme()};gadgets.AuCanvasGadget.prototype.applyTheme=function(){gadgets.container.gadgetService.setTheme(this.getIframeId(),this.theme.boxBgColor1,this.theme.boxBgColor2,this.theme.boxBgColor3,this.theme.textColor1,this.theme.textColor2,this.theme.linkColor)};gadgets.AuGroupCanvasGadget=function(b,a){gadgets.AuGadget.call(this,b,a);this.theme={boxBgColor1:a.boxBgColor1,boxBgColor2:a.boxBgColor2,boxBgColor3:a.boxBgColor3,textColor1:a.textColor1,textColor2:a.textColor2,linkColor:a.linkColor}};gadgets.AuGroupCanvasGadget.inherits(gadgets.AuGadget);gadgets.AuGroupCanvasGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box fullscreen"><div class="box_head"><div class="box_head_content clearfix"><div class="box_title"><div class="float_right"><a href="'+this.profileUrl+'" class="normal">Back to Group</a></div><a href="'+this.canvasUrl+'" id="'+this.getIframeId()+'_title" class="box_title_link'+(this.iconUrl?' icon_text" style="background-image:url('+this.iconUrl+")":"")+'">'+this.title+'</a></div><div class="box_controls"><a onclick="show_box_menu(\'box_menu_'+this.id+'\');"><img src="/images/graphics/box_control_collapse.gif" /></a></div></div><div id="box_menu_'+this.id+'" class="box_menu" style="display:none;"><ul><li><a class="icon_link" href="'+this.aboutPageUrl+'" style="background-image:url(/images/icons/information.png);">About '+this.title+'</a></li></ul></div></div><div class="box_body"><div class="box_content"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div></div><div class="box_footer"> </div></div>')};gadgets.AuGroupCanvasGadget.prototype.getTitleBarContent=function(a){a("")};gadgets.AuGroupCanvasGadget.prototype.setTheme=function(d,c,b,f,e,a){this.theme.boxBgColor1=d;this.theme.boxBgColor2=c;this.theme.boxBgColor3=b;this.theme.textColor1=f;this.theme.textColor2=e;this.theme.linkColor=a;this.applyTheme()};gadgets.AuGroupCanvasGadget.prototype.applyTheme=function(){gadgets.container.gadgetService.setTheme(this.getIframeId(),this.theme.boxBgColor1,this.theme.boxBgColor2,this.theme.boxBgColor3,this.theme.textColor1,this.theme.textColor2,this.theme.linkColor)};gadgets.AuGroupProfileGadget=function(b,a){gadgets.AuGadget.call(this,b,a);this.theme={boxBgColor1:a.boxBgColor1,boxBgColor2:a.boxBgColor2,boxBgColor3:a.boxBgColor3,textColor1:a.textColor1,textColor2:a.textColor2,linkColor:a.linkColor}};gadgets.AuGroupProfileGadget.inherits(gadgets.AuGadget);gadgets.AuGroupProfileGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box_body" id="box_content_'+this.id+'"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div><div class="box_footer"></div>')};gadgets.AuGroupProfileGadget.prototype.getTitleBarContent=function(a){a('<div class="box_head"><div class="box_head_content clearfix"><div class="box_title"><a href="'+this.canvasUrl+'" id="'+this.getIframeId()+'_title" class="box_title_link'+(this.iconUrl?' icon_text" style="background-image:url('+this.iconUrl+")":"")+'">'+this.title+'</a></div><div class="box_controls"><a onclick="show_box_menu(\'box_menu_'+this.id+'\');"><img src="/images/graphics/box_control_collapse.gif" /></a></div></div><div id="box_menu_'+this.id+'" class="box_menu" style="display:none;"><ul><li><a class="icon_link" href="'+this.aboutPageUrl+'" style="background-image:url(/images/icons/information.png);">About '+this.title+"</a></li></ul></div></div>")};gadgets.AuGroupProfileGadget.prototype.setTheme=function(d,c,b,f,e,a){this.theme.boxBgColor1=d;this.theme.boxBgColor2=c;this.theme.boxBgColor3=b;this.theme.textColor1=f;this.theme.textColor2=e;this.theme.linkColor=a;this.applyTheme()};gadgets.AuGroupProfileGadget.prototype.applyTheme=function(){gadgets.container.gadgetService.setTheme(this.getIframeId(),this.theme.boxBgColor1,this.theme.boxBgColor2,this.theme.boxBgColor3,this.theme.textColor1,this.theme.textColor2,this.theme.linkColor)};gadgets.AuHomeGadget=function(b,a){gadgets.AuGadget.call(this,b,a)};gadgets.AuHomeGadget.inherits(gadgets.AuGadget);gadgets.AuHomeGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box_body" id="box_content_'+this.id+'"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div><div class="box_footer"> </div>')};gadgets.AuHomeGadget.prototype.getTitleBarContent=function(a){a('<div class="box_head"><div class="box_head_content clearfix"><div class="box_title"><a href="'+this.canvasUrl+'" id="'+this.getIframeId()+'_title" class="box_title_link'+(this.iconUrl?' icon_text" style="background-image:url('+this.iconUrl+")":"")+'">'+this.title+'</a></div><div class="box_controls"><a onclick="show_box_menu(\'box_menu_'+this.id+'\');"><img src="/images/graphics/box_control_collapse.gif" /></a></div></div><div id="box_menu_'+this.id+'" class="box_menu" style="display:none;"><ul><li><a class="icon_link" href="'+this.aboutPageUrl+'" style="background-image:url(/images/icons/information.png);">About '+this.title+"</a></li></ul></div></div>")};gadgets.AuPreviewGadget=function(b,a){gadgets.AuGadget.call(this,b,a)};gadgets.AuPreviewGadget.inherits(gadgets.AuGadget);gadgets.AuPreviewGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box_body" id="box_content_preview"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div><div class="box_footer"> </div>')};gadgets.AuPreviewGadget.prototype.getTitleBarContent=function(a){a('<div class="box_head"><div class="box_head_content clearfix"><div class="box_title">Preview</div></div></div>')};gadgets.AuProfileGadget=function(b,a){gadgets.AuGadget.call(this,b,a);this.theme={boxBgColor1:a.boxBgColor1,boxBgColor2:a.boxBgColor2,boxBgColor3:a.boxBgColor3,textColor1:a.textColor1,textColor2:a.textColor2,linkColor:a.linkColor}};gadgets.AuProfileGadget.inherits(gadgets.AuGadget);gadgets.AuProfileGadget.prototype.getMainContent=function(a){var b=this.getIframeId();gadgets.rpc.setRelayUrl(b,this.serverBase_+this.rpcRelay);gadgets.rpc.setAuthToken(b,this.rpcToken);a('<div class="box_body" id="box_content_'+this.id+'"><iframe id="'+b+'" name="'+b+'" frameborder="0" scrolling="no" allowtransparency="true"'+(this.height?' height="'+this.height+'"':"")+(this.width?' width="'+this.width+'"':"")+'></iframe></div><div class="box_footer"></div>')};gadgets.AuProfileGadget.prototype.getTitleBarContent=function(a){a('<div class="box_head"><div class="box_head_content clearfix"><div class="box_title"><a href="'+this.canvasUrl+'" id="'+this.getIframeId()+'_title" class="box_title_link'+(this.iconUrl?' icon_text" style="background-image:url('+this.iconUrl+")":"")+'">'+this.title+'</a></div><div class="box_controls"><a onclick="show_box_menu(\'box_menu_'+this.id+'\');"><img src="/images/graphics/box_control_collapse.gif" /></a></div></div><div id="box_menu_'+this.id+'" class="box_menu" style="display:none;"><ul><li><a class="icon_link" href="'+this.aboutPageUrl+'" style="background-image:url(/images/icons/information.png);">About '+this.title+"</a></li>"+((!gadgets.container.gadgetService.viewerIsAnonymous()&&!this.installedByViewer)?'<li id="install_app_li_'+this.id+'"><a class="icon_link popup_link" href="'+this.installUrl+'" onclick="show_box_menu(\'box_menu_'+this.id+'\');" style="background-image:url(/images/icons/application_install.png);">Install '+this.title+"</a></li>":"")+(gadgets.container.gadgetService.viewerIsOwner()?'<li><a class="icon_link" onclick="gadgets.container.getGadget('+this.id+').remove();" style="background-image:url(/images/icons/dismiss.png);">Hide this box</a></li>':"")+"</ul></div></div>")};gadgets.AuProfileGadget.prototype.setTheme=function(d,c,b,f,e,a){this.theme.boxBgColor1=d;this.theme.boxBgColor2=c;this.theme.boxBgColor3=b;this.theme.textColor1=f;this.theme.textColor2=e;this.theme.linkColor=a;this.applyTheme()};gadgets.AuProfileGadget.prototype.applyTheme=function(){gadgets.container.gadgetService.setTheme(this.getIframeId(),this.theme.boxBgColor1,this.theme.boxBgColor2,this.theme.boxBgColor3,this.theme.textColor1,this.theme.textColor2,this.theme.linkColor)};gadgets.AuProfileGadget.prototype.remove=function(){var a=this.id;new Ajax.Request("/apps/hide_profile_box",{method:"post",parameters:{gadget_id:this.dbId},onSuccess:function(d){var b=document.getElementById(a);try{b.hide()}catch(c){b.style.display="none"}}})};gadgets.AuContainer=function(a){gadgets.IfrContainer.call(this);this.gadgetServer=a};gadgets.AuContainer.inherits(gadgets.IfrContainer);gadgets.AuContainer.prototype.gadgetClass=eval(gadgetClassName);gadgets.AuContainer.prototype.userPrefStore=new gadgets.AuUserPrefStore();gadgets.AuContainer.prototype.gadgetService=new gadgets.AuGadgetService(owner,viewer);var layoutManagerClass=eval(layoutManagerClassName);gadgets.AuContainer.prototype.layoutManager=new layoutManagerClass();gadgets.AuContainer.prototype.getNextGadgetInstanceId=function(){return this.nextGadgetInstanceId_++};gadgets.AuContainer.prototype.createGadget=function(a){var b=new this.gadgetClass(this.gadgetServer,a);return b};gadgets.AuContainer.prototype.addGadget=function(a){a.id=this.getNextGadgetInstanceId();a.userPrefs_=this.userPrefStore.getPrefs(a);this.gadgets_[this.getGadgetKey_(a.id)]=a};gadgets.AuContainer.prototype.renderGadget=function(b){var a=this.layoutManager.getGadgetChrome(b);b.render(a);b.refresh()};gadgets.AuContainer.prototype.getGadgets=function(){return this.gadgets_};gadgets.AuContainer.prototype.getGadgetByIframeId=function(c){var b="remote_iframe_";var a=c.substring(b.length);return this.getGadget(a)};gadgets.AuContainer.prototype.setTheme=function(e,d,b,h,g,a){for(var c in this.gadgets_){var f=this.gadgets_[c];f.setTheme(e,d,b,h,g,a)}};gadgets.container=new gadgets.AuContainer(gadgetServer);var wowHead={};wowHead.hoverHide=function(){if($(this.f)!=undefined){var a=document.getElementById("au_hoverarea");if(a!=undefined){a.style.visibility="hidden";a.style.display="none"}}};wowHead.hoverMove=function(a,d){if($(this.f)!=undefined){var b=document.getElementById("au_hoverarea");if(b!=undefined){var c=$(this.f).cumulativeOffset();b.style.top=d+c.top+"px";b.style.left=a+c.left+"px";b.style.visibility="visible";b.style.display=""}}};wowHead.hoverShow=function(d,b,f){if($(this.f)!=undefined){var c=document.getElementById("au_hoverarea");if(c==undefined){var e=$(this.f).cumulativeOffset();var a=document.getElementsByTagName("body")[0];c=document.createElement("div");c.id="au_hoverarea";c.style.position="absolute";c.style.top=f+e.top+"px";c.style.left=b+e.left+"px";c.style.zIndex=100000001;a.appendChild(c)}c.innerHTML=d;c.style.visibility="visible";c.style.display=""}};gadgets.rpc.register("hoverHide",wowHead.hoverHide);gadgets.rpc.register("hoverMove",wowHead.hoverMove);gadgets.rpc.register("hoverShow",wowHead.hoverShow);