// Menuesteuerung - Deutsch

var Link = new Array();
Link[1] = "index.htm";
Link[2] = "ueber_uns.htm";
Link[3] = "beratung.htm";
Link[4] = "produkte.htm";
Link[5] = "service.htm";
Link[6] = "referenzen.htm";
Link[7] = "news.htm";
Link[8] = "einblicke.htm";
Link[9] = "miet_produkte.htm";
Link[10] = "links.htm";
Link[11] = "../user/user_de.htm";
Link[12] = "newsletter.htm";

var ActiveMenu = "";
var ie6 = "";
var ie5 = "";
if (document.all && navigator.appVersion.indexOf("MSIE 6") > 0) ie6 = true;
if (document.all && navigator.appVersion.indexOf("MSIE 5") > 0) ie5 = true;

function DrawMenu()
	{
	document.writeln(" <div class=\"menu\" id=\"m1\" onmouseover=\"MakeActive('m1')\" onmouseout=\"MakeInactive('m1')\" onclick=\"Select('m1')\">Home</div> ");
	document.writeln(" <div class=\"menu\" id=\"m2\" onmouseover=\"MakeActive('m2')\" onmouseout=\"MakeInactive('m2')\" onclick=\"Select('m2')\">&Uuml;ber uns</div> ");
	document.writeln(" <div class=\"menu\" id=\"m3\" onmouseover=\"MakeActive('m3')\" onmouseout=\"MakeInactive('m3')\" onclick=\"Select('m3')\">Beratung</div> ");
	document.writeln(" <div class=\"menu\" id=\"m4\" onmouseover=\"MakeActive('m4')\" onmouseout=\"MakeInactive('m4')\" onclick=\"Select('m4')\">Produkte</div> ");
	document.writeln(" <div class=\"menu\" id=\"m5\" onmouseover=\"MakeActive('m5')\" onmouseout=\"MakeInactive('m5')\" onclick=\"Select('m5')\">Service</div> ");
	document.writeln(" <div class=\"menu\" id=\"m6\" onmouseover=\"MakeActive('m6')\" onmouseout=\"MakeInactive('m6')\" onclick=\"Select('m6')\">Referenzen</div> ");
	document.writeln(" <div class=\"menu\" id=\"m7\" onmouseover=\"MakeActive('m7')\" onmouseout=\"MakeInactive('m7')\" onclick=\"Select('m7')\">News</div> ");
	document.writeln(" <div class=\"menu\" id=\"m8\" onmouseover=\"MakeActive('m8')\" onmouseout=\"MakeInactive('m8')\" onclick=\"Select('m8')\">Einblicke</div> ");
	document.writeln(" <div class=\"menu\" id=\"m9\" onmouseover=\"MakeActive('m9')\" onmouseout=\"MakeInactive('m9')\" onclick=\"Select('m9')\">Miet-Produkte</div> ");
	document.writeln(" <br /><br />");
	document.writeln(" <div class=\"menu\" id=\"m10\" onmouseover=\"MakeActive('m10')\" onmouseout=\"MakeInactive('m10')\" onclick=\"Select('m10')\">Links</div> ");
	document.writeln(" <div class=\"menu\" id=\"m12\" onmouseover=\"MakeActive('m12')\" onmouseout=\"MakeInactive('m12')\" onclick=\"Select('m12')\">Newsletter</div> ");
	document.writeln(" <div class=\"menu\" id=\"m11\" onmouseover=\"MakeActive('m11')\" onmouseout=\"MakeInactive('m11')\" onclick=\"Select('m11')\">Kunden Login</div> ");
	}
	
function MakeActive(Item)
	{
	var Stext = "";
	if (ActiveMenu == Item) return true;
	document.getElementById(Item).style.backgroundImage = "url('../common/button_a.png')";
	Stext="http://www.creative-inflatable.ch/" ;
	switch(Item) {
		case "m1": Stext = Stext + Link[1];break;
		case "m2": Stext = Stext + Link[2];break;
		case "m3": Stext = Stext + Link[3];break;
		case "m4": Stext = Stext + Link[4];break;
		case "m5": Stext = Stext + Link[5];break;
		case "m6": Stext = Stext + Link[6];break;
		case "m7": Stext = Stext + Link[7];break;
		case "m8": Stext = Stext + Link[8];break;
		case "m9": Stext = Stext + Link[9];break;
		case "m10": Stext = Stext + Link[10];break;
		case "m11": Stext = Stext + Link[11];break;
		case "m12": Stext = Stext + Link[12];break;
		}
	status=Stext;
	return true;
	}

		
function MakeInactive(Item)
	{
	if (ActiveMenu == Item) return true;
	document.getElementById(Item).style.backgroundImage = "url('../common/button_n.png')";
	return true;
	}
	

function Select(Item)
	{
	if (ActiveMenu == Item) return true; 
	switch(Item) {
		case "m1": self.location.href = Link[1];break;
		case "m2": self.location.href = Link[2];break;
		case "m3": self.location.href = Link[3];break;
		case "m4": self.location.href = Link[4];break;
		case "m5": self.location.href = Link[5];break;
		case "m6": self.location.href = Link[6];break;
		case "m7": self.location.href = Link[7];break;
		case "m8": self.location.href = Link[8];break;
		case "m9": self.location.href = Link[9];break;
		case "m10": self.location.href = Link[10];break;
		case "m11": self.location.href = Link[11];break;
		case "m12": self.location.href = Link[12];break;
		}
	}


function MarkMenu(Item)
	{
	document.getElementById(Item).style.left = "30px";
	document.getElementById(Item).style.backgroundImage = "url('../common/button_a.png')";
	document.getElementById(Item).style.cursor = "arrow";
	ActiveMenu = Item;
	}

