// JavaScript Document

	$(document).ready(function() {
		$.localScroll();
	});
	
	$(document).ready(function() {
		$("a[rel^='prettyPhoto']").prettyPhoto({
				  animationSpeed: 'slow', /* fast/slow/normal */
				  opacity: 0.80, /* Value between 0 and 1 */
				  showTitle: true, /* true/false */
				  allowresize: true, /* true/false */
				  default_width: 500,
				  default_height: 344,
				  counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
				  theme: 'dark_square', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
				  hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
				  wmode: 'opaque', /* Set the flash wmode attribute */
				  autoplay: true, /* Automatically start videos: True/False */
				  modal: false, /* If set to true, only the close button will close the window */
				  changepicturecallback: function(){}, /* Called everytime an item is shown/changed */
				  callback: function(){}, /* Called when prettyPhoto is closed */
	});
	});

$(document).ready(function(){
$("#ajax-contact-form").submit(function(){

var str = $(this).serialize();

   $.ajax({
   type: "POST",
   url: "contact.php",
   data: str,
   success: function(msg){
    
$("#note").ajaxComplete(function(event, request, settings){

if(msg == 'OK') // Message Sent? Show the 'Thank You' message and hide the form
{
result = '<div class="notification_ok">Your message has been sent. Thank you!</div>';
$("#fields").hide();
}
else
{
result = msg;
}

$(this).html(result);

});

}

 });

return false;

});

});

$(document).ready(function() {
	$("a[class^='button']").hover(function(){
		$(this).stop().animate({ 
			backgroundColor : '#EF3E63',
			marginLeft : '10px',
		}, 300);
	}, function() {
		$(this).stop().animate({ 
			backgroundColor : '#333333',
			marginLeft : '0px',
		}, 300);
	});					   
});

$(document).ready(function() {
	$("a.social").hover(function() {
		$(this).stop().animate({
			backgroundColor : '#EF3E63',
		}, 300);
	}, function() {
		$(this).stop().animate({
			backgroundColor : '#333333',	
		}, 300);	
	});
});

$(document).ready(function() {
	$("#social").hide();
		$("a.button_social").click(function() {
			$("#social").slideToggle("slow");
		 });
});

$(document).ready(function() {
	$("img.folio, ul.icons li").hover(function() { 
		$(this).stop().animate({
			opacity : 0.5
		}, 300);
	}, function () {
			$(this).stop().animate({
				opacity : 1
		}, 300);
	});					   
});

$(document).ready(function() {
	$("h1.logo").animate({ opacity : 1 }, 5000);
});

$(document).ready(function() {
	$("a[href^='http://']").attr("target", "blank");
});