// JavaScript Document
function searchSuggestion() {
	version = navigator.userAgent;
	searching = version.search('MSIE 7.0');
	if(searching != -1) {
		document.getElementById('suggestion').style.visibility = 'visible';
		document.getElementById('suggestion').style.marginTop = '43px';
	}
	else 
	document.getElementById('suggestion').style.visibility = 'visible';
}
function hideSuggestion() {
	setTimeout("document.getElementById('suggestion').style.visibility = 'hidden'",500);
	setTimeout("document.getElementById('suggestion').innerHTML = 'Suggestions'",500);
}
function suggestionBox(value) {
	if(value == '')
		document.getElementById('suggestion').innerHTML = 'Suggestions';
	else 
		ajaxPageNoLoading('suggestion', 'ajax/search.ajax.php', 'keyword='+value)
}
function changeSelectedSearch(id) {
	document.getElementById(id).style.background = '#5f202b';
	document.getElementById(id).style.color = '#FFF';
	document.getElementById(id).style.cursor = 'pointer';
}
function outSelectedSearch(id) {
	document.getElementById(id).style.background = '#862d3d';
	document.getElementById(id).style.color = '#FFF';
	document.getElementById(id).style.cursor = 'auto';
}
