// link to top anker
function lt() {
	var buffer = document.location.hash.substr(1);
	if(buffer != '') {
		document.location.href = document.URL;
	}
	else {
		document.location.href = document.URL + '#top';
	}
}

// li hover IE6
function IEHoverPseudo() {
	var navItems = document.getElementsByTagName("li");
	for (var i=0; i<navItems.length; i++) {
		navItems[i].onmouseover=function() { this.className += " over"; }
		navItems[i].onmouseout=function() { this.className = "parent"; }
	}
}
window.onload = IEHoverPseudo;

function checkSearchForm() {
	var formok = 1;
	var msg = "Bitte einen Suchbegriff eingeben";
	if (document.forms['ets'].q.value == "") { formok = 0; }
	if (formok == 1) {
		document.forms['ets'].submit();
	}
	else {
		alert(msg);
		return false;
	}
}

function bookmark(target) { 

     var currentURL = "http://www.gaskrank.tv/";
     var currentTitle = "Gaskrank TV";

     switch (target) {
          case "del.icio.us":
               window.open("http://del.icio.us/post?url="+currentURL+"&title="+currentTitle);
          break;
          case "Furl":
               window.open("http://www.furl.net/storeIt.jsp?u="+currentURL+"&t="+currentTitle);
          break;
          case "MrWong":
               window.open("http://www.mister-wong.de/index.php?action=addurl&bm_url="+currentURL+"&bm_description="+currentTitle);
          break;
          case "Google":
               window.open("http://www.google.com/bookmarks/mark?op=add&hl=de&bkmk="+currentURL+"&title="+currentTitle);
          break;
          case "Folkd":
               window.open("http://www.folkd.com/page/submit.html?addtofolkd=1&step1_sent=1&url="+currentURL+"&title="+currentTitle);
          break;
          case "Linkarea":
               window.open("http://linkarena.com/bookmarks/addlink/?url="+currentURL+"&title="+currentTitle);
          break;
          case "wkw":
               window.open("http://www.wer-kennt-wen.de/club_fhax1orc_Gaskrank_TV.html");
          break;
          case "twitter":
               window.open("http://twitter.com/gaskrank");
          break;
          case "Facebook":
               window.open("http://facebook.com/gaskrank");
          break;
     }

}


