
$(document).ready(function(){
Cufon.replace	('h2,ul#guide,h3,ul#bmcontact li', { fontFamily: 'Kozuka Gothic Pro OpenType' });	
    $("ul.hire li").click(function(){
        $(this).closest('li').find('.panel').slideToggle("fast");
        $(this).toggleClass("active");
         return false;
    });
	
	
	$('#project').before('<div id="block" class="block">').cycle({
        fx:     'fade',
        speed:  'fast',
        timeout: 0,
        pager:  '#block'
    });
	
	$(".btn-slide").click(function(){
		$("").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});

	$("ul.hm_ftrd li").hover(function() { //On hover...

		var thumbOver = $(this).find("img").attr("src"); //Get image url and assign it to 'thumbOver'

		//Set a background image(thumbOver) on the <a> tag - Set position to bottom
		$(this).find("a.thumb").css({'background' : 'url(' + thumbOver + ') no-repeat center bottom'});

		//Animate the image to 0 opacity (fade it out)
		$(this).find("span").stop().fadeTo('normal', 0 , function() {
			$(this).hide() //Hide the image after fade
		});
	} , function() { //on hover out...
		//Fade the image to full opacity 
		$(this).find("span").stop().fadeTo('normal', 1).show();
	});
	
	$(".btn-slide").click(function(){
		$("#panel").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});
	
	$("ul.overview li.portfolio").click(function(){
    		window.location=$(this).find("a").attr("href");return false;
	});	
	
var addthis_config = {
              username: "bluemedia"
        };
		
	
});
