// Beat Fly JavaScript core document
/*jquery setting*/
$(document).ready(function(){
				
	//png fix
	$('#logo h1 a, #page, .lens, .count, .text, span.more, #related ul li a, #related ul li a:visited, #related ul li span.folder, #subfootermain h6.followrss, #subfooterright h6.followflickr, ul#social li, span.data, #breadcrumb li#last, .mainone').addClass('unitPng');
					
	//On mouse over thumbnail
	//$('.image_box_mini').hover(function() {
//		//Display the caption
//		$(this).find('.lens').stop(false,true).fadeIn(200);
//	},
//	function() {
//		//Hide the caption
//		$(this).find('.lens').stop(false,true).fadeOut(200);
//	});
	
	//portfolioThumb border chance
	$('.image_box_mini').mouseover(function() {
    	$(this).css({'border':'1px solid #7EA148'});
        }).mouseout(function() {
        	$(this).css({'border':'1px solid #fff'});
    });

	
	//open external link
	$("#subfooterright a[href]").attr('target','_blank');
	
	//different href
	$("span.check a[href$=png]").addClass("zoom");
	$("span.check a[href$=bmp]").addClass("zoom");
	$("span.check a[href$=jpg]").addClass("zoom");
	
	//form focus
	$("#name").focus();
			
//end		
});

	//fancybox
	$("a.zoom").fancybox({
		'titlePosition'	:	'over',
		'overlayOpacity'	:	0.8,
		'overlayColor'		:	'#000'
	});
			
	//social
	$('#social').bookmark({sites: ['facebook', 'delicious', 'digg', 'linkedin', 'stumbleupon', 'newsvine', 'technorati', 'google', 'netvibes', 'segnalo', 'tumblr', 'dzone', 'ask']});
