function getTopRankings(){
	var theBody='Please fill out this form or delete and write your own message\n\nI want a new web site or a redesign. (choose one)\n\n'+
'My current web site(s) are: (if applicable)\n\n'+
'My primary city / county of interest for selling real estate is:\n\n'+
'Please send me competitive research that proves you know why my competitors are beating me online.\n\n'+
'Please send me a proposal on how to compete against them with a modest/mid-sized budget.\n\n'+
'Comments:\n\n'+
'My name is:\n'+
'My phone number is:\n'+
'My realty company is:\n'+
'I am a broker or an agent: (type one)\n';
	var d2="e@farb";var d1="bruc";var d3="eyondcode.com";
	window.location.href='mailto:'+d1+d2+d3+'?subject='+escape('I want a better real estate web site.')+'&body='+escape(theBody);
}
function gotoClientSlide(num){
	$('#clientslideshow').cycle('pause');
	$('#clientslideshow').cycle({
		fx:      'scrollDown',
		easing:'easeInExpo',
		startingSlide:num-1,
		after: function(){$('#clientslideshow').cycle('pause');}
	});
}
function resumeClientSlideshow(){
	$('#clientslideshow').cycle('resume');
}

$(document).ready(function(){
	var d=document.getElementById('clientslideshow');
	if(!d) return;
	$('#clientslideshow').cycle({
		fx:      'scrollUp',
		easing:'easeInExpo'
	});
	
  $(".idxmodal").colorbox();
	if($.browser.opera || ($.browser.msie && parseFloat($.browser.version.slice(0,3)) == 8) ) {
		$('.jumpnavbox').css('marginLeft',"10px").css('letter-spacing','-1px');
	}else if($.browser.msie && parseFloat($.browser.version.slice(0,3)) <= 7 ) {
		$('.jumpnavbox').css('position','absolute').css('left',$('.sh-36').position().left).css('letter-spacing','-1px');
		$(window).scroll(function() {  $('.jumpnavbox').stop();  $('.jumpnavbox').css('top','-50px').animate({'top': $(this).scrollTop() + "px"},500); });
	}else{
		$('.jumpnavbox').css('marginLeft',"10px")
	}
	if(!$.browser.opera){
  $('a[href*=#]').click(function() {
 if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'')
 && location.hostname == this.hostname) {
   var $target = $(this.hash);
   $target = $target.length && $target
   || $('[name=' + this.hash.slice(1) +']');
   if ($target.length) {
  var targetOffset = Math.max(0,$target.offset().top-20);
      $('html,body').animate({scrollTop: targetOffset}, 500,'easeInExpo');
    return false;
   }
 }
  });
}
});

function submitInquiryForm(){
	var dataString='inquiries_first_name='+escape($('#inquiries_first_name').val())+'&inquiries_last_name='+escape($('#inquiries_last_name').val())+'&inquiries_company='+escape($('#inquiries_company').val())+'&inquiries_email='+escape($('#inquiries_email').val())+'&inquiries_phone1='+escape($('#inquiries_phone1').val())+'&inquiries_comments='+escape($('#inquiries_comments').val());
	//alert(dataString);
    $.ajax({
    type: 'POST',
    url: '/process.cfm',
    data: dataString,
    complete: function(data, status){ 
		if(status !="success"){
			alert('There was a problem submitting your inquiry. Please check your entries.');
		}
	},
    success: function(data){ 
		if(data.success == 0){
			alert("Your inquiry was incomplete.  Please fill out the required fields correctly.");
		}else{
			$('#formDiv').css('display',"none");
			$('#aboveFormDiv').html("<h3>Inquiry Submitted.</h3>");
			$.colorbox({href:'/thank-you.html'});
		}
    },
    dataType: 'json'
    });
}


