/* ===========================================================================
 *
 * JQuery URL Parser
 * Version 1.0
 * Parses URLs and provides easy access to information within them.
 *
 * Author: Mark Perkins
 * Author email: mark@allmarkedup.com
 *
 * For full documentation and more go to http://projects.allmarkedup.com/jquery_url_parser/
 *
 * ---------------------------------------------------------------------------
 *
 * CREDITS:
 *
 * Parser based on the Regex-based URI parser by Steven Levithan.
 * For more information (including a detailed explaination of the differences
 * between the 'loose' and 'strict' pasing modes) visit http://blog.stevenlevithan.com/archives/parseuri
 *
 * ---------------------------------------------------------------------------
 *
 * LICENCE:
 *
 * Released under a MIT Licence. See licence.txt that should have been supplied with this file,
 * or visit http://projects.allmarkedup.com/jquery_url_parser/licence.txt
 *
 * ---------------------------------------------------------------------------
 * 
 * EXAMPLES OF USE:
 *
 * Get the domain name (host) from the current page URL
 * jQuery.url.attr("host")
 *
 * Get the query string value for 'item' for the current page
 * jQuery.url.param("item") // null if it doesn't exist
 *
 * Get the second segment of the URI of the current page
 * jQuery.url.segment(2) // null if it doesn't exist
 *
 * Get the protocol of a manually passed in URL
 * jQuery.url.setUrl("http://allmarkedup.com/").attr("protocol") // returns 'http'
 *
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('X.o=3(){0 e={};0 f={};0 g={o:D.C,s:F,u:["K","x","N","H","I","J","r","9","M","7","O","Q","T","V"],q:{v:"w",8:/(?:^|&)([^&=]*)=?([^&]*)/g},8:{y:/^(?:([^:\\/?#]+):)?(?:\\/\\/((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?))?((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,A:/^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/}};0 h=3(){z=S(g.o);0 m=g.8[g.s?"y":"A"].U(z);0 d={};0 i=14;10(i--){d[g.u[i]]=m[i]||""}d[g.q.v]={};d[g.u[12]].G(g.q.8,3(a,b,c){4(b){d[g.q.v][b]=c}});2 d};0 j=3(a){4(!f.5){l()}4(a=="P"){4(f.9!==6&&f.9!==""){2 f.x+"://"+f.r+":"+f.9+"/"}R{2 f.x+"://"+f.r+"/"}}2(f[a]==="")?6:f[a]};0 k=3(a){4(!f.5){l()}2(f.w[a]===6)?6:f.w[a]};0 l=3(){f=h();n()};0 n=3(){0 p=f.7;e=[];e=f.7.5==1?{}:(p.W(p.5-1)=="/"?p.B(1,p.5-1):7=p.B(1)).L("/")};2{Y:3(a){s=a=="y"?Z:F;2 E},11:3(a){g.o=a===t?D.C:a;l();2 E},13:3(a){4(!f.5){l()}4(a===t){2 e.5}2(e[a]===""||e[a]===t)?6:e[a]},15:j,16:k}}();',62,69,'var||return|function|if|length|null|path|parser|port|||||||||||||||url|||host|strictMode|undefined|key|name|queryKey|protocol|strict|str|loose|substring|location|window|this|false|replace|userInfo|user|password|source|split|relative|authority|directory|base|file|else|decodeURI|query|exec|anchor|charAt|jQuery|setMode|true|while|setUrl||segment||attr|param'.split('|'),0,{}))
