/* Copyright (c) 2009, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.net/yui/license.txt version: 3.0.0 build: 1549 */ YUI.add('get',function(Y){(function(){var ua=Y.UA,L=Y.Lang,TYPE_JS="text/javascript",TYPE_CSS="text/css",STYLESHEET="stylesheet";Y.Get=function(){var queues={},qidx=0,purging=false,_node=function(type,attr,win){var w=win||Y.config.win,d=w.document,n=d.createElement(type),i;for(i in attr){if(attr[i]&&attr.hasOwnProperty(i)){n.setAttribute(i,attr[i]);}} return n;},_linkNode=function(url,win,attributes){var o={id:Y.guid(),type:TYPE_CSS,rel:STYLESHEET,href:url};if(attributes){Y.mix(o,attributes);} return _node("link",o,win);},_scriptNode=function(url,win,attributes){var o={id:Y.guid(),type:TYPE_JS,src:url};if(attributes){Y.mix(o,attributes);} return _node("script",o,win);},_purge=function(tId){var q=queues[tId],n,l,d,h,s,i,node,attr;if(q){n=q.nodes;l=n.length;d=q.win.document;h=d.getElementsByTagName("head")[0];if(q.insertBefore){s=_get(q.insertBefore,tId);if(s){h=s.parentNode;}} for(i=0;i