

// SEARCH FIELD VALUE SWAP
$(function() {
    swapValues = [];
    $(".sok").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]);
            }
        });
    });
});

$(document).ready(function() {

	/* This is basic - uses default settings */
	$("a.box").fancybox({
		'hideOnContentClick': false,
		'overlayColor'		: '#fff'
		
	});
	
	/* Using custom settings */
	$("a.inline").fancybox({
		'hideOnContentClick': false,
		'overlayColor'		: '#fff'
		
	});

	/* Apply fancybox to multiple items */
	$("a.group").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false,
	'overlayColor'		: '#fff'
		
	});
	
	$(".iframe").fancybox({
		'width'				: '75%',
		'height'			: '75%',
		'autoScale'			: false,
		'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'hideOnContentClick': false,
		'overlayColor'		: '#fff'
	});

});

