$(document).ready(function(){	
	$(".fim").hover(function(){	$(this).stop().fadeTo("fast", 0.6); },	function(){  $(this).stop().fadeTo("slow", 1.0); });	
	$(".fimlight").hover(function(){	$(this).stop().fadeTo("fast", 0.8); },	function(){  $(this).stop().fadeTo("slow", 1.0); });	
	$(".mylinnk").hover(function(){	$(this).stop().fadeTo("fast", 0.5); },	function(){  $(this).stop().fadeTo("fast", 1.0); });	
	$(".button-blank-blue").hover(function(){	$(this).stop().fadeTo("fast", 0.6); },	function(){  $(this).stop().fadeTo("slow", 1.0); });	
		
		
	$("#menu a, #leftmenu a").hover(function(){		
		$(this).stop(true,true).fadeTo("fast", 1.0,function(){
		});		},function(){		 	
		
		$(this).stop(true,true).fadeTo("fast", 0.7,function(){		
			$(this).fadeTo("fast", 1.0);	
		});	
	});		

	$("#menu ul").dropdown({'effect_in' : 'fadeIn','effect_out':'fadeOut','params_out' : 700});
	
	$('#printprices').click(function() {
		
		$('#printingtext').slideToggle('slow', function() {
			// Animation complete.
		 });
		
	});

});




(function($) {
//
// plugin definition
$.fn.dropdown = function(options) {
    $this = $(this);
    
    $.fn.dropdown.defaults  = $.extend({}, $.fn.dropdown.defaults, options);
    var opt = $.fn.dropdown.defaults;
    $this.each(function(){
    $this.children("li").hover(
         
        function(){    
		
		$(this).addClass('menuhover').fadeIn();
		
        //$(this).children("ul").clearQueue()
        if(opt.effect_in == null)$(this).children("ul").css({"display":"block"});
        else eval( '$(this).children("ul").'+ opt.effect_in + '('+ opt.params_in +')');

        },
        function(){          
          $(this).removeClass("over");		 
          $(this).children("ul").clearQueue().stop().css('opacity',1);
      	  if(opt.effect_out == null)$(this).children("ul").css({"display":"none"});
          else eval( '$(this).children("ul").'+ opt.effect_out + '('+ opt.params_out+')');
		  $(this).removeClass('menuhover',1000);
		  			

        }
		
        
      );
    })
};
//
$.fn.dropdown.defaults = {
  effect_in : null, 
  params_in : '',
  effect_out : null,    
  params_out : ''
}

//
})(jQuery);
