// JavaScript Document

////////////////////////////////////////Bubble-Tooltips////////////////////////////////////



function enableTooltips(id, tag)

{

	var links,i,h;

	if(!document.getElementById || !document.getElementsByTagName) 

		return;



	AddCss();

	h=document.createElement("span");

	h.id="btc";

	h.setAttribute("id","btc");

	h.setAttribute("style","background-color: #5F5F5F;");

	h.style.position="absolute";

	document.getElementsByTagName("body")[0].appendChild(h);



   	if(id==null) 

	{

   		if(tag==null) 

			links=document.getElementsByTagName("a");

   		else 

			links=document.getElementsByTagName(tag);

	}

   	else 

	{

		if(tag==null) 

			links=document.getElementById(id).getElementsByTagName("a");

   		else    

			links=document.getElementById(id).getElementsByTagName(tag);

	}



	for(i=0;i<links.length;i++)

	{		

    	Prepare(links[i]);

    }

}







function Prepare(el)

{

	var p = el.parentNode;

	var attr = p.getAttribute("class");

	if (attr != null)

	{

		if (attr.indexOf("level1") != -1 || attr.indexOf("level2") != -1 || attr.indexOf("level3") != -1 || attr.indexOf("level4") != -1)

			return;

	}



	var tooltip,t,b,s,l;

	t=el.getAttribute("title");

	if(t==null || t.length==0) 

		return;



	el.removeAttribute("title");

	tooltip=CreateEl("span","tooltip");

	s=CreateEl("span","top");



	var oDiv=document.createElement("DIV");

	s.appendChild(oDiv);

	oDiv.innerHTML = t;

	tooltip.appendChild(s);

	b=CreateEl("b","bottom");



	tooltip.appendChild(b);

	setOpacity(tooltip);

	el.tooltip=tooltip;

	el.onmouseover=showTooltip;

	el.onmouseout=hideTooltip;

	el.onmousemove=Locate;

}



function showTooltip(e)

{

	document.getElementById("btc").appendChild(this.tooltip);

	Locate(e);

}



/*function hideTooltip(e)



{



	var d=document.getElementById("btc");



	if(d.childNodes.length>0) 



		d.removeChild(d.firstChild);



}*/



function setOpacity(el)

{



}



function CreateEl(t,c)

{

	var x=document.createElement(t);

	x.className=c;

	x.style.display="block";

	x.style.backgroundColor="#5F5F5F";

	x.style.zIndex="99999";



	return(x);

}



function AddCss()

{

	var l=CreateEl("link");

	l.setAttribute("type","text/css");

	l.setAttribute("rel","stylesheet");

	l.setAttribute("media","screen");

	document.getElementsByTagName("head")[0].appendChild(l);

}



function Locate(e)

{

	var posx=0,posy=0;

	if(e==null) 

		e=window.event;



	if(e.pageX || e.pageY)

	{

    	posx=e.pageX; posy=e.pageY;

    }

	else if(e.clientX || e.clientY)

	{

    	if(document.documentElement.scrollTop)

		{

        	posx=e.clientX+document.documentElement.scrollLeft;

	        posy=e.clientY+document.documentElement.scrollTop;

        }

    	else

		{

        	posx=e.clientX+document.body.scrollLeft;

	        posy=e.clientY+document.body.scrollTop;

        }

    }



	document.getElementById("btc").style.top=(posy)+"px";

	document.getElementById("btc").style.left=(posx+20)+"px";

}





function HeadSpecialPicChange(i)

{

	if (i > 5)

		i = 1;

		

	if (i == 1)

	{

		$('#ETC_Head_Special').attr("src", "http://www.etc-shop.de/images/head/etc_head_special-1.jpg");

		$('#ETC_Head_Special_Area').attr("href", "http://www.etc-shop.de/kueche-haushalt/kuechengeraete/wasserkocher/glas-edelstahl-wasserkocher-kabellos-bomann-wk-5005/a-81007312/");

		$('#ETC_Head_Special_Area').attr("alt", "WK 5005");

		$('#ETC_Head_Special_Area').attr("title", "WK 5005");

		window.setTimeout("HeadSpecialPicChange(2)", 7000);

	}

	else if (i == 2)

	{

		$('#ETC_Head_Special').attr("src", "http://www.etc-shop.de/images/head/etc_head_special-2.jpg");

		$('#ETC_Head_Special_Area').attr("href", "http://www.etc-shop.de/elektronik/telekommunikation/pmr-funkgeraete-set-walkie-talkie-3km-taschenlampe-united-wt1010/a-81008980/");

		$('#ETC_Head_Special_Area').attr("alt", "PMR-Funkger&auml;te-Set Walkie Talkie 3km Taschenlampe United WT1010");

		$('#ETC_Head_Special_Area').attr("title", "PMR-Funkger&auml;te-Set Walkie Talkie 3km Taschenlampe United WT1010");

		window.setTimeout("HeadSpecialPicChange(3)", 7000);

	}

	else if (i == 3)

	{

		$('#ETC_Head_Special').attr("src", "http://www.etc-shop.de/images/head/etc_head_special-3.jpg");

		$('#ETC_Head_Special_Area').attr("href", "http://www.etc-shop.de/beauty-fun/spielzeug/rc-stuntauto-car-musik-akrobatik-vorprogrammiert-united-9060/a-81008976/");

		$('#ETC_Head_Special_Area').attr("alt", "RC Stuntauto Musik Akrobatik Auto Spielzeug United Crazy Car 9060");

		$('#ETC_Head_Special_Area').attr("title", "RC Stuntauto Musik Akrobatik Auto Spielzeug United Crazy Car 9060");

		window.setTimeout("HeadSpecialPicChange(4)", 7000);

	}

	else if (i == 4)

	{

		$('#ETC_Head_Special').attr("src", "http://www.etc-shop.de/images/head/etc_head_special-4.jpg");

		$('#ETC_Head_Special_Area').attr("href", "http://www.etc-shop.de/tv-sat-dvd/dvd-surroundsysteme/surroundsystem-heimkino-subwoofer-boxen-5-1-usb-sd-denver-drs-1110/a-81008992/");

		$('#ETC_Head_Special_Area').attr("alt", "Surroundsystem Heimkino Subwoofer Boxen 5.1 USB SD Denver DRS 1110");

		$('#ETC_Head_Special_Area').attr("title", "Surroundsystem Heimkino Subwoofer Boxen 5.1 USB SD Denver DRS 1110");

		window.setTimeout("HeadSpecialPicChange(5)", 7000);

	}

	else if (i == 5)

	{

		$('#ETC_Head_Special').attr("src", "http://www.etc-shop.de/images/head/etc_head_special-5.jpg");

		$('#ETC_Head_Special_Area').attr("href", "http://www.etc-shop.de/beauty-fun/spielzeug/mini-tischkicker-tischfussball-kicker-50x30-5-cm-united-181229/a-81008986/");

		$('#ETC_Head_Special_Area').attr("alt", "Mini-Tischkicker Tischfu&szlig;ball Kicker 50x30,5 cm United 181229");

		$('#ETC_Head_Special_Area').attr("title", "Mini-Tischkicker Tischfu&szlig;ball Kicker 50x30,5 cm United 181229");

		window.setTimeout("HeadSpecialPicChange(1)", 7000);

	}

}

