 try {
 document.execCommand('BackgroundImageCache', false, true);
 } catch(e) {}
function addNet(url,titel){if((typeof window.sidebar=="object") && (typeof window.sidebar.addPanel=="function")){window.sidebar.addPanel(titel,url,"");}else{alert("Sie Nutzen eine veralterte Netscape Version!\nLesezeichen hinzufügen ist nicht möglich!");}}
function addtobookmark(){var url=window.location.href,t=document.title,ap=navigator.appName;
if(ap=="Microsoft Internet Explorer"){window.external.AddFavorite(url,t);}else{
if(ap=="Netscape"){addNet(url,t);}else{alert("Mit ihren Browser ist kein Lesezeichen über Javascript möglich.\nBitte legen sie das Lesezeichnen manuel an.\nURL:"+url);};}};
function addLoadEvent(func) { 
	  var oldonload = window.onload; 
	  if (typeof window.onload != 'function') 
	  { 
	    window.onload = func; 
	  } 
	  else
	  { 
	    window.onload = function() 
		{ 
	      if (oldonload) 
		  { 
	        oldonload(); 
	      } 
	      func(); 
	    } 
	  } 
} 
function createCookie(name,value,days) {
	if (days) {
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "expires="+date.toGMTString();
	}
	else {
		expires = "";
	}
	document.cookie = name+'='+value+'; '+expires+'; path=/';
}

function readCookie(name) {
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++) {
		var c = ca[i];
		while (c.charAt(0)==' '){ 
			c = c.substring(1,c.length);
		}
		if (c.indexOf(nameEQ) == 0) {
			return c.substring(nameEQ.length,c.length);
		}
	}
	return null;
}


//open function for references
function referencesopen(r_url)
{
    window.open(r_url,null, "height=440,width=1027,status=yes,toolbar=no,menubar=no,location=no");
}

function refselecttypechange(r_url)
{
    var r_id = document.getElementById("typeselect").options[document.getElementById("typeselect").selectedIndex].value;
    var urlfull = r_url+r_id;
    window.location.href = urlfull;
}
function m_hidden(k_id)
{
  document.getElementById(k_id).innerHTML = "";
  document.getElementById(k_id).style.display = "none";
}
function m_show(k_id)
{
  document.getElementById(k_id).style.display = "block";
  document.getElementById(k_id).innerHTML = "<img src='fileadmin/template/images/ajaxload.gif' alt=''/>";
}
function mebernamerowover(event)
{
    $oEvt(event).className = "membernamerowover";
    return false;
}
function membernamerowout(event)
{
    $oEvt(event).className = "membernamerow";
    return false;
}


function $Evt(event){return event||window.event;}
function $oEvt(event,obj){
	if(obj){
		if(obj.type=='hidden') return;
		oEvt = obj;
	}
	else{
		event = $Evt(event);
		if(event.keyCode==13){return;}
		oEvt = event.srcElement||event.target;
	}
	return oEvt;
}

