	
	jQuery.noConflict();
	
	jq = window.jq || {};
	jq.milon = jq.milon || {};
	
	jq.milon.lib = {
		
		onEvent: function(e) {
			var sc = e.data.scope;
			var fn = e.data.fn;
			sc[fn] && sc[fn].call(sc, e);
		}	
		
	};
		
		
	jQuery(document).ready(function () {
		
		//jQuery(document).pngFix(); 
	    
		jQuery(document).bind("contextmenu",function(e){
			return false;
		});
		
		//Rechtsklick auf iframes verhindern
		var iframes = jQuery('iframe').get();
		if (iframes && iframes.length) {
			for (var i=0; i < iframes.length; i++) {
				try {
					var docWin = iframes[i].contentWindow;		
					jQuery(docWin.document).bind('contextmenu', function() {return false;});
				} catch (ex) {}
			}		
		}
		

		
		//Selektor fuer Navpunkt Trainingsgeraete
		var qr = "ul.navid-"+jq.milon.cfg.ids.geraete;
		
		var ul = jQuery(qr+" ul:first").insertBefore(qr);
		jQuery(qr+' li:first').css({'font-weight': 'bold', 'margin-bottom': '10px'}).insertBefore(jQuery('li:first', ul));
		jQuery(ul).css({'width': '120px'});
		
		var ul2 = jQuery(qr+" ul:first").insertAfter(jQuery(ul));
		jQuery(qr+' li:first').css({'font-weight': 'bold', 'margin-bottom': '10px'}).insertBefore(jQuery('li:first', ul2));
		jQuery(ul2).css({'margin-left' : '118px', 'width': '120px'});

		var ul3 = jQuery(qr+" ul:first").insertAfter(jQuery(ul2));
		jQuery(qr+' li:first').css({'font-weight': 'bold', 'margin-bottom': '10px'}).insertBefore(jQuery('li:first', ul3));
		jQuery(ul3).css({'margin-left' : '236px', 'width': '120px'});

		jQuery(qr).remove();
		
		jQuery('#product-navthumb-tooltip').insertAfter(jQuery(ul3));
		
		
		var h = Math.max(jQuery(ul).height(), jQuery(ul2).height(), jQuery(ul3).height());
		jQuery(ul).height(h)
		jQuery(ul2).height(h)
		jQuery(ul3).height(h);
		
		jQuery('#info-box').css({ 'right': '-300px'});
		jQuery('#info-box').animate({ 
			        right: "0px"
			 }, 1500, "easeOutQuart" );  
		
		jQuery("#presseserver").fancybox({
			 'width' : 600,
			 'height' : 650,
			 'padding': 0,
			 'margin': 0,
			 'scrolling' : 'no',
			 'overlayOpacity': 0.7,
			 'overlayColor': '#000',
			 'showCloseButton': false,
			 'autoScale' : false,
			 'transitionIn' : 'none',
			 'transitionOut' : 'none',
			 'type' : 'iframe'
		}); 
		
	});
