jQuery.fn.executeSignup = function() {
    return $(this).css({ top: ($(window).scrollTop() + 60) + "px" });
}

$(function() {
	

	$('.slider').cycle({
	    fx: 'scrollHorz',
	    speed: 300,
	    timeout: 4000,
	    next: '.arrow-right',
	    prev: '.arrow-left'
	});

    /* Allows the modal to fit to the viewport's height if the viewport is too short */
    $('.modal').bind('show', function(){
      if ($(window).height() < $(this).height()) {
        $(this).css({height: ($(window).height()*.8)+'px'});
      }
      $(this).css({top: ($(window).height()*.025)+'px'}).show();
    });
    $('.modal').bind('hide', function(){ $(this).css({height: 'auto'}); $(this).hide(); });
    
    
});

$.pmgGoogleMap = {};
$.pmgGoogleMap.isIncluded = false;
$.pmgGoogleMap.isModalOpened = false;
$.pmgGoogleMap.defaultShow = 4;

jQuery.fn.moveIntoView = function() {
  return $(this).css({top:($(window).scrollTop()+60)+"px" });
}

jQuery.fn.defaultVal = function(value) {
    $(this).val(value);
  return $(this).focus(
		function() { if ($(this).val() == value) $(this).val(''); }
	).blur(
		function() { if ($(this).val() == '') $(this).val(value); }
	);
}
