// jQuery Document Ready Functions

  $("#content").css({visibility:"hidden", display:"none"});

  $("#news").css({visibility:"hidden", display:"none"});

  $("#portfolio").css({visibility:"hidden", display:"none"});

  $("#slideshow").css({visibility:"hidden", display:"none"});

  $("#box").css({visibility:"hidden", display:"none"});
	
	$(".toOpen").css({visibility:"hidden", display:"none"});

  $("img.large").css({visibility:"hidden", display:"none"});


$(document).ready( function() {

  $("#content").css({visibility: "visible", display: "none"}).fadeIn("slow"),

  $("#news").css({visibility: "visible", display: "none"}).fadeIn("slow"),

  $("#portfolio").css({visibility: "visible", display: "none"}).fadeIn("slow"),

  $("#slideshow").css({visibility: "visible", display: "none"}).fadeIn("slow"),

  $("#box").css({visibility: "visible", display: "none"}).fadeIn("slow")
	
	$(".click").click( function() {
		$(this).next(".toOpen").slideToggle(300);
		  itemTop = $(this).offset().top;
		  itemTop = itemTop - 50;
		  $('html, body').animate({scrollTop:itemTop}, 300);
	});

	$("img.hover").css('opacity','0.7');
  $("img.hover").hover( 
		function() { $(this).stop().animate({"opacity": "1"}, 300); },
    function() { $(this).stop().animate({"opacity": "0.7"}, 300); }
	);

	$("a.paging").css('opacity','0.7');
  $("a.true").hover(
		function() { $(this).stop().animate({"opacity": "1"}, 300); },
    function() { $(this).stop().animate({"opacity": "0.7"}, 300); }
	);

  $("img.large").delay(300).fadeIn(300);

// * -=> show notification
  $( 'div.canhide' ).fadeIn( 400 ).animate( { 'opacity': 1 } , 8000 ).fadeOut( 600 );
// * -------==============-------- * \\

// * -=> hide notification
  $( 'div.canhide' ).click( function ( ) {
    $( this ).fadeOut( 400 );
  });
// * -------==============-------- * \\

});

function confirmSubmit(form) {
  var agree = confirm("Are you sure you want to delete this product from your shopping cart?");
  if (agree) { this.form.submit() ; }
  else { return false ; }
}

