var glossartext= new Array();
glossartext[-1]="Das Gerät kann mit jeder SIM-Karte betrieben werden und ist nicht auf eine spezielle SIM-Karte oder das Netz eines speziellen Netzanbieters beschränkt.";
glossartext[-2]="Mit SIM-Lock wird im Mobilfunkbereich die Einschränkung der Nutzbarkeit des mobilen Endgerätes in Kombination mit der SIM-Karte beschrieben. Dabei wird in drei Arten unterschieden: Sperre für Länder, Sperre für Netze und die totale SIM-Kartensperre (full SIM card lock). Letztere Variante, bei der das mobile Endgerät an eine bestimmte SIM-Karte gebunden ist, ist die in Deutschland gängigste.";
glossartext[-3]="Netlock oder auch Net-Lock steht für die Beschränkung eines Mobilfunkgerätes auf das Mobilfunknetz eines Mobilfunkanbieters. Unabhängig von der jeweiligen SIM-Karte, kann dieses Mobilgerät nur in dem ursprünglich vorgesehenen Netz genutzt werden.";
glossartext[-4]="Es handelt sich um ein Gerät, das frei von optischen und funktionellen Anpassungen durch jegliche Netzanbieter ist. So findet sich z.B. <u>kein</u> Logo eines Netzbetreibers auf dem Gehäuse.";
glossartext[-5]="Es handelt sich um eine spezielle, vom Netzbetreiber in Auftrag gegebene Variante des Geräts, bei dem üblicherweise das Netzbetreiberlogo auf dem Gehäuse angebracht wurde und das bezüglich Menü-Icons, Menüstruktur  und/oder Software an die Optik und das Funktionsangebot des jeweiligen Providers angepasst wurde.";
glossartext[-6]="Lieferzeit:</b> <b>2 bis 3 Werktage</b> (Ware ist am Lager)";
glossartext[-7]="Ware hat Lieferzeit:</b> Den voraussichtlichen Liefertermin teilen wir Ihnen nach Bestelleingang per E-Mail mit.";
glossartext[-8]="Dieser Artikel ist noch nicht verfügbar / keine Angaben zur Lieferzeit verfügbar";



function c_info(id,element) {

    if(g=document.getElementById("glossar")) {
	g.innerHTML=hi[id];

	g.style.top=(glossarOffsetTop(element))+29+"px";
	g.style.left=glossarOffsetLeft(element)-275+"px";

	g.style.display="";
    }
}

function hide_c_info() {
    if(g=document.getElementById("glossar")) {
		g.style.display="none";
    }
}


function glossarOffsetTop(el) {
	var y;

	y = el.offsetTop;
	if (el.offsetParent != null) {
	if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
	}
	else {
		y += glossarOffsetTop(el.offsetParent);
	}
	}
	return y;
}


function glossarOffsetLeft(el) {
	var x;
  
	x = el.offsetLeft;
	if (el.offsetParent != null) {
		if(el.offsetParent.style && el.offsetParent.style.overflow && el.offsetParent.style.overflow!="visible") {
		}
		else {
		x += glossarOffsetLeft(el.offsetParent);
		}
	}
	return x;
}

function glossar(id,element) {

    if(g=document.getElementById("glossar")) {
	g.innerHTML=glossartext[id];

	g.style.top=(glossarOffsetTop(element)+17)+"px";
	g.style.left=glossarOffsetLeft(element)+"px";

	g.style.display="";
    }
}

function hide_glossar() {
    if(g=document.getElementById("glossar")) {
	g.style.display="none";
    }
}

function glossar_ajax(id,element) {
    try{
	    req = new XMLHttpRequest();
    }
    catch(e){
	try{
		req = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e){
	    try{
		    req = new ActiveXObject("Microsoft.XMLHTTP");
	    }
	    catch (failed){
		    req = null;
	    }
	}
    }
    
    if(req != null) {
	req.open("GET", "glossar_ajax.asp?term="+id, true);
	req.send(null);
	req.onreadystatechange = function(){ 
	    if(req.readyState == 4) {
		if(req.status==200) {
		    xml = req.responseXML;
		    html=xml.getElementsByTagName("TERM");
		    if(g=document.getElementById("glossar")) {
			g.innerHTML=html[0].firstChild.nodeValue;
			g.style.top=(glossarOffsetTop(element)+17)+"px";
			g.style.left=glossarOffsetLeft(element)+"px";
		
			g.style.display="";
		    }
		    
		}
	    }
	}
    }
}

