<!--

/***********************************************
* AnyLink Vertical Menu- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for full source code
* 		NOTE: this script is heavy modified by brainLounge.com,
*		please use orginal version from dynamicdrive
***********************************************/


function makelinks(which,d,tld) {
//SPECIFY MENU SETS AND THEIR LINKS. FOLLOW SYNTAX LAID OUT

	//var mit den TLD, die die Backorderservices anbieten
	var backPOOL = new Array("com", "net", "info", "org", "biz", "us", "org.uk", "co.uk", "me.uk");
	var backSNAP = new Array("com", "info", "org", "de", "biz", "co.uk");
	var backNAMEWINNER = new Array("com", "net", "info", "org"); 
	var backSELF = new Array("de");	//noch nicht integriert

	//var mit den TLD, die die Registrare anbieten (Auswahl ist schon auf die Abrage der TLDs begrenzt)
	var reg1UND1 = new Array("ag","at","be","biz","cc","ch","com","co.uk","de","eu","info","name","net","org","tv","us","ws"); 
	var regEVANZO = new Array("at","biz","ch","com","de","eu","info","net","org","ru","us"); 
	var regLOBSTER = new Array("at","be","biz","cc","com","co.uk","de","eu","info","name","net","org","tv","us","ws"); 
	var regUNITED = new Array("ag","at","be","biz","cc","ch","com","co.uk","de","eu","fm","in","info","it","name","net","org","ru","tk","tv","us","ws"); 
	var regDOMDISC = new Array("ag","at","be","biz","cc","ch","com","co.uk","de","eu","fm","in","info","name","net","org","ru","tk","tv","us","ws"); 


   if(which == '1') {				//Domain: Frei (Registrierung, ja nach TLD)		
       	linkset="<DIV class='div_pp_top'>...<B>registrieren bei:</B></DIV>"; 	
       	linkset+="<DIV class='div_pp_trenn'><IMG src='img/space.gif' height='1' width='1' border='0'></DIV>";
      	var count = 1;
      	var div_class="";
      	for(var i = 0; i < regLOBSTER.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(regLOBSTER[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=ll' class='a_pp' target='vt_partner'>LostLobster</A></DIV>";
      			count++;
      		}
      	}
      	for(var i = 0; i < reg1UND1.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(reg1UND1[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=1und1' class='a_pp' target='vt_partner'>1 und 1</A></DIV>";
      			count++;
      		}
      	}
      	for(var i = 0; i < regEVANZO.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(regEVANZO[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=evanzo' class='a_pp' target='vt_partner'>Evanzo</A></DIV>";
      			count++;
      		}
      	} 
      	for(var i = 0; i < regUNITED.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(regUNITED[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=ud' class='a_pp' target='vt_partner'>UnitedDomains</A></DIV>";
      			count++;
      		}
      	}
      	for(var i = 0; i < regDOMDISC.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(regDOMDISC[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=dd24' class='a_pp' target='vt_partner'>DomainDiscount24</A></DIV>";
      			count++;
      		}
      	}      	      	
      	if(count <= 1){
		 		linkset+="<DIV class='div_pp_top'>Keine Registrare bekannt</DIV>";
		 	}   

   }else if(which == '2') {		//Domain: belegt (Backorder, je nach TLD)
      	linkset="<DIV class='div_pp_top'>...<B>backordern bei:</B></DIV>"; 	
      	linkset+="<DIV class='div_pp_trenn'><IMG src='img/space.gif' height='1' width='1' border='0'></DIV>";  
      	var count = 1;
      	var div_class="";
      	for(var i = 0; i < backPOOL.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(backPOOL[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=pool' class='a_pp' target='vt_partner'>Pool.com</A></DIV>";
      			count++;
      		}
      	}
      	for(var i = 0; i < backSNAP.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(backSNAP[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=snapnames' class='a_pp' target='vt_partner'>Snapnames.com</A></DIV>";
      			count++;
      		}
      	}
      	for(var i = 0; i < backNAMEWINNER.length; i++){
      		if(count / 2 == 1 || count / 2 == 2){div_class = "div_pp_green";}else{div_class = "div_pp_white";}
      		if(backNAMEWINNER[i] == tld){
      			linkset+="<DIV class='"+div_class+"'><A href='go.php?d="+d+"&tld="+tld+"&p=namewinner' class='a_pp' target='vt_partner'>Namewinner.com</A></DIV>";
      			count++;
      		}
      	} 
      	if(count <= 1){
		 		linkset+="<DIV class='div_pp_top'>Keine Backorder- Services bekannt</DIV>";
		 	}
   }else{
      	linkset="<DIV class='div_pp_top'>...<B>???</B></DIV>"; 	
      	linkset+="<DIV class='div_pp_trenn'><IMG src='img/space.gif' height='1' width='1' border='0'></DIV>"; 
			linkset+="<DIV class='div_pp_white'>Service n/a</DIV>";
 	}

   return linkset;	


}



var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var horizontaloffset=2 //horizontal offset of menu from default location. (0-5 is a good value)

/////No further editting needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6) document.write('<div id="dropmenudiv" style="visibility:hidden;width:180px;" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

function getposOffset(what, offsettype){
    var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
    var parentEl=what.offsetParent;
    while (parentEl!=null){
	totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
	parentEl=parentEl.offsetParent;
    }
    return totaloffset;
}


function showhide(obj, e, visible, hidden, menuwidth){
    if (ie4||ns6) dropmenuobj.style.left=dropmenuobj.style.top=-500;
    dropmenuobj.widthobj=dropmenuobj.style
    dropmenuobj.widthobj.width=menuwidth
    if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible
    else if (e.type=="click") obj.visibility=hidden
}

function iecompattest(){
    return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function clearbrowseredge(obj, whichedge){
    var edgeoffset=0
    if (whichedge=="rightedge"){
	var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15
	dropmenuobj.contentmeasure=dropmenuobj.offsetWidth
	if (windowedge-dropmenuobj.x-obj.offsetWidth < dropmenuobj.contentmeasure) {
	    edgeoffset=dropmenuobj.contentmeasure+obj.offsetWidth;
	}
    } else {
	var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset
	var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18
	dropmenuobj.contentmeasure=dropmenuobj.offsetHeight
	if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move menu up?
	    edgeoffset=dropmenuobj.contentmeasure-obj.offsetHeight
	    if ((dropmenuobj.y-topedge)<dropmenuobj.contentmeasure) { //up no good either? (position at top of viewable window then)
		edgeoffset=dropmenuobj.y;
	    }
	}
    }
    return edgeoffset
}

function populatemenu(what){
    if (ie4||ns6) dropmenuobj.innerHTML=what.join("");
}


function dropdownmenu(obj, e, menucontents, menuwidth, d, tld){
    if (window.event) event.cancelBubble=true;
    else if (e.stopPropagation) e.stopPropagation();
    clearhidemenu();
    dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv;
    // populatemenu(menucontents);
    dropmenuobj.innerHTML=makelinks(menucontents,d,tld);
    

    if (ie4||ns6){
	showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
	dropmenuobj.x=getposOffset(obj, "left")
	dropmenuobj.y=getposOffset(obj, "top")
	dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+obj.offsetWidth+horizontaloffset+"px"
	dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+"px"
    }

    return clickreturnvalue()
}

function clickreturnvalue(){
    if (ie4||ns6) return false
    else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

//-->