var searchboxNew = {		containerID: null,		init: function(containerID)	{		searchboxNew.containerID = containerID;			},		reload: function(el) {		attrs = new Array();      		// parsing request string 		requestString = document.location.search;		if(requestString.indexOf('?')==0)		    requestString = requestString.substring(1);		requestParams = requestString.split("&",3)		for(i=0; i< requestParams.length; i++) {		    kv = requestParams[i].split('=');		    if(kv[0]!='' && kv[1]!='') {		        attrs[kv[0]] = kv[1];						    }		}		//parsing form elements		els = searchboxNew._getFormElements();				els.each(function() {		   el = jQuery(this);				   if(el.attr('type')=='checkbox') {			   attrs[el.attr('name')] = el.is(':checked')?el.val():"";		   }           else if(el.attr('type')=='radio') {               attrs[el.attr('name')] = el.is(':checked')?el.val():"";           }		   		   else {			   if(el.attr('placeholder')==el.val()) el.val('');			   attrs[el.attr('name')] = el.val();		   }		   		})		url = document.location.pathname + '?mode=_ajax&_imod[]=Dfe_Modules_SearchBoxHomeNew_Module';				for(key in attrs) {			  		    url += '&'+key+'='+escape(attrs[key]);		}				searchboxNew._request(url);	},		_getFormElements: function() {		return jQuery("#"+searchboxNew.containerID+" form input,#"+searchboxNew.containerID+" form select");			},		_request: function(url) {		//els = searchboxNew._getFormElements().attr('disabled','true');		searchboxNew._blockForm();		jQuery.ajaxSetup({ cache: false });		jQuery.get(url, searchboxNew._requestComplete);	},		_blockForm: function() {		jQuery("#"+searchboxNew.containerID).block({css: {border: 0, background: 'none', padding: '5px', width: '45px', marginTop: '-15px'}, message: "<img src='/public/images/loading-animation.gif' />"});	},	_unblockForm: function() {		//jQuery("#"+searchboxNew.containerID).unblock();	},		_requestComplete: function(data) {		dom = jQuery(data);				searchboxNew._unblockForm();		//searchboxNew._getFormElements().removeAttr('disabled');		jQuery('#'+searchboxNew.containerID).html('').append(dom.html()).find('input[name=keyword]').each(function() {			inputPlaceholder(this);		});	}}jQuery(function() {	searchboxNew.init("searchbox_container_new");})
