/*

	Notes for anyone who works on this file:
	
	I hope I don't offend by moving around the scripts a bit like this.  Basically, all of Strait Web Solutions' sites use the cached,
	Google presented version of jQuery on the fly (as shown in the google.load("jquery","1.4.2") line below).
	
	This makes it so that, while perusing the internet, users only have to download the jQuery 1.4.2 library *once*, and then it will
	work across every other site that loads it in this fashion.
	
	Below the Google.load code is some jQuery-specific AJAX calls that load up the additional scripts.  This is done to keep the code
	in the main HTML file clean, and easy to update.  It also makes adding or removing additional plugins very simple.  All you need
	to do is copy and paste the three-line combo of $.ajaxSetup ... $.getScript ... $.ajaxSetup and replace the script reference.
	
	Easy as pie!
	
	So, I didn't change the code in order to step on your toes, but simply to optimize loading and code structure.  I hope you don't
	mind.  If you want to switch it back, you can, but this way will certainly make it easier for you and I to work on the code if need
	be, without accidentally breaking it.
	
	Thanks,
	- James

*/google.load("jquery","1.4.2");

google.setOnLoadCallback(function(){
	
	// The "equalheights" Javascript was causing rendering problems in some browsers.  :(
	// Because of this, I just wrote the following lines to pull off the same effect:
	
	leftHeight=$("#left-body").height();
	rightHeight=$("#right-body").height();
	
	if(leftHeight>rightHeight) {  // If the left side is taller than the right side,
		
		$("#right-body").css("height",leftHeight);	// Then make the right side as tall as it.
		
	} else {  // otherwise...
		
		$("#lef-col").css("height",rightHeight);	// Make the left side as tall as the right side.
	
	}
	
	// That's it.  It just makes whichever side is shorter as tall as the other side.
	
	/*$.ajaxSetup({async: false});
	$.getScript("js/jquery.equalheights.js");
	$.ajaxSetup({async: true});*/
	
	$.ajaxSetup({async: false});
	$.getScript("js/jquery.cycle.all.2.72.js");
	$.ajaxSetup({async: true});	
	
	$.ajaxSetup({async: false});
	$.getScript("ibox/ibox.js");	//	I left this here for you, in case you had some special plans for it.
	$.ajaxSetup({async: true});	//	I usually use Colorbox, so I added it below.  It's easy, lightweight, and customizable!
	
	$.ajaxSetup({async: false});
	$.getScript("js/jquery.colorbox.js");
	$.ajaxSetup({async: true});
	
	$('#slideshow').cycle({ 
		fx:    'fade', 
		speed:  2500
	});
	
	//$(".columns").equalHeights();
	
	$(".popups").colorbox();		//	Any <a> tag with class="popups" will use Colorbox, now.
	$(".popups_html").colorbox({iframe:true, innerWidth:425, innerHeight:344}); // This one is for any <a> that links to HTML.
	
});
	
function getMap() {

//	alert(escape($("#streetAddress").attr("value")));
	
	document.location.href="http://www.mapquest.com/maps?1c="+escape($("#city").attr("value"))+"&1s="+escape($("#state").attr("value"))+"&1a="+escape($("#streetAddress").attr("value"))+"&1z="+escape($("#zipCode").attr("value"))+"&1y=US&1v=ADDRESS&2c=Madison&2s=VA&2a=110+Campground+Ln&2z=22727-2521&2y=US&2v=ADDRESS";
	
}
