jQuery.noConflict();

jQuery(document).ready(function(){


	
	jQuery('#home_image').hide();
	jQuery('#home_image').fadeIn(2500);
	
	
	barcode();
	
	jQuery('#mood_home strong').hide();
	jQuery('li.first a').removeAttr("title");
	
	
	jQuery("#searchform").focus(function(){
		jQuery(this).val(""); // This should set the opacity to 100% on hover
	});
	
	
	
      jQuery("#handheld_message").animate( { width:"100%"}, 5000 )
         .slideUp('slow');
    
	
	
	
	//jQuery('#handheld_message').fadeIn(4000).fadeOut(4000);
	
	jQuery("#mood_home").hover(function(){
		jQuery("#mood_home strong").slideDown("fast"); // This should set the opacity to 100% on hover
		jQuery("#mood_home em").slideUp("fast"); // This should set the opacity to 100% on hover
	},function(){
		jQuery("#mood_home strong").slideUp("fast"); // This should set the opacity back to 60% on mouseout
		jQuery("#mood_home em").slideDown("fast"); // This should set the opacity to 100% on hover
});
		
	
	
	
	
	//jQuery('#leftnavigation ul li a:not(.menu_current)').append(' &raquo;');
	jQuery('#leftnavigation ul li a').append(' &raquo;');

jQuery(".mood").fadeTo("slow", 0.85); // This sets the opacity of the thumbs to fade down to 60% when the page loads

jQuery(".mood").hover(function(){
jQuery(".mood").fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
},function(){
jQuery(".mood").fadeTo("fast", 0.85); // This should set the opacity back to 60% on mouseout
});



jQuery("#footer ul li a img").fadeTo("fast", 0.85); // This sets the opacity of the thumbs to fade down to 60% when the page loads
jQuery("#footer ul li a img").hover(function(){
jQuery(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
},function(){
jQuery(this).fadeTo("fast", 0.85); // This should set the opacity back to 60% on mouseout
});

if(!jQuery.browser.msie)
{
	jQuery("#leftnavigation ul li").fadeTo("fast", 0.8); // This sets the opacity of the thumbs to fade down to 60% when the page loads
	jQuery("#leftnavigation ul li").hover(function(){
	jQuery(this).fadeTo("fast", 1.0); // This should set the opacity to 100% on hover
	},function(){
	jQuery(this).fadeTo("fast", 0.8); // This should set the opacity back to 60% on mouseout
	});
}
















function barcode()
{
	
	if (jQuery.browser.msie && jQuery.browser.version=="6.0")
	{	
		return ;
	}

	
	var i = 1;
	while (i < 5)
	{
		var color = '#FFFFFF';
		var opacity_from = '0.'+Math.floor(jQuery.randomBetween(40, 100) /10);
		var opacity_to = '0.'+Math.floor(jQuery.randomBetween(0, 50) /10);
		
		opacity_to = 0;
		
		var bar_width = Math.floor(jQuery.randomBetween(0, 70));
		var bar_pos = Math.floor(jQuery.randomBetween(0, 400));
		
		
		
		var height = jQuery(".barcode").height();
		var margins = jQuery(".barcode").css('padding-top');
		var width = jQuery(".barcode").css('width');
		jQuery(".barcode").css('overflow', 'hidden');
			
		var gofrom = 'left';
		var goto = 'right';
		if (i % 2)
		{
			var gofrom = 'right';
			var goto = 'left';
		}
		jQuery(".barcode").append('<div class="barcode_bar bar'+i+'" style="top:0px;background-color: '+color+'; position: absolute;'+gofrom+':-'+bar_pos+'px;width:'+bar_width+'px;height:' + height + 'px"></div>');
		
		if (goto == 'right')
		{
			
			jQuery(".bar"+i).animate({ 
		        width: "10%",
		        opacity: opacity_to,
		        left: "1000px"
		      }, jQuery.randomBetween(1500, 5000));
		} 
		
		else
		{
			jQuery(".bar"+i).animate({  
		        width: "10%",
		        opacity: opacity_to,
		        left: "-100px"
		      }, jQuery.randomBetween(1500, 5000));
		}
		i++;
	}
	
}



});


