var objURL=new Object();window.location.search.replace(new RegExp("([^?=&]+)(=([^&]*))?","g"),function(b,a,d,c){objURL[a]=c});function SendPage(b){var d=b;b=escape(b);var c="";var g=window.location.search.substring(1);var a=false;if(objURL.f==""){delete objURL.f}for(var e in objURL){if(e=="f"){objURL.f+="~!"+b;a=true}else{}}if(!a){objURL.f=b}for(var e in objURL){if(c!=""){c+="&"+e+"="+objURL[e]}else{c+=e+"="+objURL[e]}}for(var e in objURL){}var f=window.location.href.split("?")[0]+"?"+c;window.location=f;return false}function RenderYouHaveSelected(){var c;var b=document.getElementById("youSelectedList");b.innerHTML="";for(var e in objURL){if(e=="f"){c=unescape(objURL[e].replace(/\+/gi,"%20")).split("~!")}}if(c){for(i=0;i<c.length;i++){var d=c[i].split(":");for(var e in title){var a=e.split("/")[1];if(a==d[0]){b.innerHTML+="<li><a href='#' onclick='return removeFilter(\""+c[i]+"\")'>"+title[e]+" : "+d[1]+"</a>"}}}document.getElementById("youSelected").style.display="block"}else{document.getElementById("youSelected").style.display="none"}}function removeFilter(b){var c="";var h=window.location.search.substring(1);unescape(h);var a=false;for(var f in objURL){if(f=="f"){updatedF="";var d=unescape(objURL.f.replace(/\+/gi,"%20")).split("~!");var e=false;for(i=0;i<d.length;i++){if(b=="all"){updatedF=""}else{if(unescape(d[i])==b&&!e){e=true}else{if(updatedF==""){updatedF+=escape(d[i])}else{updatedF+="~!"+escape(d[i])}}}}objURL.f=updatedF;if(objURL.f==""){delete objURL.f}}else{}}if(!a){}for(var f in objURL){if(c!=""){c+="&"+f+"="+objURL[f]}else{c+=f+"="+objURL[f]}}for(var f in objURL){}var g=window.location.href.split("?")[0]+"?"+c;window.location=g;return false};