

		
function searchKeyUp(searchString) {

	if(searchString.length > 3) {
	
			new Request({url: 'search.php', onComplete: function(response) {
				if($('contRight').hasClass('contrightStart') || $('contRight').hasClass('contrightCart')) {
					$('contRight').className = 'contright';
				}
				if($('topContent').hasClass('topcontentStart')) {
					$('topContent').className = 'topcontent';
				}
				if($('bottom').hasClass('bottomStart') || $('bottom').hasClass('bottomKassa')) {
					$('bottom').className = 'bottom';
				}
				$('contRight').set('html',response);
				
				$$('.moognify').each(function(element) {
					element.addEvent('click', function() { new Moognify(element,{source: 'cycle/server/data/files/'+element.get('name')}) });
				});
			}}).send("searchString="+searchString);
	}
}

function search(searchString) {

		new Request({url: 'search.php', onComplete: function(response) {
				if($('contRight').hasClass('contrightStart') || $('contRight').hasClass('contrightCart')) {
					$('contRight').className = 'contright';
				}
				if($('topContent').hasClass('topcontentStart')) {
					$('topContent').className = 'topcontent';
				}
				if($('bottom').hasClass('bottomStart') || $('bottom').hasClass('bottomKassa')) {
					$('bottom').className = 'bottom';
				}
				$('contRight').set('html',response);
				
			$('contRight').set('html',response);
				
				$$('.moognify').each(function(element) {
					element.addEvent('click', function() { new Moognify(element,{source: 'cycle/server/data/files/'+element.get('name')}) });
				});
		}}).send("searchString="+searchString);
}
