/*	Requires jQuery	*/

$(function() {
//	Start

//	Form Field Value Swap
    swapValues = [];
    $(".swap-value").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]);
            }
        });
    });

//	Add "sitesearch" to query string
	var hostname	=	window.location.hostname.replace(/int/,'').replace(/stage/,'').replace(/www./,'');
	$('#som-search fieldset').prepend('<input type="hidden" name="sitesearch" value="' + hostname + '"/>');
//END
});

