$(document).ready(function(){

	$('.RoundNumbersOnly').keypress(RoundNumbersOnly);

	$('#navigation ul li').hoverIntent(
		function(){$(this).children('ul').delay(000).fadeIn(500);},
		function(){$(this).children('ul').delay(100).fadeOut(500);}
		);
    
	$('a[href=#top]').click(function(){
        $('html, body').animate({scrollTop:0}, 'slow');
        return false;
    });
	$(".colorbox_photo").colorbox({
		maxWidth: "95%", 
		maxHeight: "95%", 
		photoScaling: "true", 
		opacity: '.75'});
	$(".colorbox").colorbox({
		opacity: '.75'
	});
	$(".colorbox_iframe").colorbox({width:"900px", height:"700px", iframe:true, opacity: .75});				
});
jQuery(function() {
    swapValues = [];
    jQuery(".swap_value").each(function(i){
        swapValues[i] = jQuery(this).val();
        jQuery(this).focus(function(){
            if (jQuery(this).val() == swapValues[i]) {jQuery(this).val("");}
        }).blur(function(){
            if (jQuery.trim(jQuery(this).val()) == "") {jQuery(this).val(swapValues[i]);}
        });
    });
});

function RoundNumbersOnly (event){

	if (event.which == 8 || event.which == 46 || event.which == 110 || event.which == 48 || event.which == 49 || event.which == 50 || event.which == 51 || event.which == 52 || event.which == 53 || event.which == 54 || event.which == 55 || event.which == 56 || event.which == 57 || event.which == 13)	{return;}
	
	alert('You may only add a dollar amount. $ Not Allowed.');
	return false;
}

