/* Copyright (c) 2006-2007 Mathias Bank (http://www.mathias-bank.de)
 * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) 
 * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
 * Version 2.1
 * Thanks to 
 * Hinnerk Ruemenapf - http://hinnerk.ruemenapf.de/ for bug reporting and fixing.
 */
jQuery.fn.extend({getUrlParam:function(F){F=escape(unescape(F));var E=new Array();var B=null;if($(this).attr("nodeName")=="#document"){if(window.location.search.search(F)>-1){B=window.location.search.substr(1,window.location.search.length).split("&")}}else{if($(this).attr("src")!="undefined"){var D=$(this).attr("src");if(D.indexOf("?")>-1){var A=D.substr(D.indexOf("?")+1);B=A.split("&")}}else{if($(this).attr("href")!="undefined"){var D=$(this).attr("href");if(D.indexOf("?")>-1){var A=D.substr(D.indexOf("?")+1);B=A.split("&")}}else{return null}}}if(B==null){return null}for(var C=0;C<B.length;C++){if(escape(unescape(B[C].split("=")[0]))==F){E.push(B[C].split("=")[1])}}if(E.length==0){return null}else{if(E.length==1){return E[0]}else{return E}}}});
