var disappeardelay=3;var enableanchorlink=0;var hidemenu_onclick=1;var ie5=document.all;var ns6=document.getElementById&&!document.all;function getposOffset(D,C){var B=(C=="left")?D.offsetLeft:D.offsetTop;var A=D.offsetParent;while(A!=null){B=(C=="left")?B+A.offsetLeft:B+A.offsetTop;A=A.offsetParent}return B}function showhide(C,B,D,A){if(ie5||ns6){dropmenuobj.style.left=dropmenuobj.style.top=-500}if(B.type=="click"&&C.visibility==A||B.type=="mouseover"){C.visibility=D}else{if(B.type=="click"){C.visibility=A}}}function iecompattest(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body}function clearbrowseredge(E,C){var B=0;if(C=="rightedge"){var D=ie5&&!window.opera?iecompattest().scrollLeft+iecompattest().clientWidth-15:window.pageXOffset+window.innerWidth-15;dropmenuobj.contentmeasure=dropmenuobj.offsetWidth;if(D-dropmenuobj.x<dropmenuobj.contentmeasure){B=dropmenuobj.contentmeasure-E.offsetWidth}}else{var A=ie5&&!window.opera?iecompattest().scrollTop:window.pageYOffset;var D=ie5&&!window.opera?iecompattest().scrollTop+iecompattest().clientHeight-15:window.pageYOffset+window.innerHeight-18;dropmenuobj.contentmeasure=dropmenuobj.offsetHeight;if(D-dropmenuobj.y<dropmenuobj.contentmeasure){B=dropmenuobj.contentmeasure+E.offsetHeight;if((dropmenuobj.y-A)<dropmenuobj.contentmeasure){B=dropmenuobj.y+E.offsetHeight-A}}}return B}function dropdownmenu(C,B,A){if(window.event){event.cancelBubble=true}else{if(B.stopPropagation){B.stopPropagation()}}if(typeof dropmenuobj!="undefined"){dropmenuobj.style.visibility="hidden"}clearhidemenu();if(ie5||ns6){C.onmouseout=delayhidemenu;dropmenuobj=document.getElementById(A);if(hidemenu_onclick){dropmenuobj.onclick=function(){dropmenuobj.style.visibility="hidden"}}dropmenuobj.onmouseover=clearhidemenu;dropmenuobj.onmouseout=ie5?function(){dynamichide(event)}:function(D){dynamichide(D)};showhide(dropmenuobj.style,B,"visible","hidden");dropmenuobj.x=getposOffset(C,"left");dropmenuobj.y=getposOffset(C,"top");dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(C,"rightedge")+"px";dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(C,"bottomedge")+C.offsetHeight+"px"}return clickreturnvalue()}function clickreturnvalue(){if((ie5||ns6)&&!enableanchorlink){return false}else{return true}}function contains_ns6(B,A){while(A.parentNode){if((A=A.parentNode)==B){return true}}return false}function dynamichide(A){if(ie5&&!dropmenuobj.contains(A.toElement)){delayhidemenu()}else{if(ns6&&A.currentTarget!=A.relatedTarget&&!contains_ns6(A.currentTarget,A.relatedTarget)){delayhidemenu()}}}function delayhidemenu(){delayhide=setTimeout("dropmenuobj.style.visibility='hidden'",disappeardelay)}function clearhidemenu(){if(typeof delayhide!="undefined"){clearTimeout(delayhide)}}var xmlHttp;var xmlHttp2;var a;var a2;


function showResult(C,A){a=A;if(C.length==0){document.getElementById("livesearch"+A).innerHTML="";document.getElementById("livesearch"+A).style.border="0px";document.getElementById("livesearch"+A).style.display="none";return }xmlHttp=GetXmlHttpObject();if(xmlHttp==null){alert("Browser does not support HTTP Request");return }var B="http://www.nfos.de/source/ajax_lib.php";
if(A.search(/2/)!=-1){B=B+"?filmname="+C}
else if(A.search(/4/)!=-1){B=B+"?checkfilmname2="+C}
else{B=B+"?search="+C}
xmlHttp.onreadystatechange=stateChanged;xmlHttp.open("GET",B,true);xmlHttp.send(null)}

function showResult2(C,A){a2=A;if(C.length==0){
	document.getElementById("livesearch"+A).innerHTML="";return }
	xmlHttp2=GetXmlHttpObject();if(xmlHttp2==null){alert("Browser does not support HTTP Request");return }var B="http://www.nfos.de/source/ajax_lib.php";
if(A.search(/3/)!=-1){B=B+"?filmname2="+C}
else if(A.search(/4/)!=-1){B=B+"?checkfilmname2="+C}
else{B=B+"?search="+C}
xmlHttp2.onreadystatechange=stateChanged2;xmlHttp2.open("GET",B,true);xmlHttp2.send(null)}

function stateChanged2(){if(xmlHttp.readyState==4||xmlHttp2.readyState=="complete"){document.getElementById("livesearch"+a2).value=xmlHttp2.responseText;}}


function stateChanged(){if(xmlHttp.readyState==4||xmlHttp.readyState=="complete"){document.getElementById("livesearch"+a).innerHTML=xmlHttp.responseText;document.getElementById("livesearch"+a).style.border="1px solid #A5ACB2";document.getElementById("livesearch"+a).style.display=""}}

function GetXmlHttpObject(){var A=null;try{A=new XMLHttpRequest()}catch(B){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(B){A=new ActiveXObject("Microsoft.XMLHTTP")}}return A}var qTipTag="a";var qTipX=-70;var qTipY=25;tooltip={name:"qTip",offsetX:qTipX,offsetY:qTipY,tip:null};tooltip.init=function(){var E="http://www.w3.org/1999/xhtml";if(!D){var D="qTip"}var G=document.getElementById(D);if(!G){G=document.createElementNS?document.createElementNS(E,"div"):document.createElement("div");G.setAttribute("id",D);document.getElementsByTagName("body").item(0).appendChild(G)}if(!document.getElementById){return }this.tip=document.getElementById(this.name);if(this.tip){document.onmousemove=function(H){tooltip.move(H)}}var B,A;var F=document.getElementsByTagName(qTipTag);for(var C=0;C<F.length;C++){B=F[C];A=B.getAttribute("title");if(A){B.setAttribute("tiptitle",A);B.removeAttribute("title");B.onmouseover=function(){tooltip.show(this.getAttribute("tiptitle"))};B.onmouseout=function(){tooltip.hide()}}}};tooltip.move=function(B){var A=0,C=0;if(document.all){A=(document.documentElement&&document.documentElement.scrollLeft)?document.documentElement.scrollLeft:document.body.scrollLeft;C=(document.documentElement&&document.documentElement.scrollTop)?document.documentElement.scrollTop:document.body.scrollTop;A+=window.event.clientX;C+=window.event.clientY}else{A=B.pageX;C=B.pageY}this.tip.style.left=(A+this.offsetX)+"px";this.tip.style.top=(C+this.offsetY)+"px"};tooltip.show=function(A){if(!this.tip){return }this.tip.innerHTML=A;this.tip.style.display="block"};tooltip.hide=function(){if(!this.tip){return }this.tip.innerHTML="";this.tip.style.display="none"};window.onload=function(){tooltip.init()}