var h_info = new Array();

function bt_man_select(a2dp) {


    bt_mi= document.cart_quantity.bluetooth_handyhersteller.selectedIndex;
    bt_m = document.cart_quantity.bluetooth_handyhersteller[bt_mi].value;

    h_info = new Array();

    if(bt_mi>0) {
	try{
		req = new XMLHttpRequest();
	}
	catch(e){
	    try{
		    req = new ActiveXObject("Msxml2.XMLHTTP");
	    }
	    catch (e){
		try{
			req = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (failed){
			req = null;
		}
	    }
	}
	
	if(req != null) {
	    url="bluetooth_ajax.asp?manid="+bt_m;
	    if(a2dp ==1) {
		url+="&a2dp=1";
	    }
	    req.open("GET", url, true);
	    req.send(null);
	    req.onreadystatechange = function(){ 
		if(req.readyState == 4) {
		    if(req.status==200) {

			sb=document.cart_quantity.bluetooth_handy;
			sb.disabled=false;
			sb.className="";

			xml = req.responseXML;
			h_array=xml.getElementsByTagName("handy");
			for(i=0;i<h_array.length;i++) {
			    pid_a	=h_array[i].getElementsByTagName("pid");
			    name_a	=h_array[i].getElementsByTagName("name");
			    image_a	=h_array[i].getElementsByTagName("image");
			    bluetooth_a	=h_array[i].getElementsByTagName("bluetooth");

			    h_info[i]= new Array(pid_a[0].firstChild.nodeValue,name_a[0].firstChild.nodeValue,image_a[0].firstChild.nodeValue,bluetooth_a[0].firstChild.nodeValue);
			}

			for(i=0;i<h_info.length;i++) {
			    NeuerEintrag = new Option(h_info[i][1], h_info[i][1], false, true);
			    sb.options[(i+1)]=NeuerEintrag;
			}
			loops=(sb.length-i);

			for(j=0;j<loops;j++) {
			     sb.options[(i+1)]=null;
			}

			sb.selectedIndex=0;
		    }
		}
	    }
	}

    }
    else {
	sb=document.cart_quantity.bluetooth_handy;
	sb.selectedIndex=0;
	sb.disabled=true;
	sb.className="disabled";
    }
    if(canvas=document.getElementById("bluetooth_kompatibel")) {
	canvas.innerHTML="";
    }
}

function bt_handy_select() {
    hi= document.cart_quantity.bluetooth_handy.selectedIndex; 

    if(hi>0) {

	bt_mi= document.cart_quantity.bluetooth_handyhersteller.selectedIndex;
	hersteller = document.cart_quantity.bluetooth_handyhersteller[bt_mi].text;
	name=hersteller+" "+h_info[(hi-1)][1];

	html="<table border='0' width='100%' cellspacing='0' cellpadding='0'><tr>";
	html+="<td width='75'><img width='72' height='72' alt='"+name+"' title='"+name+"'  src='./images/72x72/"+h_info[(hi-1)][2]+"'></td>";

	html+="<td valign='top' ><b>"+name+"</b><br /><br />";
	if(h_info[(hi-1)][3]==0) {
	    html+="<img src='./images/lbrot.gif'> Gerät ist nicht bluetoothfähig und leider nicht kompatibel.";
	}
	if(h_info[(hi-1)][3]==1) {
	    html+="<img src='./images/lbgruen.gif'> Gerät ist bluetoothfähig und kompatibel.";
	}
	if(h_info[(hi-1)][3]==2) {
	    html+="<img src='./images/lbgelb.gif'> Gerät ist zwar bluetoothfähig, unterst&uuml;tzt aber keine Bluetooth-Stereo-Verbindung (A2DP).";
	}


	html+="</td>";

	html+="</tr></table>";
    }
    else {
	html="";
    }


    if(canvas=document.getElementById("bluetooth_kompatibel")) {
	canvas.innerHTML=html;
    }
}
