 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 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;
	  case 'digg':
      window.open('http://digg.com/submit?phase=2&url='+sburl);
	}
}


function correctPNG()  
{
	// if this is no ie - return!
	if (window.XMLHttpRequest) {
		return false;
	}
	
	for(var i=0; i<document.images.length; i++)
	{
	  var img = document.images[i]
	  var imgName = img.src;//.toUpperCase()
	  if (imgName.substring(imgName.length-3, imgName.length) == "png")
	  {
		   imgName = imgName.replace('ä','-ae-');
		   imgName = imgName.replace('ö','-oe-');
		   imgName = imgName.replace('ü','-ue-');
		   imgName = imgName.replace('ß','-ss-');
		   imgName = imgName.replace('Ä','-AE-');
		   imgName = imgName.replace('Ö','-OE-');
		   imgName = imgName.replace('Ü','-UE-');
		   var imgID = (img.id) ? "id='" + img.id + "' " : ""

		   var imgClass = (img.className) ? "class='" + img.className + "' " : "pngconvert"
		   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 && 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=\'" + imgName + "\', sizingMethod='image');\"></span>"  
		   img.outerHTML = strNewHTML
		   i = i-1
	  }
	}
}


addLoadEvent(correctPNG);


