/* var $jx = jQuery.noConflict(); 
	$jx(function() {
        $jx("#A").lavaLamp({
        fx: "backout", 
        speed: 700,
        click: function(event, menuItem) {
        return true;
            }
           });
        }); */
$(document).ready(function() {
	
    /* *** logodesign Tab *** */
	var logodesignTab = {    
		sensitivity: 40, // number = sensitivity threshold (must be 1 or higher)    
		interval: 100, // number = milliseconds for onMouseOver polling interval    
		over: logodesignOn, // function = onMouseOver callback (REQUIRED)    
		timeout: 100, // number = milliseconds delay before onMouseOut    
		out: logodesignOff // function = onMouseOut callback (REQUIRED)    
	};
	function logodesignOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function logodesignOff(){
		$(this).children().animate( { left: "-240px" }, 200 );
	}
	if ($("body").hasClass("logodesign")) {
		$("#navigation li.logodesign a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation li.logodesign a").hoverIntent( logodesignTab );
	}
	
    /* *** webdesign Tab *** */
    var webdesignTab = {    
		sensitivity: 40,
		interval: 100,
		over: webdesignOn,
		timeout: 100,
		out: webdesignOff
	};
	function webdesignOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function webdesignOff(){
		$(this).children().animate( { left: "-245px" }, 200 );
	}
    if ($("body").hasClass("webdesign")) {
		$("#navigation li.webdesign a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation li.webdesign a").hoverIntent( webdesignTab );
	}
	
	/* *** brochuredesign Tab *** */
	var brochuredesignTab = {    
		sensitivity: 40,
		interval: 100,
		over: brochuredesignOn,
		timeout: 100,
		out: brochuredesignOff
	};
	function brochuredesignOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function brochuredesignOff(){
		$(this).children().animate( { left: "-290px" }, 200 );
	}
    if ($("body").hasClass("brochuredesign")) {
		$("#navigation li.brochuredesign a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation li.brochuredesign a").hoverIntent( brochuredesignTab );
	}
    
    /* *** pricelist Tab *** */
    var pricelistTab = {    
		sensitivity: 40,    
		interval: 100,    
		over: pricelistOn,   
		timeout: 100,    
		out: pricelistOff    
	};
	function pricelistOn(){
		$(this).children().stop(true, true);
		$(this).children().animate( { left: "0px" }, 200);
	}
	function pricelistOff(){
		$(this).children().animate( { left: "-270px" }, 200 );
	}
    if ($("body").hasClass("pricelist")) {
		$("#navigation li.pricelist a").children().css({ 'left' : '0px' });
	} else {
		$("#navigation li.pricelist a").hoverIntent( pricelistTab );
	}
	/* *** PNG Fix *** */
	//$(document).pngFix();
			
});