

/* EMailProtection.js */


if (document.all) {
	window.attachEvent('onload', new Function('var e = new TEditorElementLink(document,null,\'E-Mail-Link mit SPAM-Schutz\');e.unprotectDocument();'));
}
else {
	window.addEventListener('load', new Function('var e = new TEditorElementLink(document,null,\'E-Mail-Link mit SPAM-Schutz\');e.unprotectDocument();'), false);
}

//possible values for protection property of TEditorElementLink
var eelProtectionHref = 1;
var eelProtectionText = 2;
var eelProtectionTitle = 4;

function TEditorElementLink(document, currentObject, textProtected) //todo, mozilla compatibility
{
	//private
	var self = this;
	var _document = document;
	var _textProtected = textProtected; // this could be problematic because detection depends on this text and text is not the same for all languages

	function addEvent(object, eventName, handler, fireImmediatelly) {
		var ver = getInternetExplorerVersion();

		if ((document.all) && (ver <= 8.0))
		{
			object.attachEvent('on' + eventName, handler);

			if (fireImmediatelly) {
				object.fireEvent('on' + eventName);
			}
		}
		else {
			//mozilla style
			object.addEventListener(eventName, handler, false);

			if (fireImmediatelly) {
				var e = document.createEvent('MouseEvents');
				e.initMouseEvent(eventName, true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
				object.dispatchEvent(e);
			}
		}
	}


	//public
	this.protection = 0;
	this.href = '';
	this.subject = '';
	this.address = '';
	this.title = '';
	this.text = '';
	this.target = '';
	this.object = currentObject;
	this.valid = false;
	this.version = '0.2';
	this.enclosingOtherElement = false;

	this.unprotectDocument = function() {
		var c = 0;
		var eList = _document.getElementsByTagName('a');

		while (c <= eList.length - 1) {
			e = eList[c];

			var d = new TEditorElementLink(_document, e, _textProtected);

			if (d.valid && !d.enclosingOtherElement) {
				if (_document.all) { e.innerText = d.text; } else { e.textContent = d.text; }
				e.onmouseout = null;
			}

			c++;
		}
	}

	this.hasProtection = function(eelProtectionValue) {
		return ((this.protection & eelProtectionValue) == eelProtectionValue);
	}

	this.create = function() {
		if (this.object) {
			this.valid = (this.object.tagName ? this.object.tagName.toLowerCase() == 'a' : false);

			if (this.valid) {
				this.enclosingOtherElement = false;

				var c = 0;
				while (c <= this.object.childNodes.length - 1) {
					this.enclosingOtherElement = this.enclosingOtherElement || (this.object.childNodes[c].tagName ? true : false);
					c++;
				}

				this.text = (document.all ? this.object.innerText : this.object.textContent);
				this.href = this.object.href;
				this.title = this.object.title;
				this.target = this.object.target;

				this.protection += (this.href.toLowerCase().indexOf('javascript://sendmail') >= 0 ? eelProtectionHref : 0);
				this.protection += (this.text == _textProtected ? eelProtectionText : 0);
				this.protection += (this.object.onmouseover ? (('' + this.object.onmouseover).toLowerCase().indexOf('this.title ') >= 0 ? eelProtectionTitle : 0) : 0);

				editorElement_temporaryLink = _document.createElement('a'); //we dont use "var" here because it should be a global variable so that event handler can access it
				editorElement_temporaryLink.href = this.object.href;
				editorElement_temporaryLink.title = this.object.title;
				editorElement_temporaryLink.innerText = this.object.innerText;

				if (this.hasProtection(eelProtectionHref) || this.hasProtection(eelProtectionText) || this.hasProtection(eelProtectionTitle)) {
					var onmouseoverHandler = this.object.attributes.getNamedItem('onmouseover');
					if (onmouseoverHandler) {
						addEvent(editorElement_temporaryLink, 'mouseover', new Function(onmouseoverHandler.value.replace(/this./gi, 'editorElement_temporaryLink.')), true);

						this.title = editorElement_temporaryLink.title;
						this.text = (document.all ? editorElement_temporaryLink.innerText : editorElement_temporaryLink.textContent);
						this.href = editorElement_temporaryLink.href;
					}
				}

				i = this.href.toLowerCase().indexOf('mailto:');
				if (i >= 0) {
					s = this.href.substr(i + 7, this.href.length);

					i = s.toLowerCase().indexOf('?subject=');
					if (i >= 0) {
						this.address = s.substr(0, i);
						this.subject = s.substr(i + 9, s.length);
					}
					else {
						this.address = s;
						this.subject = '';
					}
				}
			}
		}
	}

	this.assignTo = function(object, surrounding) {
		object.target = this.target;

		if (this.hasProtection(eelProtectionTitle)) {
			object.attributes.removeNamedItem('title');
		}
		else {
			object.title = this.title;
		}

		var text_initialvalue = (this.hasProtection(eelProtectionText) ? _textProtected : this.text);

		if (!surrounding) {
			object.innerText = text_initialvalue;
			//.innerText = ...replace(/#/g,String.fromCharCode(38)+'#'); //this dont work because ie converts & always to &amp; due to html standard, http://www.astro.washington.edu/owen/ROFM_CGI/Documentation/SpecialChars.html
		}

		if (this.hasProtection(eelProtectionHref) || this.hasProtection(eelProtectionText) || this.hasProtection(eelProtectionTitle)) {
			var onmouseover = _document.createAttribute('onmouseover');
			onmouseover.value = "function c(a) { return String.fromCharCode(a) }; ";

			if (this.hasProtection(eelProtectionHref)) {
				if (!this.hasProtection(eelProtectionText)) {
					onmouseover.value += "s = (document.all?this.innerText:this.textContent); ";
				}

				var href_encoded = "";

				for (var i = 0; i < this.href.length; i++) {
					href_encoded = href_encoded + '#' + this.href.charCodeAt(i) + ';';
				}

				onmouseover.value += "this.href=''" + href_encoded.replace(/#/g, '+c(').replace(/;/g, ')') + "; ";

				if (!this.hasProtection(eelProtectionText) && !surrounding) {
					onmouseover.value += "if (document.all) { this.innerText = s } else { this.textContent = s }; ";
				}

				object.href = "javascript://sendmail;";
			}

			if (this.hasProtection(eelProtectionText) && !surrounding) {
				var text_encoded = "";

				for (var i = 0; i < this.text.length; i++) {
					text_encoded = text_encoded + '#' + this.text.charCodeAt(i) + ';';
				}

				onmouseover.value += "s = ''" + text_encoded.replace(/#/g, '+c(').replace(/;/g, ')') + "; if (document.all) { this.innerText = s; } else { this.textContent = s; };";
			}

			if (this.hasProtection(eelProtectionTitle)) {
				var title_encoded = "";

				for (var i = 0; i < this.title.length; i++) {
					title_encoded = title_encoded + '#' + this.title.charCodeAt(i) + ';';
				}

				onmouseover.value += "this.title = ''" + title_encoded.replace(/#/g, '+c(').replace(/;/g, ')') + ";";
			}

			object.attributes.setNamedItem(onmouseover);

			if (this.hasProtection(eelProtectionText) && !surrounding) {
				var onmouseout = _document.createAttribute('onmouseout');
				onmouseout.value = "s = '" + text_initialvalue + "'; if (document.all) { this.innerText = s; } else { this.textContent = s; }";
				object.attributes.setNamedItem(onmouseout);
			}
			else {
				object.attributes.removeNamedItem('onmouseout');
			}
		}
		else {
			object.attributes.removeNamedItem('onmouseover');
			object.attributes.removeNamedItem('onmouseout');
		}
	}

	self.create();
}

function getInternetExplorerVersion() {
	var rv = -1;
	if (navigator.appName == 'Microsoft Internet Explorer') {
		var ua = navigator.userAgent;
		var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})");
		if (re.exec(ua) != null)
			rv = parseFloat(RegExp.$1);
	}
	return rv;
}

/* Function.js */

if(top.frames.length > 0)
{
    top.location.href = self.location;
}

function open_internerlink_nw(url, width, height) 
{
	desc = '';
	feature = 'width=' + width + 'px,height=' + height + 'px,location=yes,scrollbars=auto'
	window.open(url,desc,feature,'');
}

function doSearch(searchurl, searchtext, extended, color, material, site) {
	var newurl;

	newurl = searchurl + '?q=' + searchtext

	if (searchtext == '') {
		newurl += '&extended=1'
	}
	else {
		newurl += '&extended=' + extended

		if (color != '') {
			newurl += '&color=' + color
		}
		if (material != '') {
			newurl += '&material=' + material
		}
	}
	top.location.href = newurl + site
}

function FormatRichTextBox(Name) {

		var rteCp = new TRTEConstructorParameter();
		rteCp.siteURL = '';
		rteCp.adminURL = '';
		rteCp.documentContainer = window;
		rteCp.documentForm = document.forms[0];
		rteCp.editorPlaceHolderID = Name;
		rteCp.editorWidth = 420;
		rteCp.editorHeight = 200;
		rteCp.cssstyle = '';
		rteCp.urlImage = '/image/TEditor/image';
		rteCp.urlCss = '/image/TEditor/css';
		rteCp.urlFilterEnabled = (1 == 1);
		rteCp.textBold = 'Fett';
		rteCp.textItalic = 'Kursiv';
		rteCp.textUnderline = 'Unterstrichen';
		rteCp.textLeftAlignment = 'Linksbündig';
		rteCp.textCenteredAlignment = 'Zentriert';
		rteCp.textRightAlignment = 'Rechtsbündig';
		rteCp.textUnorderedList = 'Ungeordnete Liste';
		rteCp.textOrderedList = 'Geordnete Liste';
		rteCp.textOutdent = 'Einrückung aufheben';
		rteCp.textIndent = 'Einrücken';
		rteCp.textAssignTextColor = 'Textfarbe festlegen';
		rteCp.textAssignBackgroundColor = 'Hintergrundfarbe festlegen';
		rteCp.textRemoveFormat = 'Formatierungen entfernen';
		//	rteCp.textInsertLink = 'Link einfügen oder bearbeiten';
		//	rteCp.textInsertImage = 'Bild einfügen oder bearbeiten';
		//	rteCp.textToggleCode = 'Zwischen HTML Code und Designer wechseln';
		rteCp.textTextColor = 'Textfarbe';
		rteCp.textBackgroundColor = 'Hintergrundfarbe';

		var rte_RichTextBox1 = new TRTEControl(rteCp);

		rte_RichTextBox1.showLinkConfigurationDialog = function (sender, link, modify, processText) {
			href = prompt('Bitte geben Sie die URL des Links an.', 'http://');
			if (href) {
				text = prompt('Bitte geben Sie einen Linknamen an.', 'Untitled link');
				if (text) {
					title = prompt('Bitte geben Sie eine Linkbeschreibung an oder lassen Sie das Feld leer.', '');
					sender.applyLinkConfiguration(link, modify, processText, href, text, '' + title);
				}
			}
		}
		rte_RichTextBox1.showImageConfigurationDialog = function (sender, image, modify) {
			src = prompt('Bitte geben Sie die URL des Bildes an.', 'http://');
			if (src) {
				alt = prompt('Bitte geben Sie eine Bildbeschreibung an oder lassen Sie das Feld leer.', '');
				sender.applyImageConfiguration(image, modify, src, alt);
			}
		}
		rteCp.innerHTML = '';

}

/* LayerManagement.js */

// ImageZoom - Begin

function OpenPictureLayer(divImageZoom, ImageID, ImageTagID) {
	if (document.images[ImageTagID] == '[object]' || document.images[ImageTagID] == '[object HTMLImageElement]') document.images[ImageTagID].src = "/shop/thumb/" + ImageID + "_sizeby_exact_sizewidth_640_sizeheight_640.jpg";
	d = document.getElementById(divImageZoom);
	d.style.visibility = 'visible';

	var flashvars = {};
	var params = {};
	params.menu = "false";
	params.quality = "high";
	var attributes = {};
	swfobject.embedSWF("/flash/imagezoom/ProCompImageZoom.swf?ImagePath=/ImageZoom/" + ImageID + "/", "FlashImageZoomLayer", "640px", "640px", "9.0.0", false, flashvars, params, attributes);
}

function OpenPictureLayerCMS(divImageZoom, ImageID, ImageTagID) {
	if (document.images[ImageTagID] == '[object]' || document.images[ImageTagID] == '[object HTMLImageElement]') document.images[ImageTagID].src = "/file/" + ImageID + "_sizeby_exact_sizewidth_640_sizeheight_640.jpg";
	d = document.getElementById(divImageZoom);
	d.style.visibility = 'visible';

	var flashvars = {};
	var params = {};
	params.menu = "false";
	params.quality = "high";
	var attributes = {};
	swfobject.embedSWF("/flash/imagezoom/ProCompImageZoom.swf?ImagePath=/ImageZoomCMS/" + ImageID + "/", "FlashImageZoomLayer", "640px", "640px", "9.0.0", false, flashvars, params, attributes);
}


function ClosePictureLayer(divImageZoom, FlashImageZoomLayer) {

	d = document.getElementById(divImageZoom);
	d.style.visibility = 'hidden';

	e = document.getElementById(FlashImageZoomLayer);
	e.style.visibility = 'hidden';
}

// ImageZoom - End

// Seal - Begin

var currentSealLayer = '';

function OpenSealLayer(name) {
	CloseSealLayer();
	d = document.getElementById(name);
	d.style.visibility = 'visible';
	d.style.left = '0px';
	d.style.top = '-100px';
	currentSealLayer = name;
}

function CloseSealLayer() {
	if (currentSealLayer != '') {
		d = document.getElementById(currentSealLayer);
		d.style.visibility = 'hidden';
		currentSealLayer = '';
	}
}

// Seal - End

// InfoLayerMaterial - Begin

var currentMaterialLayer = '';

function OpenMaterialLayer(name) {
	CloseMaterialLayer();
	d = document.getElementById(name);
	d.style.visibility = 'visible';
	d.style.left = '0px';
	d.style.top = '-100px';
	currentMaterialLayer = name;
}

function CloseMaterialLayer() {
	if (currentMaterialLayer != '') {
		d = document.getElementById(currentMaterialLayer);
		d.style.visibility = 'hidden';
		currentMaterialLayer = '';
	}
}

// InfoLayerMaterial - End

function OpenGiftboxLayer(pnlgiftbox) {

	d = document.getElementById(pnlgiftbox);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '0px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '0px'; //sH / 2 - oH / 2 + 'px';
}

function OpenGiftboxLayerOrder(pnlgiftbox) {

	d = document.getElementById(pnlgiftbox);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '250px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '0px'; //sH / 2 - oH / 2 + 'px';
}

function OpenBasket(pnlexternbasketlayer) {

	d = document.getElementById(pnlexternbasketlayer);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '0px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '0px'; //sH / 2 - oH / 2 + 'px';

}

function OpenInfoRegistration(pnlInfoRegistration) {

	d = document.getElementById(pnlInfoRegistration);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '400px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '150px'; //sH / 2 - oH / 2 + 'px';
}


function OpenInfoPayment(pnlInfoPayment) {

	d = document.getElementById(pnlInfoPayment);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '400px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '150px'; //sH / 2 - oH / 2 + 'px';
}

function OpenInfoLayer(name) {

	d = document.getElementById(name);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '0px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '-100px'; //sH / 2 - oH / 2 + 'px';
}

function OpenInfoShipping(pnlInfoShipping) {

	d = document.getElementById(pnlInfoShipping);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '-200px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '-100px'; //sH / 2 - oH / 2 + 'px';

}

function ShowShippingInfo() {
	__doPostBack('ctl00$ctl00$btnShowShippingInfo', '');
}

function OpenInfoDataPrivacy(pnlDataPrivacy) {

	d = document.getElementById(pnlDataPrivacy);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '0x'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '0px'; //sH / 2 - oH / 2 + 'px';

}


function OpenInfoShippingBasket(pnlInfoShipping) {

	d = document.getElementById(pnlInfoShipping);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '250px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '100px'; //sH / 2 - oH / 2 + 'px';

}

function OpenAdviceArticleLayer(pnlAdviceArticle) {

	d = document.getElementById(pnlAdviceArticle);
	d.style.visibility = 'visible';
	sW = screen.width;
	sH = screen.height;
	oW = d.offsetWidth;
	oH = d.offsetHeight;

	d.style.left = '0px'; //sW / 2 - oW / 2 + 'px';
	d.style.top = '0px'; //sH / 2 - oH / 2 + 'px';

}


function CloseExternLayer(pnlLayer) {
	d = document.getElementById(pnlLayer);
	d.style.visibility = 'hidden';
}

function changeimg(bildname, dateiname) {
	//	alert(document.images[bildname]);
	document.images[bildname].src = dateiname;
}

function swapLayers(id) {
	var cur_lyr; // holds id of currently visible layer

	if (cur_lyr) hideLayer(cur_lyr);
	showLayer(id);
	cur_lyr = id;
}

function showLayer(id) {
	var lyr = getElemRefs(id);
	if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
	var lyr = getElemRefs(id);
	if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById) ? document.getElementById(id) : (document.all) ? document.all[id] : (document.layers) ? document.layers[id] : null;
	if (el) el.css = (el.style) ? el.style : el;
	return el;
}

function OpenSearchOption(pnlLayer, imageOpen, extended) {
	iopen = document.getElementById(imageOpen);
	var ImageSRC = iopen.src;
	var Index = ImageSRC.indexOf('minus');

	d = document.getElementById(pnlLayer);

	if (extended == 1 && Index < 0) {
		d.style.visibility = 'visible';
		iopen.src = '/image/icon/icon_minus.gif'
		d.style.height = '150px';
	}
	else if (extended == 1 && Index > 0) {
		d.style.visibility = 'hidden';
		iopen.src = '/image/icon/icon_plus.gif'
		d.style.height = '5px';
	}
	else {
		if (Index > 0) {
			d.style.visibility = 'hidden';
			iopen.src = '/image/icon/icon_plus.gif'
			d.style.height = '5px';
		}
		else {
			d.style.visibility = 'visible';
			iopen.src = '/image/icon/icon_minus.gif'
			d.style.height = '150px';
		}
	}

}

function MovePicture(nameImage, NewImageURL, nameLink, NewLink) {

	document.getElementById(nameImage).src = NewImageURL;
	document.getElementById(nameLink).href = NewLink;
}

function OpenColorLink(NewLink) {
	top.location.href = NewLink;
}

function swapLayers_headmenu(id) {
	var cur_lyr; // holds id of currently visible layer
	if (cur_lyr) hideLayer_headmenu(cur_lyr);
	showLayer_headmenu(id);
	cur_lyr = id;
}

function showLayer_headmenu(id) {
	var lyr = getElemRefs(id);
	if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer_headmenu(id) {
	var lyr = getElemRefs(id);
	if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function BottomMouseOver(divBottom, ImageMC, ImageVisa, ImagePayPal, ImageKlarna, oekotex, ImageTrustedShop, ImageSSL, ImagePhone, ImageNewsletter, ImageFB, ImageTwitter, lblPayment, lblInfoTrusted, lblInfoOrder, lblPhoneNumber, lblInfoPhone, hplNewsletter, lblInfo) {
	document.getElementById(divBottom).className = 'bottonMenu_mouseover';
	document.getElementById(ImageMC).src = '/Image/Bottom/Neu/Active/Mastercard.gif';
	document.getElementById(ImageVisa).src = '/Image/Bottom/Neu/Active/Visa.gif';
	document.getElementById(ImagePayPal).src = '/Image/Bottom/Neu/Active/paypal.gif';
	document.getElementById(ImageKlarna).src = '/Image/Bottom/Neu/Active/klarna_rechnung_small.jpg';
	document.getElementById(oekotex).src = '/Image/Bottom/Neu/Active/Oeko-Tex-Logo-aktiv.gif';
	document.getElementById(ImageTrustedShop).src = '/Image/Bottom/Neu/Active/trusted.gif';
	document.getElementById(ImageSSL).src = '/Image/Bottom/Neu/Active/SSL.gif';
	document.getElementById(ImagePhone).src = '/Image/Bottom/Neu/Active/Telephone.gif';
	document.getElementById(ImageNewsletter).src = '/Image/Bottom/Neu/Active/Distel.gif';
	document.getElementById(ImageFB).src = '/Image/Bottom/Neu/Active/Facebook.gif';
	document.getElementById(ImageTwitter).src = '/Image/Bottom/Neu/Active/Twitter.gif';
	document.getElementById(lblPayment).className = 'font_menu_headline_bottom_active';
	document.getElementById(lblInfoTrusted).className = 'font_menu_headline_bottom_active';
	document.getElementById(lblInfoOrder).className = 'font_menu_headline_bottom_active';
	document.getElementById(lblPhoneNumber).className = 'font_menu_headline_bottom_phone_active';
	document.getElementById(lblInfoPhone).className = 'font_menu_headline_bottom_active';
	document.getElementById(hplNewsletter).className = 's_link_bottonMenu_newsletter_mouseover';
	document.getElementById(lblInfo).className = 'font_menu_headline_bottom_active';

}

function BottomMouseOut(divBottom, ImageMC, ImageVisa, ImagePayPal, ImageKlarna, oekotex, ImageTrustedShop, ImageSSL, ImagePhone, ImageNewsletter, ImageFB, ImageTwitter, lblPayment, lblInfoTrusted, lblInfoOrder, lblPhoneNumber, lblInfoPhone, hplNewsletter, lblInfo) {
	document.getElementById(divBottom).className = 'bottonMenu';
	document.getElementById(ImageMC).src = '/Image/Bottom/Neu/Passiv/Mastercard.gif';
	document.getElementById(ImageVisa).src = '/Image/Bottom/Neu/Passiv/Visa.gif';
	document.getElementById(ImagePayPal).src = '/Image/Bottom/Neu/Passiv/paypal.gif';
	document.getElementById(ImageKlarna).src = '/Image/Bottom/Neu/Passiv/klarna_rechnung_small.jpg';
	document.getElementById(oekotex).src = '/Image/Bottom/Neu/Passiv/Oeko-Tex-Logo-inaktiv.gif';
	document.getElementById(ImageTrustedShop).src = '/Image/Bottom/Neu/Passiv/Trusted.gif';
	document.getElementById(ImageSSL).src = '/Image/Bottom/Neu/Passiv/ssl.gif';
	document.getElementById(ImagePhone).src = '/Image/Bottom/Neu/Passiv/Telephone.gif';
	document.getElementById(ImageNewsletter).src = '/Image/Bottom/Neu/Passiv/Distel.gif';
	document.getElementById(ImageFB).src = '/Image/Bottom/Neu/Passiv/Facebook.gif';
	document.getElementById(ImageTwitter).src = '/Image/Bottom/Neu/Passiv/Twitter.gif';
	document.getElementById(lblPayment).className = 'font_menu_headline_bottom';
	document.getElementById(lblInfoTrusted).className = 'font_menu_headline_bottom';
	document.getElementById(lblInfoOrder).className = 'font_menu_headline_bottom';
	document.getElementById(lblPhoneNumber).className = 'font_menu_headline_bottom_phone';
	document.getElementById(lblInfoPhone).className = 'font_menu_headline_bottom';
	document.getElementById(hplNewsletter).className = 's_link_bottonMenu_newsletter_mouseout';
	document.getElementById(lblInfo).className = 'font_menu_headline_bottom';

} 

/* swfobject.js */

/*	SWFObject v2.2 <http://code.google.com/p/swfobject/> 
	is released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/
var swfobject=function(){var D="undefined",r="object",S="Shockwave Flash",W="ShockwaveFlash.ShockwaveFlash",q="application/x-shockwave-flash",R="SWFObjectExprInst",x="onreadystatechange",O=window,j=document,t=navigator,T=false,U=[h],o=[],N=[],I=[],l,Q,E,B,J=false,a=false,n,G,m=true,M=function(){var aa=typeof j.getElementById!=D&&typeof j.getElementsByTagName!=D&&typeof j.createElement!=D,ah=t.userAgent.toLowerCase(),Y=t.platform.toLowerCase(),ae=Y?/win/.test(Y):/win/.test(ah),ac=Y?/mac/.test(Y):/mac/.test(ah),af=/webkit/.test(ah)?parseFloat(ah.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):false,X=!+"\v1",ag=[0,0,0],ab=null;if(typeof t.plugins!=D&&typeof t.plugins[S]==r){ab=t.plugins[S].description;if(ab&&!(typeof t.mimeTypes!=D&&t.mimeTypes[q]&&!t.mimeTypes[q].enabledPlugin)){T=true;X=false;ab=ab.replace(/^.*\s+(\S+\s+\S+$)/,"$1");ag[0]=parseInt(ab.replace(/^(.*)\..*$/,"$1"),10);ag[1]=parseInt(ab.replace(/^.*\.(.*)\s.*$/,"$1"),10);ag[2]=/[a-zA-Z]/.test(ab)?parseInt(ab.replace(/^.*[a-zA-Z]+(.*)$/,"$1"),10):0}}else{if(typeof O.ActiveXObject!=D){try{var ad=new ActiveXObject(W);if(ad){ab=ad.GetVariable("$version");if(ab){X=true;ab=ab.split(" ")[1].split(",");ag=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}}catch(Z){}}}return{w3:aa,pv:ag,wk:af,ie:X,win:ae,mac:ac}}(),k=function(){if(!M.w3){return}if((typeof j.readyState!=D&&j.readyState=="complete")||(typeof j.readyState==D&&(j.getElementsByTagName("body")[0]||j.body))){f()}if(!J){if(typeof j.addEventListener!=D){j.addEventListener("DOMContentLoaded",f,false)}if(M.ie&&M.win){j.attachEvent(x,function(){if(j.readyState=="complete"){j.detachEvent(x,arguments.callee);f()}});if(O==top){(function(){if(J){return}try{j.documentElement.doScroll("left")}catch(X){setTimeout(arguments.callee,0);return}f()})()}}if(M.wk){(function(){if(J){return}if(!/loaded|complete/.test(j.readyState)){setTimeout(arguments.callee,0);return}f()})()}s(f)}}();function f(){if(J){return}try{var Z=j.getElementsByTagName("body")[0].appendChild(C("span"));Z.parentNode.removeChild(Z)}catch(aa){return}J=true;var X=U.length;for(var Y=0;Y<X;Y++){U[Y]()}}function K(X){if(J){X()}else{U[U.length]=X}}function s(Y){if(typeof O.addEventListener!=D){O.addEventListener("load",Y,false)}else{if(typeof j.addEventListener!=D){j.addEventListener("load",Y,false)}else{if(typeof O.attachEvent!=D){i(O,"onload",Y)}else{if(typeof O.onload=="function"){var X=O.onload;O.onload=function(){X();Y()}}else{O.onload=Y}}}}}function h(){if(T){V()}else{H()}}function V(){var X=j.getElementsByTagName("body")[0];var aa=C(r);aa.setAttribute("type",q);var Z=X.appendChild(aa);if(Z){var Y=0;(function(){if(typeof Z.GetVariable!=D){var ab=Z.GetVariable("$version");if(ab){ab=ab.split(" ")[1].split(",");M.pv=[parseInt(ab[0],10),parseInt(ab[1],10),parseInt(ab[2],10)]}}else{if(Y<10){Y++;setTimeout(arguments.callee,10);return}}X.removeChild(aa);Z=null;H()})()}else{H()}}function H(){var ag=o.length;if(ag>0){for(var af=0;af<ag;af++){var Y=o[af].id;var ab=o[af].callbackFn;var aa={success:false,id:Y};if(M.pv[0]>0){var ae=c(Y);if(ae){if(F(o[af].swfVersion)&&!(M.wk&&M.wk<312)){w(Y,true);if(ab){aa.success=true;aa.ref=z(Y);ab(aa)}}else{if(o[af].expressInstall&&A()){var ai={};ai.data=o[af].expressInstall;ai.width=ae.getAttribute("width")||"0";ai.height=ae.getAttribute("height")||"0";if(ae.getAttribute("class")){ai.styleclass=ae.getAttribute("class")}if(ae.getAttribute("align")){ai.align=ae.getAttribute("align")}var ah={};var X=ae.getElementsByTagName("param");var ac=X.length;for(var ad=0;ad<ac;ad++){if(X[ad].getAttribute("name").toLowerCase()!="movie"){ah[X[ad].getAttribute("name")]=X[ad].getAttribute("value")}}P(ai,ah,Y,ab)}else{p(ae);if(ab){ab(aa)}}}}}else{w(Y,true);if(ab){var Z=z(Y);if(Z&&typeof Z.SetVariable!=D){aa.success=true;aa.ref=Z}ab(aa)}}}}}function z(aa){var X=null;var Y=c(aa);if(Y&&Y.nodeName=="OBJECT"){if(typeof Y.SetVariable!=D){X=Y}else{var Z=Y.getElementsByTagName(r)[0];if(Z){X=Z}}}return X}function A(){return !a&&F("6.0.65")&&(M.win||M.mac)&&!(M.wk&&M.wk<312)}function P(aa,ab,X,Z){a=true;E=Z||null;B={success:false,id:X};var ae=c(X);if(ae){if(ae.nodeName=="OBJECT"){l=g(ae);Q=null}else{l=ae;Q=X}aa.id=R;if(typeof aa.width==D||(!/%$/.test(aa.width)&&parseInt(aa.width,10)<310)){aa.width="310"}if(typeof aa.height==D||(!/%$/.test(aa.height)&&parseInt(aa.height,10)<137)){aa.height="137"}j.title=j.title.slice(0,47)+" - Flash Player Installation";var ad=M.ie&&M.win?"ActiveX":"PlugIn",ac="MMredirectURL="+O.location.toString().replace(/&/g,"%26")+"&MMplayerType="+ad+"&MMdoctitle="+j.title;if(typeof ab.flashvars!=D){ab.flashvars+="&"+ac}else{ab.flashvars=ac}if(M.ie&&M.win&&ae.readyState!=4){var Y=C("div");X+="SWFObjectNew";Y.setAttribute("id",X);ae.parentNode.insertBefore(Y,ae);ae.style.display="none";(function(){if(ae.readyState==4){ae.parentNode.removeChild(ae)}else{setTimeout(arguments.callee,10)}})()}u(aa,ab,X)}}function p(Y){if(M.ie&&M.win&&Y.readyState!=4){var X=C("div");Y.parentNode.insertBefore(X,Y);X.parentNode.replaceChild(g(Y),X);Y.style.display="none";(function(){if(Y.readyState==4){Y.parentNode.removeChild(Y)}else{setTimeout(arguments.callee,10)}})()}else{Y.parentNode.replaceChild(g(Y),Y)}}function g(ab){var aa=C("div");if(M.win&&M.ie){aa.innerHTML=ab.innerHTML}else{var Y=ab.getElementsByTagName(r)[0];if(Y){var ad=Y.childNodes;if(ad){var X=ad.length;for(var Z=0;Z<X;Z++){if(!(ad[Z].nodeType==1&&ad[Z].nodeName=="PARAM")&&!(ad[Z].nodeType==8)){aa.appendChild(ad[Z].cloneNode(true))}}}}}return aa}function u(ai,ag,Y){var X,aa=c(Y);if(M.wk&&M.wk<312){return X}if(aa){if(typeof ai.id==D){ai.id=Y}if(M.ie&&M.win){var ah="";for(var ae in ai){if(ai[ae]!=Object.prototype[ae]){if(ae.toLowerCase()=="data"){ag.movie=ai[ae]}else{if(ae.toLowerCase()=="styleclass"){ah+=' class="'+ai[ae]+'"'}else{if(ae.toLowerCase()!="classid"){ah+=" "+ae+'="'+ai[ae]+'"'}}}}}var af="";for(var ad in ag){if(ag[ad]!=Object.prototype[ad]){af+='<param name="'+ad+'" value="'+ag[ad]+'" />'}}aa.outerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'+ah+">"+af+"</object>";N[N.length]=ai.id;X=c(ai.id)}else{var Z=C(r);Z.setAttribute("type",q);for(var ac in ai){if(ai[ac]!=Object.prototype[ac]){if(ac.toLowerCase()=="styleclass"){Z.setAttribute("class",ai[ac])}else{if(ac.toLowerCase()!="classid"){Z.setAttribute(ac,ai[ac])}}}}for(var ab in ag){if(ag[ab]!=Object.prototype[ab]&&ab.toLowerCase()!="movie"){e(Z,ab,ag[ab])}}aa.parentNode.replaceChild(Z,aa);X=Z}}return X}function e(Z,X,Y){var aa=C("param");aa.setAttribute("name",X);aa.setAttribute("value",Y);Z.appendChild(aa)}function y(Y){var X=c(Y);if(X&&X.nodeName=="OBJECT"){if(M.ie&&M.win){X.style.display="none";(function(){if(X.readyState==4){b(Y)}else{setTimeout(arguments.callee,10)}})()}else{X.parentNode.removeChild(X)}}}function b(Z){var Y=c(Z);if(Y){for(var X in Y){if(typeof Y[X]=="function"){Y[X]=null}}Y.parentNode.removeChild(Y)}}function c(Z){var X=null;try{X=j.getElementById(Z)}catch(Y){}return X}function C(X){return j.createElement(X)}function i(Z,X,Y){Z.attachEvent(X,Y);I[I.length]=[Z,X,Y]}function F(Z){var Y=M.pv,X=Z.split(".");X[0]=parseInt(X[0],10);X[1]=parseInt(X[1],10)||0;X[2]=parseInt(X[2],10)||0;return(Y[0]>X[0]||(Y[0]==X[0]&&Y[1]>X[1])||(Y[0]==X[0]&&Y[1]==X[1]&&Y[2]>=X[2]))?true:false}function v(ac,Y,ad,ab){if(M.ie&&M.mac){return}var aa=j.getElementsByTagName("head")[0];if(!aa){return}var X=(ad&&typeof ad=="string")?ad:"screen";if(ab){n=null;G=null}if(!n||G!=X){var Z=C("style");Z.setAttribute("type","text/css");Z.setAttribute("media",X);n=aa.appendChild(Z);if(M.ie&&M.win&&typeof j.styleSheets!=D&&j.styleSheets.length>0){n=j.styleSheets[j.styleSheets.length-1]}G=X}if(M.ie&&M.win){if(n&&typeof n.addRule==r){n.addRule(ac,Y)}}else{if(n&&typeof j.createTextNode!=D){n.appendChild(j.createTextNode(ac+" {"+Y+"}"))}}}function w(Z,X){if(!m){return}var Y=X?"visible":"hidden";if(J&&c(Z)){c(Z).style.visibility=Y}else{v("#"+Z,"visibility:"+Y)}}function L(Y){var Z=/[\\\"<>\.;]/;var X=Z.exec(Y)!=null;return X&&typeof encodeURIComponent!=D?encodeURIComponent(Y):Y}var d=function(){if(M.ie&&M.win){window.attachEvent("onunload",function(){var ac=I.length;for(var ab=0;ab<ac;ab++){I[ab][0].detachEvent(I[ab][1],I[ab][2])}var Z=N.length;for(var aa=0;aa<Z;aa++){y(N[aa])}for(var Y in M){M[Y]=null}M=null;for(var X in swfobject){swfobject[X]=null}swfobject=null})}}();return{registerObject:function(ab,X,aa,Z){if(M.w3&&ab&&X){var Y={};Y.id=ab;Y.swfVersion=X;Y.expressInstall=aa;Y.callbackFn=Z;o[o.length]=Y;w(ab,false)}else{if(Z){Z({success:false,id:ab})}}},getObjectById:function(X){if(M.w3){return z(X)}},embedSWF:function(ab,ah,ae,ag,Y,aa,Z,ad,af,ac){var X={success:false,id:ah};if(M.w3&&!(M.wk&&M.wk<312)&&ab&&ah&&ae&&ag&&Y){w(ah,false);K(function(){ae+="";ag+="";var aj={};if(af&&typeof af===r){for(var al in af){aj[al]=af[al]}}aj.data=ab;aj.width=ae;aj.height=ag;var am={};if(ad&&typeof ad===r){for(var ak in ad){am[ak]=ad[ak]}}if(Z&&typeof Z===r){for(var ai in Z){if(typeof am.flashvars!=D){am.flashvars+="&"+ai+"="+Z[ai]}else{am.flashvars=ai+"="+Z[ai]}}}if(F(Y)){var an=u(aj,am,ah);if(aj.id==ah){w(ah,true)}X.success=true;X.ref=an}else{if(aa&&A()){aj.data=aa;P(aj,am,ah,ac);return}else{w(ah,true)}}if(ac){ac(X)}})}else{if(ac){ac(X)}}},switchOffAutoHideShow:function(){m=false},ua:M,getFlashPlayerVersion:function(){return{major:M.pv[0],minor:M.pv[1],release:M.pv[2]}},hasFlashPlayerVersion:F,createSWF:function(Z,Y,X){if(M.w3){return u(Z,Y,X)}else{return undefined}},showExpressInstall:function(Z,aa,X,Y){if(M.w3&&A()){P(Z,aa,X,Y)}},removeSWF:function(X){if(M.w3){y(X)}},createCSS:function(aa,Z,Y,X){if(M.w3){v(aa,Z,Y,X)}},addDomLoadEvent:K,addLoadEvent:s,getQueryParamValue:function(aa){var Z=j.location.search||j.location.hash;if(Z){if(/\?/.test(Z)){Z=Z.split("?")[1]}if(aa==null){return L(Z)}var Y=Z.split("&");for(var X=0;X<Y.length;X++){if(Y[X].substring(0,Y[X].indexOf("="))==aa){return L(Y[X].substring((Y[X].indexOf("=")+1)))}}}return""},expressInstallCallback:function(){if(a){var X=c(R);if(X&&l){X.parentNode.replaceChild(l,X);if(Q){w(Q,true);if(M.ie&&M.win){l.style.display="block"}}if(E){E(B)}}a=false}}}}();

/* Validation.js */

function OnlyAllowedKeys(evt) {
	evt = (evt) ? evt : event;
	var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));
	if ((charCode != 246) && (charCode != 228) && (charCode != 252) && (charCode != 223) && (charCode != 214) && (charCode != 196) && (charCode != 220) && ((charCode > 31 && (charCode < 48 || charCode > 57))) && (charCode > 31 && (charCode < 65 || charCode > 90) && (charCode < 97 || charCode > 122))) {
		//alert("Enter numerals only in this field." + charCode);
		return false;
	}
	return true;
}

function OnlyNumbersAllowedKeys(evt) {
	evt = (evt) ? evt : event;
	var charCode = (evt.charCode) ? evt.charCode : ((evt.keyCode) ? evt.keyCode : ((evt.which) ? evt.which : 0));
	if (charCode > 31 && (charCode < 48 || charCode > 57)) {
		//alert("Enter numerals only in this field." + charCode);
		return false;
	}
	return true;
}

function RefreshIndividualPrice(Textbox, PriceLabel, Price, LanguageID) {
	var newprice;
	newprice = document.getElementById(Textbox).value.length * Price;
	newprice = DecimalPlaces(newprice);
	//var Komma = newprice.toString.indexOf(".");
	//alert(Komma);
	//if (Komma > 0)
	//	newprice = newprice + '0';
	//else
	//	newprice = newprice + '.00';
	newprice = newprice + ' &euro;'
	if (LanguageID == 1) newprice = newprice.replace('.', ',');
	document.getElementById(PriceLabel).innerText = newprice;
}

function DecimalPlaces(originalNumber) {
	originalNumber = originalNumber.toString();
	var decimalIndex = originalNumber.search(/\./);
	if (decimalIndex > -1) {
		var limitedToTwoDecimal = limitDecimalPlaces(originalNumber + '00');
	}
	else {
		var limitedToTwoDecimal = originalNumber + '.00';
	}

	return (limitedToTwoDecimal);
}

function limitDecimalPlaces(originalNumber) {
	originalNumber = originalNumber.toString();
	var decimalIndex = originalNumber.search(/\./);
	if (decimalIndex >= -1) {
		var limitedToTwoDecimal = originalNumber.substring(0, decimalIndex + 1 + 2);
	}
	else {
		var limitedToTwoDecimal = originalNumber;
	}
	return (limitedToTwoDecimal);
}

