// JavaScript Document
// Created September 2009

//onHover Fade
$(document).ready(function(){
	$('.fontss img').animate({opacity: '0.4'});
        $('.fontss img').each(function() {
            $(this).hover(function() {
                $(this).stop().animate({ opacity: 0.8 }, 300);
            },
           function() {
               $(this).stop().animate({ opacity: 0.4 }, 300);
           });
        });
    });


//Author Comment Img
$(document).ready(function(){
	$("li.author").append('<div class="authorcomment"></div>');
});


//Add Classes
$(document).ready(function(){
	$('.wpcf7-form').addClass('jqtransform');
	$(".post").find("p:first").addClass('intro');
});

//Clickable Boxes
$(document).ready(function(){
						   
	$("#wwd,#gaq").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});
	$(".viewdemo").click(function(){
    	window.location=$(this).find("a").attr("href");return false;
	});

});

// Activate IE6 PNG Fix 
$(document).ready(function(){ 
	DD_belatedPNG.fix('#tut-tag, #wwd, #gaq, #header img');
}); 

// Form Swap Values
$(function() {
	swapValues = [];
		$("input.searchfield").each(function(i){
			swapValues[i] = $(this).val();
			$(this).focus(function(){
				if ($(this).val() == swapValues[i]) {
					$(this).val("");
				}
			}).blur(function(){
				if ($.trim($(this).val()) == "") {
					$(this).val(swapValues[i]);
			}
		});
	});
});

// Back To Top
$(document).ready(function(){ 
$('.btt').click(function() {  
	$(document).scrollTo(0,500);  
});
}); 

//New Window
function openwindow()
{
	window.open("http://alovefordesign.com/demos/sexyLoader/index.html","sexyLoader Demo","menubar=0,resizable=0,width=550,height=400");
}

