onload=function() {
	if (document.getElementById("backtobasket")&&location.href.lastIndexOf("registrieren.php")<0) {
		document.getElementById("backtobasket").style.display="block";
		}
	var is=false;
	var hn=document.getElementById("headnavi2").childNodes;
	for (i=0;i<hn.length;i++) {
		if (hn[i].tagName&&hn[i].tagName=="LI") {
			var hn2=hn[i].childNodes;
			for (j=0;j<hn2.length;j++) {
				if (hn2[j].href&&hn2[j].href==location.href) {
					hn2[j].parentNode.className="active";
					is=true;
					}
				}
			}
		}
	if (!is) {
		for (i=0;i<hn.length;i++) {
			if (hn[i].tagName&&hn[i].tagName=="LI"&&!is) {
				var hn2=hn[i].childNodes;
				for (j=0;j<hn2.length;j++) {
					if (hn2[j].href) {
						hn2[j].parentNode.className="active";
						is=true;
						}
					}
				}
			}
		}
	/**
	*	Silverlight initialisieren
	*/
	if (Silverlight.isInstalled()) {
		if(!Silverlight.isInstalled("3.0.40624.0")) {
			if (confirm("Sie benötigen eine neuere Version des Silverlight Plugins. Möchten Sie diese nun herunterladen?")) {
				Silverlight.getSilverlight("3.0.40624.0");
				}
			}
		var pe1 = document.getElementById("module_zoomslides_mainframe");
		silverlight=true;
		var iswl='true';
		var thisbg='transparent';
		if(navigator.appName.search("Netscape")!=-1||navigator.appVersion.search("Safari")!=-1||navigator.appName.search("Opera")!=-1) {
			iswl='false';
			thisbg='white';
			}
		Silverlight.createObjectEx(
			{
				source: '/templates/JTL-Shop2/js/slideshow_silverlight.xml', 
				parentElement:pe1, 
				id:'Ag123', 
				properties:{ width:'719', height:'320', background:'#00000000', background: thisbg, isWindowless: iswl, framerate:'50', version:'0.90.0' }, 
				events:{ onError:null, onLoad:null }, 
				context:null
				}
			);
		}
	if (silverlight==false) {
		module_zoomslides_start();
		}
	}