////////////////  SEARCH BOX CLICK ACTIONS   //////////////////

//detect ie version
function msieversion()
{
   var ua = window.navigator.userAgent
   var msie = ua.indexOf ( "MSIE " )
   if ( msie > 0 )      // If Internet Explorer, return version number
      return parseInt (ua.substring (msie+5, ua.indexOf (".", msie )))
   else                 // If another browser, return 0
      return 0
}

// Check for IE5.5 or below and opera
function searchStyleOld(){
var op6 = (window.opera && document.getElementById);
if(op6){
document.getElementById("searchField").id = 'IE5Search';
document.getElementById("searchButton").id = 'IE5Button';
}
/*@cc_on
if ( msieversion() < 6 ){
	document.getElementById("searchField").id = 'IE5Search';
	document.getElementById("searchButton").id = 'IE5Button';
}
@*/
}
// Clears the searchbox and sets glow
function ClearStyle(id){
if('Search' == document.getElementById(id).value){
document.getElementById(id).value = '';
}
/*@cc_on
	document.getElementById(id).id = "searchFocusIE"
@*/
}
// Sets searchbox to search and undoes glow
function RedoStyle(id){
if('' == document.getElementById(id).value){
document.getElementById(id).value = 'Search';
}
/*@cc_on
	document.getElementById(id).id = "searchField"
@*/
}
// on blur effect for ie6 and above
function RedoInput(id){
/*@cc_on
if ( msieversion() < 6 ){
	
}else{
@*/
	RedoStyle(id);
/*@cc_on
}
@*/
}
// on click effect for ie6 and above
function ClearInput(id){
/*@cc_on
if ( msieversion() < 6 ){
	
}else{
@*/
	ClearStyle(id);
/*@cc_on
}
@*/
}