	var csscheckcalled=0;
	var cssOn=true;
	
	try {
  		document.execCommand('BackgroundImageCache', false, true);
	} catch(e) {}
	
	function csscheck() {
		if (csscheckcalled==0) {
			csscheckcalled=1;
			if (document.getElementById("cssTest").offsetLeft < 30) cssOn=false;
			cssOn=true;
		}
	}
		
	function changeBackground(which,what) {
		csscheck();
		if (cssOn) {
			if (what == 'back'){
				which.className="divNormal";
			}
			else{
				which.className="divHi";
			}
		}
	}
		
	function changeHeight(what) {
		csscheck();
		if (cssOn) {
			if (what != 'back') {
				document.getElementById('dynNavi').style.height = 199 + "px";
			}
			else {
				document.getElementById('dynNavi').style.height = 20 + "px";
			}
		}
	}
	
	function init() {
		csscheck();
		if (cssOn) {
			document.getElementById('dynNavi').style.height = 20 + "px";
		}
	}
	
/*
// Code fuer Dokumentenmappe
// -------------------------
var rsCookieDuration = 24;  // Stunden

function updatePortfolio(docid, what) {
	what.setAttribute('class', 'documentsfullicon'); 
	what.setAttribute('className', 'documentsfullicon');
	
	var docsOfCookie = new Array();
	var thecookie = existsCookie("RSDocuments");
	
	if(thecookie==null) {	
		docsOfCookie.push(docid);				
		createCookie("RSDocuments", docsOfCookie, rsCookieDuration);
		
	} else {
		docsOfCookie = thecookie.split(',');
		var drin = false;
		for(var x=0;x<docsOfCookie.length;x++){
			if(docsOfCookie[x]==docid) {
			drin = true;
			var delId = x;
			}
		}
		if(!drin) {		
			docsOfCookie[docsOfCookie.length] = docid;
			createCookie("RSDocuments", docsOfCookie, rsCookieDuration);
		}
		if(drin) {
			what.setAttribute('class', 'documentsemptyicon'); 
			what.setAttribute('className', 'documentsemptyicon');
			
			docsOfCookie.splice(delId,1)
		
			createCookie("RSDocuments", docsOfCookie, rsCookieDuration);
			
			//alert("'"+docsOfCookie+"'");
			if (docsOfCookie == "") {
				docsOfCookie = "";
				docsOfCookie = new Array();
				createCookie("RSDocuments", docsOfCookie, -1);
			}
		}
	}
	var txt = "";
	
	if(docsOfCookie.length==0) txt = rsNoFile;
	else if(docsOfCookie.length==1) {
		txt = "1 "+rsOneFile;
	} else txt = docsOfCookie.length+" "+rsManyFiles;
	document.getElementById("docanzahl").innerHTML = txt;
}

// COOKIES 

function createCookie(name,value,hours) {
	if (hours) {
		var date = new Date();
		date.setTime(date.getTime()+(1*hours*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var 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;
}

function eraseCookie(name) {
	createCookie(name,"",-1);
}

function existsCookie(name) {
	var arg = name + "=";
	var alen = arg.length;
	var clen = document.cookie.length;
	var i = 0;
	while (i < clen) {
		var j = i + alen;
		if (document.cookie.substring(i, j) == arg) return readCookie(name);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break; 
	}
	return null;
}

// checkEMail
function checkEMail(_str) {
   var laenge = _str.length;
   if(laenge<1) return false;
   var okF1 = false;
   var okF2 = false;
   for (i=0; i<laenge; i++) {
      if(_str.charAt(i)=="@") okF1 = true;
	  if(_str.charAt(i)==".") okF2 = true;
   }
   if(okF1 && okF2) return true;
   else return false;
}

function sbOver(text) {
	if (text == '') {
		text = '';
	} else {
		text='&nbsp;<strong>'+text+'</strong>';
	}
	document.getElementById('sbText').innerHTML=text;
}
function sbDo(was) {
	sburl=encodeURIComponent(location.href);
	sbtitle=encodeURIComponent(document.title);
	switch(was) {		
		case 'delicious':
			window.open('http://del.icio.us/post?url='+sburl+'&title='+sbtitle);
			break;
		case 'wong':
			window.open('http://www.mister-wong.de/index.php?action=addurl&bm_url='+sburl+'&bm_description='+sbtitle);
			break;
		case 'blinkList':
			window.open('http://www.blinklist.com/index.php?Action=Blink/addblink.php&Description=&Url='+sburl+'&Title='+sbtitle);
			break;
		case 'yahoo':
			window.open('http://myweb2.search.yahoo.com/myresults/bookmarklet?u='+sburl+'&t='+sbtitle);
			break;
		case 'yigg':
			window.open('http://yigg.de/neu?exturl='+sburl+'&exttitle='+sbtitle);
			break;	
		case 'furl':
			window.open('http://www.furl.net/storeIt.jsp?u='+sburl+'&t='+sbtitle);
			break;
		case 'oneview':
			window.open('http://beta.oneview.de:80/quickadd/neu/addBookmark.jsf?URL='+sburl+'&title='+sbtitle);			
			break;
		case 'folkd':
			window.open('http://www.folkd.com/submit/page/'+sburl);
			break;
		case 'linkarena':	
			window.open('http://linkarena.com/bookmarks/addlink/?url='+sburl+'&title='+sbtitle+'&desc=&tags=');
			break;
		case 'google': 		
			window.open('http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk='+sburl+'&title='+sbtitle);
			break;
		case 'webnews': 		
			window.open('http://www.webnews.de/einstellen?url='+sburl+'&title='+sbtitle);
			break;
	}
}

//png fix ie
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6.
{
	var arVersion = navigator.appVersion.split("MSIE")
	var version = parseFloat(arVersion[1])
	if ((version >= 5.5) && (document.body.filters)) {
		for(var i=0; i<document.images.length; i++) {
			var img = document.images[i]
			if (!img.src.indexOf('google')) {
				var imgName = img.src.toUpperCase()
				if (imgName.substring(imgName.length-3, imgName.length) == "PNG") {
					var imgID = (img.id) ? "id='" + img.id + "' " : ""
					var imgClass = (img.className) ? "class='" + img.className + "' " : ""
					var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
					var imgStyle = "display:inline-block;" + img.style.cssText 
					if (img.align == "left") imgStyle = "float:left;" + imgStyle
					if (img.align == "right") imgStyle = "float:right;" + imgStyle
					if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle
					var strNewHTML = "<span " + imgID + imgClass + imgTitle
					+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
					+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
					img.outerHTML = strNewHTML
					i = i-1
				}
			}
		}
	}
}

window.attachEvent("onload", correctPNG);
*/

