function btnOver ( pImg ) {
  if( pImg ) {
    var imgId = pImg.id;
    var imgSrc = pImg.src;
    pImg.src = pImg.src.replace( /_off/, "_over" );
  }
}

function btnOut ( pImg ) {
  if( pImg ) {
    var imgId = pImg.id;
    var imgSrc = pImg.src;
    pImg.src = pImg.src.replace( /_over/, "_off" );
  }
}


function setCookie(name, value, domain){
	var today = new Date();
	today.setTime(today.getTime());

	// 5 minutes (in millis)
	expires = 1000 * 60 * 5;
	var expires_date = new Date(today.getTime() + (expires));

	document.cookie = name + "=" + escape(value) +
	((expires) ? ";expires=" + expires_date.toGMTString() : "" ) + ";path=/";
	((domain!="") ? ";domain=" + domain : "");
}
		
function getCookie(check_name){

	var a_all_cookies = document.cookie.split( ';' );
	var a_temp_cookie = '';
	var cookie_name = '';
	var cookie_value = '';
	
	for (i = 0; i < a_all_cookies.length; i++){
		a_temp_cookie = a_all_cookies[i].split( '=' );
		cookie_name = a_temp_cookie[0].replace(/^\s+|\s+$/g, '');
		if (cookie_name == check_name){
			if (a_temp_cookie.length > 1){
				cookie_value = unescape( a_temp_cookie[1].replace(/^\s+|\s+$/g, '') );
			}

			return cookie_value;
			break;
		}
		a_temp_cookie = null;
		cookie_name = '';
	}

	return null;
}

function deleteCookie(name, domain){
	if(getCookie(name)){
		document.cookie = name + "=" + ";path=/" +
		(( domain) ? ";domain=" + domain : "" ) +
		";expires=Thu, 01-Jan-1970 00:00:01 GMT";
	}
}


var isDHTML = 0;
var isLayers = 0;
var isAll = 0;
var isID = 0;
 
if(document.getElementById){isID = 1; isDHTML = 1;}
else{
	if(document.all){isAll = 1; isDHTML = 1;}
    else{
		browserVersion = parseInt(navigator.appVersion);
    	if((navigator.appName.indexOf('Netscape') != -1) && (browserVersion == 4)){
			isLayers = 1;
			isDHTML = 1;
		}
	}
}
 
if(navigator.appName != "Netscape" || navigator.appName < 5){var tr_display_state = "inline";}
else{var tr_display_state = "table-row";}

function findDOM(objectID,withStyle){
	if(withStyle == 1){
		if(isID){
			return (document.getElementById(objectID).style);
		}
		else{
			if(isAll){return (document.all[objectID].style);}
			else{
				if(isLayers){return (document.layers[objectID]);}
			}
		}
	}
	else{
		if(isID){return (document.getElementById(objectID));}
		else{
			if(isAll){return (document.all[objectID]);}
			else{
				if(isLayers){return (document.layers[objectID]);}
			}
		}
	}
} 
