
// <!-- Start - bookmark page
function bookmark_site(title, url){
  if (document.all) window.external.AddFavorite(url, title);
  else if (window.sidebar) window.sidebar.addPanel(title, url, "")
  }

// --> End - bookmark page

// <!-- Start - cookie functions

function get_cookie(sName){
	// cookies are separated by semicolons
	var aCookie = document.cookie.split("; ");
	for (var i=0; i < aCookie.length; i++){
		// a name/value pair (a crumb) is separated by an equal sign
		var aCrumb = aCookie[i].split("=");
		if (sName == aCrumb[0]) return unescape(aCrumb[1]);
		}

	// a cookie with the requested name does not exist
	return "";
	}


function set_cookie(sName, sValue){
//	sPath = (persisttype=="sitewide")? ";path=/" : ""
	sPath = ";path=/" ;
	if (sName == "Language")
      document.cookie = sName + "=" + escape(sValue) + sPath + "; expires=Sat, 31 Dec 2022 23:59:59 GMT;" ;
    else
      document.cookie = sName + "=" + escape(sValue) + sPath ;
	}

// <!-- End - cookie functions

// Begin: Disable select-text script (IE4+, NS6+)- By Andy Scott
/*
var ns6=document.getElementById&&!document.all
var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1

function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
*/
// End: Disable select-text script (IE4+, NS6+)- By Andy Scott


// Begin: disable right click
/*
var message="";

function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
*/
// End: disable right click

// Begin: hide status bar message
/*
function hidestatus(){
window.status=''
return true
}

if (document.layers)
document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)

document.onmouseover=hidestatus
document.onmouseout=hidestatus
*/
// End: hide status bar message