/*



function SetDivPosToMouse(event) 

{

	var xpos = 0;

	var ypos = 0;

	

    xpos = (event.x || event.layerX)-20;

    ypos = (event.y || event.layerY);



    document.getElementById('ETC_InfoText').style.top = ypos+"px";

    document.getElementById('ETC_InfoText').style.left = xpos + "px";

}

*/

jQuery(document).ready(function(){

/*

	// inhalt von "data.txt" einlesen/laden

	// inhalt der datei steht dann in "msg"

	var begriffe = "bit;3d;AC97;am_fm;auflösung;aux;avi;bandpass;bar;bass-reflex;bus;byte;cat5_cat6;cd;cinch;codec;cpu;dab;db;dect;directx;divx;quadband;dvb;dvd;epg;equalizer;ethernet;fat32/ntfs;full-hd;gbit_mbit;gps;hdmi;hd-ready;he;high pass filter;id3-tag;ir;karaoke;klinke;lan;lcd_tft;led;lithium ionen;lnb;low pass filter;lux;mb_gb_tb;mhz_ghz;midi;mp3;mpeg;mw;nimh;ntsc;nullmodem;ohm;osd;pal;patchkabel;pci;pixel;pll;ps2-anschluss;rgb;rj;rms;scart;sd;simlock;subd;subwoofer;touchscreen;trafo;ukw;usb;vcd_svcd;vga;vo-ip;wep;wlan;wpa;xlr;ypbpr;s-video;zoll;multiangle";

	var text = $("#ETC_Page_Body_Content_Article_ArticleDescription").html();		

	// den inhalt/rückgabewert nach zeilenumbrüchen aufteilen

	// und in ein array ablegen

	var WikiArray = begriffe.split(";");



	// array durchlaufen

	var used = "";

	var newText = "";

	for(var i=0;i<WikiArray.length;i++)

	{

		newText = "<span class=\"wiki-word\" onMouseOver=\"SetDivPosToMouse(event);\">"+WikiArray[i]+"</span>";

		text    = text.replace(new RegExp(" "+WikiArray[i]+" ",'gi'), " "+newText+" ");

		text    = text.replace(new RegExp(" "+WikiArray[i]+"\n",'gi'), " "+newText+"\n");

		text    = text.replace(new RegExp(" "+WikiArray[i]+"<br>",'gi'), " "+newText+"<br>");

		text    = text.replace(new RegExp("/"+WikiArray[i]+"/",'gi'), "/"+newText+"/");

		text    = text.replace(new RegExp(WikiArray[i]+"/",'gi'), newText+"/");

		text    = text.replace(new RegExp(WikiArray[i]+"-",'gi'), newText+"-");

		text    = text.replace(new RegExp("-"+WikiArray[i],'gi'), "-"+newText);

	}



	$("div#ETC_Page_Body_Content_Article_ArticleDescription").html(text);

	



	$('.wiki-word').hover(function()

	{

		var wikiword = $(this).html();

		

		if (wikiword == "aux")

			wikiword += "-anschluss";

		

		$("#ETC_InfoText").css('display', 'block');

		$("#ETC_InfoText").html("<iframe id=\"wikilink\" name=\"wikilink\" src=\"http://s141963554.online.de/wiki/" + wikiword + ".html\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border: 1px solid #000; background-image: url(http://www.etc-shop.de/images/etc_navigation_submenu_back.png); color: #FFF; padding: 6px;\"><p></p></iframe>");

//		$("#ETC_InfoText").html("<iframe id=\"wikilink\" name=\"wikilink\" src=\"http://www.etc-shop.de/content/wiki/" + wikiword + ".html\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\" style=\"border: 1px solid #000; background-image: url(http://www.etc-shop.de/images/etc_navigation_submenu_back.png); color: #FFF; padding: 6px;\"><p></p></iframe>");

		

		var docHeight = getElementById('wikilink').document.height || getElementById('wikilink').document.body.scrollHeight;

		getElementById('wikilink').style.height = docHeight + 'px';

		getElementById('ETC_InfoText').style.height = docHeight + 'px';

	//	document.getElementById('wikilink').document.body.style.fontFamily = "Tahoma, Geneva, sans-serif";

	//	document.getElementById('wikilink').document.body.style.color = "#FFF";

	//	$("#ETC_InfoText").css("height", $(this).document.body.scrollHeight+"px");

	//	$(this).css("height", docHeight);

		

	});

	

	$('.wiki-word').mouseout(function()

	{

		$("#ETC_InfoText").css('display', 'none');

	});

		*/						

	// move the share this widget with the window

	if($('#PlentyWebBasketTotalsContainer').length > 0) 

	{

		var $widget3 = $("#PlentyWebBasketCouponContainer");		

		var $widget2 = $("#PlentyWebBasketFooterContainer");

		var $widget = $("#PlentyWebBasketTotalsContainer");

		var $window = $(window);

		var $offset = $widget.offset();

		var $initialMargin = $widget.css('marginTop');

	

		$window.scroll(function() 

		{

			if ($window.scrollTop() > $offset.top)

			{

				if ($window.scrollTop() < $(document).height()-1150)

				{

					$widget.stop().animate({

						marginTop: $window.scrollTop() - $offset.top + 150

					});



					$widget2.stop().animate({

						marginTop: $window.scrollTop() - $offset.top + 150

					});	

					

					$widget3.stop().animate({

						marginTop: $window.scrollTop() - $offset.top + 150

					});				

				}

			} 

			else 

			{

				$widget.stop().animate({

					marginTop: $initialMargin

				});

				

				$widget2.stop().animate({

					marginTop: $initialMargin

				});

				

				$widget3.stop().animate({

					marginTop: $initialMargin

				});

			}

		});

	} 

	

	

	

	var pathSWFFile = "http://www.etc-shop.de/artikelbilder/";

	var pathSWFFileZusatz = '/final360/';

	var SWFFilename = "feuerball3D.swf";var hideMinibasket;



	/*

	var objLightboxImage; 

	var objLightboxSWF = document.createElement("object"); 

	objLightboxSWF.setAttribute('classid','clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'); 

	objLightboxSWF.setAttribute('id','swfAnimation'); 		

	objLightboxSWF.setAttribute('width','700'); 

	objLightboxSWF.setAttribute('height','700'); 

	objLightboxSWF.setAttribute('style', 'display:none;');

	document.getElementById("showarea").appendChild(objLightboxSWF);



	var objLightboxSWFFirstParam = document.createElement("param"); 

	objLightboxSWFFirstParam.setAttribute('name','movie'); 

	objLightboxSWFFirstParam.setAttribute('id','swfparam1'); 

	objLightboxSWFFirstParam.setAttribute('value','feuerball3D.swf'); 

	objLightboxSWF.appendChild(objLightboxSWFFirstParam);	



	var objLightboxSWFSecondParam = document.createElement("param"); 

	objLightboxSWFSecondParam.setAttribute('name','allowFullScreen'); 

	objLightboxSWFSecondParam.setAttribute('value','true'); 

	objLightboxSWF.appendChild(objLightboxSWFSecondParam);	

	

	var objLightboxSWFEmbed = document.createElement("embed"); 

	objLightboxSWFEmbed.setAttribute('id','swfembed'); 

	objLightboxSWFEmbed.setAttribute('src','feuerball3D.swf'); 

	objLightboxSWFEmbed.setAttribute('width','700'); 

	objLightboxSWFEmbed.setAttribute('height','700'); 

	objLightboxSWFEmbed.setAttribute('allowFullScreen','true'); 

	objLightboxSWF.appendChild(objLightboxSWFEmbed);

	*/



	var ImgKatAudio = 'url(http://www.etc-shop.de/images/etc_head_background_audio.jpg)';

	var ImgKatBeauty = 'url(http://www.etc-shop.de/images/etc_head_background_beauty.jpg)';

	var ImgKatGarten = 'url(http://www.etc-shop.de/images/etc_head_background_garten.jpg)';

	var ImgKatLampen = 'url(http://www.etc-shop.de/images/etc_head_background_lampe.jpg)';

	var ImgKatTV = 'url(http://www.etc-shop.de/images/etc_head_background_tv.jpg)';

	var ImgKatKueche = 'url(http://www.etc-shop.de/images/etc_head_background_kueche.jpg)';

	var ImgKatElektro = 'url(http://www.etc-shop.de/images/etc_head_background_elekt.jpg)';

	var ImgKatAuto = 'url(http://www.etc-shop.de/images/etc_head_background_auto.jpg)';

	var ImgKatDJ = 'url(http://www.etc-shop.de/images/etc_head_background_dj.jpg)';

	var ImgKatStart = 'url(http://www.etc-shop.de/images/etc_head_background_start.jpg)';



//    Precaching();

//	enableTooltips(null,'a');



	var timeout;	

	var aktBackground;

	var aktKat = $('input[name="c1"]').val();



	if (aktKat == '1867')

		aktBackground = ImgKatAudio;

	else if (aktKat == '1869')

		aktBackground = ImgKatAuto;

	else if (aktKat == '1874')	

		aktBackground = ImgKatBeauty;

	else if (aktKat == '1868')

		aktBackground = ImgKatDJ;

	else if (aktKat == '1873')

		aktBackground = ImgKatElektro;

	else if (aktKat == '1875')

		aktBackground = ImgKatGarten;

	else if (aktKat == '1871')

		aktBackground = ImgKatKueche;

	else if (aktKat == '1872')

		aktBackground = ImgKatLampen;

	else if (aktKat == '1870')

		aktBackground = ImgKatTV

	else

		aktBackground = ImgKatStart;

/*

	$(window).keyup(function() 

	{

		var input = $(this).attr('id');

		$('PlentyWebInvoiceDetailsStreet').val($('PlentyWebShippingDetailsStreet').val());

		$('[name*="FirstName"]').val($('[name*="FirstName"]').val());

		$('[name*="LastName"]').val($('[name*="FirstName"]').val());

		$('[name*="HouseNo"]').val($('[name*="FirstName"]').val());

		$('[name*="ZIPCode"]').val($('[name*="FirstName"]').val());

		$('[name*="City"]').val($('[name*="FirstName"]').val());

		$('[name*="Country"]').val($('[name*="FirstName"]').val());

		$('[name*="E-Mail"]').val($('[name*="FirstName"]').val());

		$('[name*="Telephone"]').val($('[name*="FirstName"]').val());

		$('[name*="Mobilenumber"]').val($('[name*="FirstName"]').val());

		$('[name*="Birthday"]').val($('[name*="FirstName"]').val());

		$('[name*="Birthmonth"]').val($('[name*="FirstName"]').val());

		$('[name*="Birthyear"]').val($('[name*="FirstName"]').val());

	});*/

			   

	$('#ETC_Page_Head_Back').css('background-image', aktBackground);



	$('#ETC_Page_Head_Navigation_Menu > ul.menu_level1 > li.level1').mouseenter(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

			if (!$(this).hasClass('hover'))

				$(this).addClass("hover");	

			

			$('#MenuBackground').show();	

			

			var rightJustify = false;

	

			var level1HoverLI = null;

			var level1UL = null;

			var level1Height = 0;

			var level2HoverLI = null;

			var level2UL = null;

			var level2Height = 0;

			var level3HoverLI = null;

			var level3UL = null;

			var level3Height = 0;

			var level4HoverLI = null;

			var level4UL = null;

			var level4Height = 0;

			var iBiggestUL = 0; //gibt an, welches Level die größte Höhe hat. Daran wird entschieden, welche Höhe massgeblich für ALLE Level sein wird.

	

			var mp = $('ul:first',this);

			var level = "";			

	

			if ($(this).hasClass('level1'))

			{

				level = "level1";

	

				level1UL = $(this).parents('ul:first');

				level2UL = $('ul:first', $(this));

	

				if (level2UL.prev().attr("title") == "Haus & Garten" || level2UL.prev().attr("title") == "Beauty & Fun" || level2UL.prev().attr("title") == "Elektronik" || level2UL.prev().attr("title") == "Lampen & Licht")

					rightJustify = true;

				else

					rightJustify = false;

	

				level1HoverLI = $(this);

				level2Height = 24*level2UL.children().size();

	

				level2UL.show();

				

				$('#MenuBackground').show();

				$('#MenuBackground').height(level2Height);

				$('#MenuBackground').width(213);

				$('#MenuBackground').css("top", level1HoverLI.offset().top+30+"px");

	

				var left = level1HoverLI.offset().left;

				if (rightJustify)

					left = left-106;

	

				$('#MenuBackground').css("left", left+"px");

				

				if (rightJustify)

				{			

					mp.css("border-left", "0px solid #737373");

					if (level == "level1")

					{

						mp.css("margin-left","-106px");

					}

					else if (level == "level2")

					{

						mp.css("margin-left","-426px");

					}

					else if (level == "level3")			

					{

						mp.css("margin-left","-423px");

					}

				}					

			}

		}

	});

	

	$('#ETC_Page_Head_Navigation_Menu > ul.menu_level1 > li.level1 > ul.menu_level2 > li.level2').mouseenter(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

			if (!$(this).hasClass('hover'))

				$(this).addClass("hover");	

				

			$('#MenuBackground').show();	

				

			var rightJustify = false;

		

			var level1HoverLI = null;

			var level1UL = null;

			var level1Height = 0;

			var level2HoverLI = null;

			var level2UL = null;

			var level2Height = 0;

			var level3HoverLI = null;

			var level3UL = null;

			var level3Height = 0;

			var level4HoverLI = null;

			var level4UL = null;

			var level4Height = 0;

			var iBiggestUL = 0; //gibt an, welches Level die größte Höhe hat. Daran wird entschieden, welche Höhe massgeblich für ALLE Level sein wird.

		

			var mp = $('ul:first',this);

			var level = "";	

			if ($(this).hasClass('level2'))

			{

				level = "level2";

		

				level2UL = $(this).parents('ul:first');

				level1HoverLI = level2UL.parents('li:first');

		

				if (level2UL.prev().attr("title") == "Haus & Garten" || level2UL.prev().attr("title") == "Beauty & Fun" || level2UL.prev().attr("title") == "Elektronik" || level2UL.prev().attr("title") == "Lampen & Licht")

					rightJustify = true;

				else

					rightJustify = false;			

		

				if ($(this).has('ul').length > 0)

				{

					level3UL = $('ul:first', $(this));

					level2HoverLI = $(this);

		

					level2Height = 24*level2UL.children().size();

					level3Height = 24*level3UL.children().size();

		

					level3UL.css("height", level3Height+"px");

					var top = $(this).position().top;

					level3UL.css("padding-top", top+"px");

						

					//level3UL.stop().fadeTo('fast', 1).show();	

					level3UL.show();

		

					if (level2Height > level3Height+top)

					{

						$('#MenuBackground').show();

						$('#MenuBackground').height(level2Height);

						$('#MenuBackground').width(427);					

					}

					else

					{

						$('#MenuBackground').show();

						$('#MenuBackground').height(level3Height+top);

						$('#MenuBackground').width(427);

					}

		

					var left = level2HoverLI.offset().left-10;

					if (rightJustify)

						left = left-214;

		

					$('#MenuBackground').css("left", left+"px");				

				}

				else

				{

					$('#MenuBackground').show();

					$('#MenuBackground').height(24*level2UL.children().size());

					$('#MenuBackground').width(213);

		

					var left = level1HoverLI.offset().left;

					if (rightJustify)

						left = left-106;

		

					$('#MenuBackground').css("left", left+"px");

				}

				

				if (rightJustify)

				{			

					mp.css("border-left", "0px solid #737373");

					if (level == "level1")

					{

						mp.css("margin-left","-106px");

					}

					else if (level == "level2")

					{

						mp.css("margin-left","-426px");

					}

					else if (level == "level3")			

					{

						mp.css("margin-left","-428px");

					}

				}					

			}

		}

	});

	

	$('#ETC_Page_Head_Navigation_Menu > ul.menu_level1 > li.level1 > ul.menu_level2 > li.level2 > ul.menu_level3 > li.level3').mouseenter(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

			if (!$(this).hasClass('hover'))

				$(this).addClass("hover");	

				

			$('#MenuBackground').show();	

				

			var rightJustify = false;

		

			var level1HoverLI = null;

			var level1UL = null;

			var level1Height = 0;

			var level2HoverLI = null;

			var level2UL = null;

			var level2Height = 0;

			var level3HoverLI = null;

			var level3UL = null;

			var level3Height = 0;

			var level4HoverLI = null;

			var level4UL = null;

			var level4Height = 0;

			var iBiggestUL = 0; //gibt an, welches Level die größte Höhe hat. Daran wird entschieden, welche Höhe massgeblich für ALLE Level sein wird.

		

			var mp = $('ul:first',this);

			var level = "";	

			if ($(this).hasClass('level3'))

			{

				level = "level3";

	

				level3UL = $(this).parents('ul:first');

				level2HoverLI = level3UL.parents('li:first');

	

				if ($(this).has('ul').length > 0)

				{

					level2UL = level3UL.parents('ul:first');

					level1UL = level2UL.parents('ul:first');

					level4UL = $('ul:first', $(this));

	

					if (level2UL.prev().attr("title") == "Haus & Garten" || level2UL.prev().attr("title") == "Beauty & Fun" || level2UL.prev().attr("title") == "Elektronik" || level2UL.prev().attr("title") == "Lampen & Licht")

						rightJustify = true;

					else

						rightJustify = false;	

	

					level3HoverLI = $(this);

	

					level2Height = (24*level2UL.children().size());

					level3Height = (24*level3UL.children().size());

					level4Height = (24*level4UL.children().size());

	

					level4UL.css("height", level4Height+"px");

	

					var top = $(this).position().top;

					level4UL.css("padding-top", top+"px");

					

					//level4UL.stop().fadeTo('fast', 1).show();		

					level4UL.show();

					

					if (level3Height > level4Height+top)

					{

						if (level2Height > level3Height)

						{

							$('#MenuBackground').show();

							$('#MenuBackground').height(level2Height);

							$('#MenuBackground').width(641);

						}

						else

						{

							$('#MenuBackground').show();

							$('#MenuBackground').height(level3Height);

							$('#MenuBackground').width(641);

						}

					}

					else

					{

						if (level2Height > level4Height+top)

						{

							$('#MenuBackground').show();

							$('#MenuBackground').height(level2Height);

							$('#MenuBackground').width(641);

						}

						else

						{

							$('#MenuBackground').show();

							$('#MenuBackground').height(level4Height+top);

							$('#MenuBackground').width(641);

						}

					}

	

					var left = level2HoverLI.offset().left;

					if (rightJustify)

						left = left-414;

	

					$('#MenuBackground').css("left", left+"px");	

				}

				else

				{

					$('#MenuBackground').show();

					$('#MenuBackground').width(427);

				}

				

				if (rightJustify)

				{			

					mp.css("border-left", "0px solid #737373");

					if (level == "level1")

					{

						mp.css("margin-left","-106px");

					}

					else if (level == "level2")

					{

						mp.css("margin-left","-426px");

					}

					else if (level == "level3")			

					{

						mp.css("margin-left","-428px");

					}

				}	

			}

		}

	});

	

	$('#ETC_Page_Head_Navigation_Menu > ul.menu_level1 > li.level1 > ul.menu_level2 > li.level2 > ul.menu_level3 > li.level3 > ul.menu_level4 > li.level4').mouseenter(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

			if (!$(this).hasClass('hover'))

				$(this).addClass("hover");	

				

			$('#MenuBackground').show();	

				

			var rightJustify = false;

		

			var level1HoverLI = null;

			var level1UL = null;

			var level1Height = 0;

			var level2HoverLI = null;

			var level2UL = null;

			var level2Height = 0;

			var level3HoverLI = null;

			var level3UL = null;

			var level3Height = 0;

			var level4HoverLI = null;

			var level4UL = null;

			var level4Height = 0;

			var iBiggestUL = 0; //gibt an, welches Level die größte Höhe hat. Daran wird entschieden, welche Höhe massgeblich für ALLE Level sein wird.

		

			var mp = $('ul:first',this);

			var level = "";	

				

			if ($(this).attr('class') == "level4 hover")

			{

				level = "level4";

	

				$('#MenuBackground').show();

				$('#MenuBackground').width(641);		

			}

			else

			{

				$('#MenuBackground').hide();

				$('#MenuBackground').width(213);

				

			}

	

			if (rightJustify)

			{			

				mp.css("border-left", "0px solid #737373");

				if (level == "level1")

				{

					mp.css("margin-left","-106px");

				}

				else if (level == "level2")

				{

					mp.css("margin-left","-426px");

				}

				else if (level == "level3")			

				{

					mp.css("margin-left","-428px");

				}

			}	

			

			$('#MenuBackground').show();

/*			$('ul:first',this).stop().fadeTo('fast', 1).show();				*/

		}	



	});

	

	$('.level1').mouseleave(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

   		    $(this).removeClass("hover");

		    if($('.hover').length == 0)

			   $('#MenuBackground').hide();

		}

	});	

	

	$('.level2').mouseleave(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

   		    $(this).removeClass("hover");

		    if($('.hover').length == 0)

			   $('#MenuBackground').hide();

		}

	});	

	

	$('.level3').mouseleave(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

   		    $(this).removeClass("hover");

		    if($('.hover').length == 0)

			   $('#MenuBackground').hide();

		}

	});	

	

	$('.level4').mouseleave(function()

	{

		if ($.browser.msie || $.browser.safari || $.browser.webkit || $.browser.opera)

		{

   		    $(this).removeClass("hover");

		    if($('.hover').length == 0)

			   $('#MenuBackground').hide();

		}

	});		



	$('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket_Open').click(function()

	{

		hideMinibasket = false;	

		showMiniContent($('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket'));

	});



	$('#ETC_Page_Head_Navigation_SearchBasket_Basket_AmountPrice').click(function()

	{

		hideMinibasket = false;	

		showMiniContent($('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket'));

	});



	$('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket').mouseout(function()

	{

		hideMinibasket = true;

		timeout = window.setTimeout("hideMiniContent($('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket'))", 5000);

	});



	$('#ETC_Page_Head_Navigation_SearchBasket_Basket_MiniBasket').mousemove(function()

	{

		hideMinibasket = false;		

		window.clearTimeout(timeout);

	});



	/* FAQ - Ein- und Ausblendungen */

	$('.ETC_FAQ_Level1').click(function()

	{

		var nextTag = $(this).next();

		nextTag.slideToggle("fast");

	});	



	$('.ETC_FAQ_Level2').click(function()

	{

		var nextTag = $(this).next();

		nextTag.slideToggle("fast");

	});			



	/* FAQ - Ein- und Ausblendungen  ENDE */	



	$('#ETC_Page_Body_Content_Article_ArticleData_Rating_Label').click(function()

	{

		if ($('#article_rating_box').css('display') == "none")

			$('#article_rating_box').show();

		else

			$('#article_rating_box').hide();

	});



	$('#article_rating_box').click(function()

	{

		$('#article_rating_box').show();

	});

