$(document).ready(function(){ 

// pngFix
        $(document).pngFix(); 
        
// IMG reflektionen
		$("#custombox_brands img").reflect({height: 0.5, opacity: 0.30});
		
// enable scrolls. a simple magical one liner - flowplayer
$(".scroll").scrollable({size: 1,clickable:false}).circular().mousewheel().autoscroll({ 
    autoplay: true, 
	interval: 4000,
    api: true 
});			
		
//Verlauf über Text
		$("#esotest3").FontEffect({
			gradient:true,
			gradientPosition:20,
			gradientLength:100,
			gradientColor :"#ff0000",
			shadow:true,
			shadowColor:"#000000",
			shadowBlur:2,
			shadowOffsetTop:2,
			shadowOffsetLeft:0,
			shadowOpacity:0.5,
			hideText:true 
		})
		
	}); 

// Cu3er
		var flashvars = {};
		flashvars.xml = "templates/Eyestuff/xml/ESO_Config_DE.xml";
		flashvars.font = "templates/Eyestuff/plugins/cu3er/font.swf";
		var attributes = {};
		attributes.wmode = "transparent";
		attributes.id = "slider";
		swfobject.embedSWF("templates/Eyestuff/plugins/cu3er/cu3er.swf", "promoContent", "930", "400", "9", "templates/Eyestuff/plugins/cu3er/js/swfobject/expressInstall.swf", flashvars, attributes);//Es wird -> jQuery.noConflict(); Verwendet. D.h. alle "$" Funktionen müssen durch "jQuery" ersetzt werden!!
		
$(document).ready(function() {	


  //Get all the LI from the #tabMenu UL
  $('#tabMenu > li').click(function(){
        
    //remove the selected class from all LI    
    $('#tabMenu > li').removeClass('selected');
    
    //Reassign the LI
    $(this).addClass('selected');
    
    //Hide all the DIV in .boxBody
    $('.boxBody div').slideUp('1500');
    
    //Look for the right DIV in boxBody according to the Navigation UL index, therefore, the arrangement is very important.
    $('.boxBody div:eq(' + $('#tabMenu > li').index(this) + ')').slideDown('1500');
    
  }).mouseover(function() {

    //Add and remove class, Personally I dont think this is the right way to do it, anyone please suggest    
    $(this).addClass('mouseover');
    $(this).removeClass('mouseout');   
    
  }).mouseout(function() {
    
    //Add and remove class
    $(this).addClass('mouseout');
    $(this).removeClass('mouseover');    
    
  });

  //Mouseover with animate Effect for Category menu list
  $('.boxBody #IDNAME li').mouseover(function() {

    //Change background color and animate the padding
    $(this).css('backgroundColor','#e0e0e0');
    $(this).children().animate({paddingLeft:"10px"}, {queue:false, duration:300});
  }).mouseout(function() {
    
    //Change background color and animate the padding
    $(this).css('backgroundColor','');
    $(this).children().animate({paddingLeft:"0"}, {queue:false, duration:300});
  });  
	
  //Mouseover effect for Posts, Comments, Famous Posts and Random Posts menu list.
  $('.boxBody li').click(function(){
    //window.location = $(this).find("a").attr("href");
  }).mouseover(function() {
    $(this).css('backgroundColor','#ffffff');
  }).mouseout(function() {
    $(this).css('backgroundColor','');
  });  	
	
});		
