$(document).ready(function(){
	$('#scroller').newsScroll({speed:1000,delay:4000});
	$('.scroller').newsScroll({speed:1000,delay:4000});

	$("a.fancybox").fancybox({'titlePosition': 'outside','overlayShow': true,'overlayColor'		: '#000','overlayOpacity'	: 0.7,'padding':0,'transitionIn'	: 'elastic','transitionOut'	: 'elastic'});
	$('a.thickbox').fancybox({'padding':0,'overlayOpacity'	:	0.8,'overlayColor'		:	'#333'});
	$('a.moviebox').fancybox({'hideOnContentClick': false});
	$("a.htmlbox").fancybox({'frameWidth':	500, 'frameHeight':	500, 'padding':	0, 'overlayColor':	'#333'}); 

	$('#cycle').cycle({ fx:'fade', speed:    2000, timeout:  2000,pause:  1});
	$('.cycle').cycle({ fx:'fade', speed:    1500, timeout:  1500,pause:  1});

	$("#newsletterForm").submit(function(event) {
	    /* stop form from submitting normally */
	    event.preventDefault(); 
	    /* get some values from elements on the page: */
	    var $form = $( this ),
	        mail = $form.find( 'input[name="mail"]' ).val(),
	        url = $form.attr( 'action' );

	    /* Send the data using post and put the results in a div */
	    $.post( url, { m: mail },
	      function( data ) {
			//var content = $( data ).find( '#content' );
			//$( "#result" ).empty().append( content );
			$("#newsletterForm").hide();	
			$('#result').html(data);
		
		});
	 });

	//page product.php
	$("#bEntertainment1").hover(
	  function () {$("#Entertainment1").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment1").hide();$("#Entertainment0").show();}
	);
	$("#bEntertainment2").hover(
	  function () {$("#Entertainment2").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment2").hide();$("#Entertainment0").show();}
	);
	$("#bEntertainment3").hover(
	  function () {$("#Entertainment3").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment3").hide();$("#Entertainment0").show();}
	);
	$("#bEntertainment4").hover(
	  function () {$("#Entertainment4").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment4").hide();$("#Entertainment0").show();}
	);
	$("#bEntertainment5").hover(
	  function () {$("#Entertainment5").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment5").hide();$("#Entertainment0").show();}
	);
	$("#bEntertainment6").hover(
	  function () {$("#Entertainment6").show();$("#Entertainment0").hide();}, 
	  function () {$("#Entertainment6").hide();$("#Entertainment0").show();}
	);

	$("#bAdvertising1").hover(
	  function () {$("#Advertising1").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising1").hide();$("#Advertising0").show();}
	);
	$("#bAdvertising2").hover(
	  function () {$("#Advertising2").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising2").hide();$("#Advertising0").show();}
	);
	$("#bAdvertising3").hover(
	  function () {$("#Advertising3").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising3").hide();$("#Advertising0").show();}
	);
	$("#bAdvertising4").hover(
	  function () {$("#Advertising4").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising4").hide();$("#Advertising0").show();}
	);
	$("#bAdvertising5").hover(
	  function () {$("#Advertising5").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising5").hide();$("#Advertising0").show();}
	);
	$("#bAdvertising6").hover(
	  function () {$("#Advertising6").show();$("#Advertising0").hide();}, 
	  function () {$("#Advertising6").hide();$("#Advertising0").show();}
	);

	$("#bSport1").hover(
	  function () {$("#Sport1").show();$("#Sport0").hide();}, 
	  function () {$("#Sport1").hide();$("#Sport0").show();}
	);
	$("#bSport2").hover(
	  function () {$("#Sport2").show();$("#Sport0").hide();}, 
	  function () {$("#Sport2").hide();$("#Sport0").show();}
	);
	$("#bSport3").hover(
	  function () {$("#Sport3").show();$("#Sport0").hide();}, 
	  function () {$("#Sport3").hide();$("#Sport0").show();}
	);
	$("#bSport4").hover(
	  function () {$("#Sport4").show();$("#Sport0").hide();}, 
	  function () {$("#Sport4").hide();$("#Sport0").show();}
	);
	$("#bSport5").hover(
	  function () {$("#Sport5").show();$("#Sport0").hide();}, 
	  function () {$("#Sport5").hide();$("#Sport0").show();}
	);
	$("#bSport6").hover(
	  function () {$("#Sport6").show();$("#Sport0").hide();}, 
	  function () {$("#Sport6").hide();$("#Sport0").show();}
	);

	$("#bInformation1").hover(
	  function () {$("#Information1").show();$("#Information0").hide();}, 
	  function () {$("#Information1").hide();$("#Information0").show();}
	);
	$("#bInformation2").hover(
	  function () {$("#Information2").show();$("#Information0").hide();}, 
	  function () {$("#Information2").hide();$("#Information0").show();}
	);
	$("#bInformation3").hover(
	  function () {$("#Information3").show();$("#Information0").hide();}, 
	  function () {$("#Information3").hide();$("#Information0").show();}
	);
	$("#bInformation4").hover(
	  function () {$("#Information4").show();$("#Information0").hide();}, 
	  function () {$("#Information4").hide();$("#Information0").show();}
	);
	$("#bInformation5").hover(
	  function () {$("#Information5").show();$("#Information0").hide();}, 
	  function () {$("#Information5").hide();$("#Information0").show();}
	);
	$("#bInformation6").hover(
	  function () {$("#Information6").show();$("#Information0").hide();}, 
	  function () {$("#Information6").hide();$("#Information0").show();}
	);
		

});