/*	$('#ETC_Page_Head_LoginData_Login').click(function()



	{



		showMiniContent($('#ETC_Page_Head_LoginData_MiniLogin'));



	});	*/



	$('.ETC_CloseButton').click(function()

	{

		var parentTag = $(this).parent();

		var prevTag = parentTag.prev();



		hideMinibasket = true;



		hideMiniContent(parentTag);

		$('#overlay').css('display', 'none');

	});



	$('.plentyErrorBox').click(function()

	{

		var parentTag = $(this).parent();

		var prevTag = parentTag.prev();		

		$(this).hide();

	});	



	$('.plentyMessageBox').click(function()

	{

		var parentTag = $(this).parent();

		$(this).hide();



		if (parentTag.context.innerHTML.indexOf("Sie haben noch keine Artikel im Warenkorb.") != -1)

			document.location.href="http://www.etc-shop.de";

	});		



	$('#ArticleQuantity_Less').click(function()

	{

		var aktQuantity = parseInt($('#ArticleQuantity').val());

		aktQuantity = aktQuantity-1;



		if (aktQuantity > 0)

			$('#ArticleQuantity').val(aktQuantity);

	});



	$('#ArticleQuantity_More').click(function()

	{

		var aktQuantity = parseInt($('#ArticleQuantity').val());

		aktQuantity = aktQuantity+1;

		$('#ArticleQuantity').val(aktQuantity);		

	});		



	$("#").click(function(e){	

		$('#lightbox').animate({width: 0,height: 0}, 250);

		window.setTimeout("DisableLightbox();",250);	

	});



	$(".middlepic").click(function(e){

		$('#overlay').css("display", "block");

		$('#lightbox').css("display", "block");	

		$("#picscroll").css("display", "block");	

		$("#imgklein").css("display", "block");	

		$('#swfAnimation').css('display','none');		



		$('#lightbox').css("visibility", "visible");

		$('#picscroll').css("visibility", "visible");



		$('#overlay').css("width", "0px");

		$('#overlay').css("height", "0px");

		$('#overlay').css("z-index", "999997");

		$('#lightbox').css("z-index", "999998");

		$('#showarea').css("z-index", "999999");

		$('#prevpic').css('z-index', '999999');

		$('#nextpic').css('z-index', '999999');	

		$('#picpreview').css('z-index', '999999');	

		$('.scrollpic').css('z-index', '999999');	



		var imgx = 860;

		var imgy = 770;



		$('#imgklein').css("padding-top", "10px");

		$('#imgklein').css("padding-left", "10px");		

		$('#imgklein').css("z-index", "9998");



		var lbLeft = $('.middlepic').position().left;

		var lbTop = $('.middlepic').position().top;



/*		$('#lightbox').css("left", lbLeft+"px");

		$('#lightbox').css("top", lbTop+"px");	*/



		//////////////////////Navigation ausblenden, falls nur wenige Bilder enthalten sind



		var gesWidth = 0;

		for (var i = 0; i < $(".scrollpic").length; i++)

		{

			gesWidth = gesWidth + $(".scrollpic")[i].width;

		}



		if (gesWidth < 420)

		{

			$('#prevpic').css('visibility', 'hidden');

			$('#nextpic').css('visibility', 'hidden');		

		}

		else

		{

			$('#prevpic').css('visibility', 'visible');

			$('#nextpic').css('visibility', 'visible');				

		}		



		/////////////////////Lightbox öffnen



		$('#lightbox').animate({

			/*left: 500,*/

			top: 15,

			width: imgx,

			height: imgy

		  }, 250);	

		

		$('#overlay').show();



		///////////////Vorschaubilder laden//////////////////////



		// Array of images:



		var PicArray = $(".smallpic");

		var pic = "";

		var picsrc = "";

		var padding_top;

		var i = 0;

		for (i = 0; i < PicArray.length; i++)

		{

			pic = '#prevpic'+i;

			$(pic).css('display', 'block');

			picsrc = PicArray[i].src;

			

			$(pic).attr('src', picsrc);



			padding_top = 5+(85+i);

			

			$(pic).attr('padding-top', padding_top-top+'px');	

			$(pic).attr('padding-right', 35+'px');	

		}

	

		if (document.getElementById('swf').style.display == 'block')

		{

			var swfPath = $('#swfLink').attr("href");

			pic = '#swfpic';

			$(pic).css('display', 'block');

			picsrc = document.getElementById('swf').src;

			

			$(pic).attr('src', picsrc);

			$(pic).attr('rel', swfPath);			

			

			padding_top = 5+(85+i);



			$(pic).css('padding-top', padding_top-top+'px');

			$(pic).css('padding-right', 35+'px');

		}	



		///////////////////////////Bilder laden



		var src = $('.middlepic').attr("src");		

		bigsrc = src.replace("cache/mi", "i");

		loadBigImg = new Image ( );

		loadBigImg.src = bigsrc; 



		$('#imgklein').animate({opacity: 0}, 200, '',function(){

			$('#imgklein').attr('src', bigsrc);	

			$('#imgklein').animate({opacity: 1}, 200);																

		});

		window.document.getElementById('zoompic').src = loadBigImg.src;	



/*		////////////////////////////////Lightbox dynamisch zentrieren



		var docwidth = $(document).width();

		posX = ((docwidth/2) - 430);

		$('#lightbox').css('left',posX); // das erste mal positionieren*/

		$('#lightboxTop').html($('#ETC_Page_Body_Content_Article_ArticleName').html());

	});



	$(".smallpic").click(function(e){

		$('#overlay').css("display", "block");

		$('#lightbox').css("display", "block");	

		$("#picscroll").css("display", "block");	

		$("#imgklein").css("display", "block");	

		$('#swfAnimation').css('display','none');

		

		$('#lightbox').css("visibility", "visible");

		$('#picscroll').css("visibility", "visible");



		$('#overlay').css("width", "0px");

		$('#overlay').css("height", "0px");

		$('#overlay').css("z-index", "999997");



		$('#lightbox').css("z-index", "999998");



		$('#showarea').css("z-index", "999999");



		$('#prevpic').css('z-index', '999999');

		$('#nextpic').css('z-index', '999999');	

		$('#picpreview').css('z-index', '999999');	

		$('.scrollpic').css('z-index', '999999');



		var imgx = 860;

		var imgy = 760;



		$('#imgklein').css("padding-top", "10px");

		$('#imgklein').css("padding-left", "10px");		

		$('#imgklein').css("z-index", "9998");



		var lbLeft = $(this).position().left;

		var lbTop = $(this).position().top;



/*		$('#lightbox').css("left", lbLeft+"px");

		$('#lightbox').css("top", lbTop+"px");*/	



		//////////////////////Navigation ausblenden, falls nur wenige Bilder enthalten sind



		var gesWidth = 0;

		for (var i = 0; i < $(".scrollpic").length; i++)

		{

			gesWidth = gesWidth + $(".scrollpic")[i].width;

		}

				

		if (gesWidth < 420)

		{

			$('#prevpic').css('visibility', 'hidden');

			$('#nextpic').css('visibility', 'hidden');		

		}

		else

		{

			$('#prevpic').css('visibility', 'visible');

			$('#nextpic').css('visibility', 'visible');				

		}		

		

		/////////////////////Lightbox öffnen

		$('#lightbox').animate({

		/*	left: 500,*/

			top: 15,

			width: imgx,

			height: imgy

		  }, 250);	

		

		///////////////Vorschaubilder laden//////////////////////

		// Array of images:

		var PicArray = $(".smallpic");

		var pic = "";

		var picsrc = "";

		var padding_top;

		for (var i = 0; i < PicArray.length; i++)

		{

			pic = '#prevpic'+i;

			$(pic).css('display', 'block');

			picsrc = PicArray[i].src;

		

			$(pic).attr('src', picsrc);

			

			padding_top = 5+(85+i);

			

			$(pic).css('padding-top', padding_top-top+'px');	

			$(pic).css('padding-right', 35+'px');

			$(pic).css('display', 'block');			

		}	

		

		if (document.getElementById('swf').style.display == 'block')

		{

			var swfPath = $('#swfLink').attr("href");

			pic = '#swfpic';

			$(pic).css('display', 'block');

			picsrc = document.getElementById('swf').src;

			

			$(pic).attr('src', picsrc);

			$(pic).attr('rel', swfPath);			

			

			padding_top = 5+(85+i);

			

			$(pic).css('padding-top', padding_top-top+'px');

			$(pic).css('padding-right', 35+'px');

		}		

	

		///////////////////////////Bilder laden

		var src = $(this).attr("src");		

		

		bigsrc = src.replace("cache/", "");

		mediumsrc = src.replace("cache/i", "cache/mi");	

	

		loadBigImg = new Image ( );

		loadBigImg.src = bigsrc; 

	

		loadMediumImg = new Image ( );

		loadMediumImg.src = mediumsrc; 

			

		$('#imgklein').animate({opacity: 0}, 200, '',function(){

			$('#imgklein').attr('src', bigsrc);	

			$('#imgklein').animate({opacity: 1}, 200);																

		});

		window.document.getElementById('zoompic').src = loadBigImg.src;	

			

/*		////////////////////////////////Lightbox dynamisch zentrieren

		var docwidth = $(document).width();

		posX = ((docwidth/2) - 430);

		$('#lightbox').css('left',posX); // das erste mal positionieren		*/

		

		$('#lightboxTop').html($('#ETC_Page_Body_Content_Article_ArticleName').html());

	});

	

	$("#swf").click(function(e){

		$('#overlay').css("display", "block");

		$('#lightbox').css("display", "block");	

		$("#picscroll").css("display", "block");	

		$("#imgklein").css("display", "block");	

		

		$('#lightbox').css("visibility", "visible");

		$('#picscroll').css("visibility", "visible");



		$('#overlay').css("width", "0px");

		$('#overlay').css("height", "0px");

		$('#overlay').css("z-index", "999997");

		$('#lightbox').css("z-index", "999998");

		$('#showarea').css("z-index", "999999");

		$('#prevpic').css('z-index', '999999');

		$('#nextpic').css('z-index', '999999');	

		$('#picpreview').css('z-index', '999999');	

		$('.scrollpic').css('z-index', '999999');

		

	

		var imgx = 860;

		var imgy = 760;

	

		$('#imgklein').css("padding-top", "10px");

		$('#imgklein').css("padding-left", "10px");		

		$('#imgklein').css("z-index", "9998");

	

		/*var lbLeft = $(this).position().left;

		var lbTop = $(this).position().top;*/

	

/*		$('#lightbox').css("left", lbLeft+"px");

		$('#lightbox').css("top", lbTop+"px");*/	

		

		//////////////////////Navigation ausblenden, falls nur wenige Bilder enthalten sind

		var gesWidth = 0;

		for (var i = 0; i < $(".scrollpic").length; i++)

		{

			gesWidth = gesWidth + $(".scrollpic")[i].width;

		}

			

		if (gesWidth < 420)

		{

			$('#prevpic').css('visibility', 'hidden');

			$('#nextpic').css('visibility', 'hidden');		

		}

		else

		{

			$('#prevpic').css('visibility', 'visible');

			$('#nextpic').css('visibility', 'visible');				

		}		

		

		/////////////////////Lightbox öffnen

		$('#lightbox').animate({

		/*	left: 500,*/

			top: 15,

			width: imgx,

			height: imgy

		  }, 250);	

		

		///////////////Vorschaubilder laden//////////////////////

		// Array of images:

		var PicArray = $(".smallpic");

		var pic = "";

		var picsrc = "";

		var padding_top;

		for (var i = 0; i < PicArray.length; i++)

		{

			pic = '#prevpic'+i;

			$(pic).css('display', 'block');

			picsrc = PicArray[i].src;

			

			$(pic).attr('src', picsrc);

			

			padding_top = 5+(85+i);

			

			$(pic).css('padding-top', padding_top-top+'px');	

			$(pic).css('padding-right', 35+'px');

			$(pic).css('display', 'block');			

		}	

		

		if (document.getElementById('swf').style.display == 'block')

		{

			var swfPath = $('#swfLink').attr("href");

			pic = '#swfpic';

			$(pic).css('display', 'block');

			picsrc = document.getElementById('swf').src;

			

			$(pic).attr('src', picsrc);

			$(pic).attr('rel', swfPath);			

			

			padding_top = 5+(85+i);

			

			$(pic).css('padding-top', padding_top-top+'px');

			$(pic).css('padding-right', 35+'px');

		}		

		

		///////////////////////////Bilder laden

		var src = "";



		var anchors = document.getElementsByTagName('a'); 



		for (var i=0; i<anchors.length; i++)

		{ 

		/*	var anchor = anchors[i]; 

			if (anchor.getAttribute('rel') == 'swfRel')

			{ 			

				src = anchor.getAttribute('href');				

				break;

			}*/

			var anchor = anchors[i]; 

			var relVal = anchor.getAttribute('rel');

			if (relVal != null)

			{

				if (relVal.indexOf('/final360/feuerball3D.swf') >= -1)

				{ 			

					src = anchor.getAttribute('rel');				

					break;

				}			

			}

		}



		var path = src.replace(SWFFilename, '');

		var imgDataValue = src.replace(pathSWFFile, '');

		imgDataValue = imgDataValue.replace(pathSWFFileZusatz, '');

		imgDataValue = imgDataValue.replace(SWFFilename, '');		

		var slashPos = imgDataValue.indexOf('/');

		imgDataValue = imgDataValue.substring(slashPos+1);		

		$('#imgklein').css('display', 'none');

		$('#swfAnimation').css('display','block');		



/*		var param_one = $('#swfAnimation').next();

		var param_two = param_one.next();

		var embed = param_two.next();

		 

		param_one.setAttribute('value',src+'?imgdata='+path+imgDataValue);

		embed.setAttribute('src',src+'?imgdata='+path+imgDataValue);*/	



		$('#swfparam1').attr('value',src+'?imgdata='+path+imgDataValue);

		$('#swfembed').attr('src',src+'?imgdata='+path+imgDataValue);

		

		window.document.getElementById('zoompic').src = loadBigImg.src;	

		

		$('#lightboxTop').html($('#ETC_Page_Body_Content_Article_ArticleName').html());

	});	



	$(window).resize(function() {

		// und neu positionieren wenn die Browsergröße geändert wird

		var docwidth = $(document).width();

		posX = ((docwidth/2) - 430); // neue Position ausrechnen

		$('#lightbox').css('left', posX); // und das Element plazieren

	});	



	$(".scrollpic").click(function(e){	

		var src = $(this).attr("src");

		

		$('#imgklein').css('display', 'block');

		$('#swfAnimation').css('display','none');		

		

		bigsrc = src.replace("cache/", "");

		mediumsrc = src.replace("cache/i", "cache/mi");		



		loadBigImg = new Image ( );

      	loadBigImg.src = bigsrc; 



		loadMediumImg = new Image ( );

      	loadMediumImg.src = mediumsrc; 



		$('#imgklein').animate({opacity: 0}, 500, '',function(){

			$('#imgklein').attr('src', bigsrc);	

			$('#imgklein').animate({opacity: 1}, 500);																

		});

		

		/*$('#imgklein').css("padding-top", "10px");*/



		window.document.getElementById('zoompic').src = loadBigImg.src;	

	});		



	$("#swfpic").click(function(e){								

		var src = "";



		var anchors = document.getElementsByTagName('a'); 



		for (var i=0; i<anchors.length; i++)

		{ 

		/*	var anchor = anchors[i]; 

			if (anchor.getAttribute('rel') == 'swfRel')

			{ 			

				src = anchor.getAttribute('href');				

				break;

			}*/

			var anchor = anchors[i]; 

			var relVal = anchor.getAttribute('rel');

			if (relVal != null)

			{

				if (relVal.indexOf('/final360/feuerball3D.swf') >= -1)

				{ 			

					src = anchor.getAttribute('rel');				

					break;

				}			

			}

		}



		var path = src.replace(SWFFilename, '');

		var imgDataValue = src.replace(pathSWFFile, '');

		imgDataValue = imgDataValue.replace(pathSWFFileZusatz, '');

		imgDataValue = imgDataValue.replace(SWFFilename, '');		

		var slashPos = imgDataValue.indexOf('/');

		imgDataValue = imgDataValue.substring(slashPos+1);		

		$('#imgklein').css('display', 'none');

		$('#swfAnimation').css('display','block');		



/*		var param_one = $('#swfAnimation').next();

		var param_two = param_one.next();

		var embed = param_two.next();

		 

		param_one.setAttribute('value',src+'?imgdata='+path+imgDataValue);

		embed.setAttribute('src',src+'?imgdata='+path+imgDataValue);*/	



		$('#swfparam1').attr('value',src+'?imgdata='+path+imgDataValue);

		$('#swfembed').attr('src',src+'?imgdata='+path+imgDataValue);

		

		window.document.getElementById('zoompic').src = loadBigImg.src;	

	});	

})



