function ParseQStr(str){var qstr=decodeURIComponent(str),qstrStart=qstr.indexOf('q='),qstrEnde=qstr.indexOf('&',qstrStart);if(qstrEnde!=-1){return(qstr.slice(qstrStart+2,qstrEnde))}else return(qstr.slice(qstrStart+2))}
function OnLoad(){var searchControl=new GSearchControl(null),philSearch=new GwebSearch();philSearch.setUserDefinedLabel("Suche in den Seiten der Philosophischen Fakultät");philSearch.setUserDefinedClassSuffix("philSearch");philSearch.setSiteRestriction("www.phil-fak.uni-duesseldorf.de");var localOptions=new GsearcherOptions();localOptions.setExpandMode(GSearchControl.EXPAND_MODE_OPEN);searchControl.setNoResultsString(searchControl.NO_RESULTS_DEFAULT_STRING);searchControl.addSearcher(philSearch,localOptions);var drawOptions=new GdrawOptions();drawOptions.setDrawMode(GSearchControl.DRAW_MODE_TABBED);searchControl.draw(document.getElementById("searchcontrol"),drawOptions);searchControl.execute(ParseQStr(location.search))};google.load("search","1");google.setOnLoadCallback(OnLoad);
