   //<![CDATA[  
			     
	
    
	$jq(document).ready(function(){
    swapValues = [];
    $jq(".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]);
            }
        });
    });
});

	var map;
	
function gmap_load() {
	if (GBrowserIsCompatible()) {
		map = new GMap2(document.getElementById("googlemap"));
		map.setCenter(new GLatLng(26.3367391,-98.153401), 13);
		map.addControl(new GSmallMapControl());
		var point = new GLatLng(26.3367391,-98.153401);
		
		marker = new GMarker(point);
		map.addOverlay(marker);
		marker.openInfoWindowHtml("<strong>McAllen Ranch</strong><br />315 E Monte Cristo Rd<br />Edinburg, Texas 78541<br />(956) 383-1917<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('315 E Monte Cristo Rd, Edinburg, Texas 78541',$('from_address').value);return false;\" href=\"#\">Get Directions</a></p>");
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<strong>McAllen Ranch</strong><br />315 E Monte Cristo Rd<br />Edinburg, Texas 78541<br />(956) 383-1917<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('315 E Monte Cristo Rd, Edinburg, Texas 78541',$('from_address').value);return false;\" href=\"#\">Get Directions</a></p>");
		});
		
		
		
	}
}

function getDirections(from,to) {
	
	if (to == "") {
		alert("Please enter a departure address!");
		return;
	}
	
	directionsPanel = document.getElementById("TravelDirections");
	directions = new GDirections(map,directionsPanel);
	directions.load(to + " to " + from);
}

var gradientshadow={}
gradientshadow.depth=6 //Depth of shadow in pixels
gradientshadow.containers=[]

gradientshadow.create=function(){
var a = document.all ? document.all : document.getElementsByTagName('*')
for (var i = 0;i < a.length;i++) {
	if (a[i].className == "shadow") {
		for (var x=0; x<gradientshadow.depth; x++){
			var newSd = document.createElement("DIV")
			newSd.className = "shadow_inner"
			newSd.id="shadow"+gradientshadow.containers.length+"_"+x //Each shadow DIV has an id of "shadowL_X" (L=index of target element, X=index of shadow (depth) 
			if (a[i].getAttribute("rel"))
				newSd.style.background = a[i].getAttribute("rel")
			else
				newSd.style.background = "black" //default shadow color if none specified
			document.body.appendChild(newSd)
		}
	gradientshadow.containers[gradientshadow.containers.length]=a[i]
	}
}
gradientshadow.position()
window.onresize=function(){
	gradientshadow.position()
}
}

gradientshadow.position=function(){
if (gradientshadow.containers.length>0){
	for (var i=0; i<gradientshadow.containers.length; i++){
		for (var x=0; x<gradientshadow.depth; x++){
  		var shadowdiv=document.getElementById("shadow"+i+"_"+x)
			shadowdiv.style.width = gradientshadow.containers[i].offsetWidth + "px"
			shadowdiv.style.height = gradientshadow.containers[i].offsetHeight + "px"
			shadowdiv.style.left = gradientshadow.containers[i].offsetLeft + x + "px"
			shadowdiv.style.top = gradientshadow.containers[i].offsetTop + x + "px"
		}
	}
}
}

if (window.addEventListener)
window.addEventListener("load", gradientshadow.create, false)
else if (window.attachEvent)
window.attachEvent("onload", gradientshadow.create)
else if (document.getElementById)
window.onload=gradientshadow.create



function showDay(day,obj) {
	
	id = obj.parentNode.parentNode.id;
	selectedTD = document.getElementById(id);
	
	if (selectedTD.className != "Expanded") {
		selectedTD.className = "Expanded";
		displayState = "block";
	} else {
		selectedTD.className = ""
		displayState = "none";		
	}
	
	divs = selectedTD.getElementsByTagName("DIV");
	
	for (i=0; i< divs.length; i++) {
		div = divs[i];
		div.style.display = displayState;
	}	
	
}//]]>