////////////////////////////////////////////////////////////////////////////////////////////



function ChangeSortIndex(index)

{

	var form = document.forms[3];

	form.elements["ArticleOrder"].options[index].selected = true;  //document.forms[3] --> die 3 steht für den Index des Formulars im ganzen Document-Tree

	form.submit();	

}



function getX(el) 

{

	x = el.offsetLeft;

	if (!el.offsetParent) 

		return x;

	else 

		return (x+getX(el.offsetParent));

}



function getY (el) 

{

	y = el.offsetTop;

	if (!el.offsetParent) 

		return y;

	else 

		return (y+getY(el.offsetParent));

}



function DisableLightbox()

{

	$('#overlay').css("display", "none");

	$("#picscroll").css("display", "none");

	$("#imgklein").css("display", "none");	

		

	$('#picscroll').css("visibility", "hidden");	

		

	$('#prevpic').css('visibility', 'hidden');

	$('#nextpic').css('visibility', 'hidden');		

		

	$('#lightbox').css("visibility", "hidden");	

	$('#lightbox').css("display", "none");	

}



function Precaching()

{

	var aktImgPath = "";



	// Array of images:

	var imageArray = $(".smallpic");

	

	for (var i = 0; i < imageArray.length; i++)

	{

		aktImgPath = imageArray[i].src;	

		bigsrc     = aktImgPath.replace("cache/", "");

		

		loadBigImg = new Image ();

      	loadBigImg.src = bigsrc; 

	}



	Img = new Image ();

   	Img.src = ImgKatAudio;

	Img = new Image ();

   	Img.src = ImgKatBeauty;

	Img = new Image ();

   	Img.src = ImgKatGarten;

	Img = new Image ();

   	Img.src = ImgKatLampen;

	Img = new Image ();

   	Img.src = ImgKatTV;

	Img = new Image ();

   	Img.src = ImgKatKueche;

	Img = new Image ();

   	Img.src = ImgKatElektro;

	Img = new Image ();

   	Img.src = ImgKatAuto;

	Img = new Image ();

   	Img.src = ImgKatDJ;

	Img = new Image ();

   	Img.src = ImgKatStart;	

} 



////////////////////////////////////////Mini-Warenkorb ein- und ausblenden/////////////////

function hideMiniContent(objToAnimate) 

{

//	if (hideMinibasket)

		objToAnimate.hide("fast");		

}



function showMiniContent(objToAnimate) 

{

	if (objToAnimate.css("display") == "none") 

	{

		objToAnimate.show("fast");



	//	timeout = window.setTimeout('hideMiniContent(objToAnimate)', 5000);

	} 

	else 

	{

		objToAnimate.hide("fast");

	}

}




