YAHOO.namespace("cc");YAHOO.namespace("cc.plus");YAHOO.namespace("cc.network");YAHOO.namespace("cc.attribution");YAHOO.cc.network.show_info=function(a){var b=new YAHOO.widget.Module("network",{visible:true});b.setBody(a);b.render(YAHOO.util.Dom.getAncestorBy(YAHOO.util.Dom.get("work-attribution-container"),function(c){return true}));YAHOO.util.Dom.addClass(b.body,"network");b.show()};YAHOO.cc.plus.show_info=function(a){document.getElementById("more-container").innerHTML=a;document.getElementById("more-container").setAttribute("class","license more")};YAHOO.cc.attribution.show_info=function(a){document.getElementById("work-attribution").value=a.marking;document.getElementById("work-attribution-container").style.display="block";if(a.details!=""){document.getElementById("attribution-container").innerHTML=a.details}return};YAHOO.cc.success=function(a){if(a.status!=200){return}var b=YAHOO.lang.JSON.parse(a.responseText);if(b.attribution.details!=""){YAHOO.cc.attribution.show_info(b.attribution)}if(b.registration!=""){YAHOO.cc.network.show_info(b.registration)}if(b.more_permissions!=""){YAHOO.cc.plus.show_info(b.more_permissions)}return};YAHOO.cc.failure=function(){};YAHOO.cc.load=function(){if(document.referrer.match("^http://")){var b={success:YAHOO.cc.success,failure:YAHOO.cc.failure,argument:document.referrer};YAHOO.util.Connect.initHeader("Referer",document.URL,true);var a="/apps/deed?url="+encodeURIComponent(document.referrer);YAHOO.util.Connect.asyncRequest("GET",a,b,null)}};YAHOO.util.Event.onDOMReady(YAHOO.cc.load);