/* Clientcide Copyright (c) 2006-2009, http://www.clientcide.com/wiki/cnet-libraries#license*/

//Contents: Browser.Extras.Compat

//This lib: http://www.clientcide.com/js/build.php?excludeLibs[]=mootools-core&excludeLibs[]=mootools-more&require[]=Browser.Extras.Compat&compression=jsmin


$extend(Browser,{getHost:function(url){return new URI(url).get('host');},getQueryStringValue:function(key,url){return new URI(url).getData(key);},getQueryStringValues:function(url){return new URI(url).getData();},getPort:function(url){return new URI(url).get('port');},redraw:function(element){var n=document.createTextNode(' ');this.adopt(n);(function(){n.dispose()}).delay(1);return this;}});window.addEvent('domready',function(){var count=0;function setQs(){function retry(){count++;if(count<20)setQs.delay(50);};try{if(!Browser.getQueryStringValues())retry();else Browser.qs=Browser.getQueryStringValues();}catch(e){retry();}}
setQs();});
