   
	/*var map;
	
    function gmap_load() {
		if (GBrowserIsCompatible()) {
			var latitude = 26.30247;
			var longitude = -98.16244;
			map = new GMap2(document.getElementById("googlemap"));
			map.setCenter(new GLatLng(latitude,longitude), 14);
			map.addControl(new GSmallMapControl());
			var point = new GLatLng(latitude,longitude);
			
			marker = new GMarker(point);
			map.addOverlay(marker);
			marker.openInfoWindowHtml("<strong>Melden &amp; Hunt</strong><br />115 W. McIntyre<br />Edinburg, TX 78539<br />Ph: 956-381-0981<br />Fx: 956-381-1839<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('5712 N. 10th St., Ste. 300, McAllen, TX 78504',$('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);
}*/
   //<![CDATA[  
			     
	
    
	$(document).ready(function(){
    swapValues = [];
    $(".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.30243,-98.5190758), 7);
		map.addControl(new GSmallMapControl());
		point2 = new GLatLng(26.393897,-98.853983);
		
		marker2 = new GMarker(point2);
		map.addOverlay(marker2);
		marker2.openInfoWindowHtml("<strong>Melden &amp; Hunt</strong><br />227 N. FM 3167<br />Rio Grande City, TX 78582<br />Ph: 956-487-8256<br />Fx: 956-488-8591<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('26.393897,-98.853983',$('from_address').value);return false;\" href=\"#\">Get Directions</a></p>");			
		
		GEvent.addListener(marker2, "click", function() {
			marker2.openInfoWindowHtml("<strong>Melden &amp; Hunt</strong><br />227 N. FM 3167<br />Rio Grande City, TX 78582<br />Ph: 956-487-8256<br />Fx: 956-488-8591<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('26.393897,-98.853983',$('from_address').value);return false;\" href=\"#\">Get Directions</a></p>");	
		});
		var point = new GLatLng(26.302431,-98.162177);
		
		marker = new GMarker(point);
		map.addOverlay(marker);
		marker.openInfoWindowHtml("<strong>Melden &amp; Hunt</strong><br />115 W. McIntyre<br />Edinburg, TX 78541<br />Ph: 956-381-0981<br />Fx: 956-381-1839<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('115 W. McIntyre, Edinburg, TX 78539',$('from_address').value);return false;\" href=\"#\">Get Directions</a></p>");
		
		GEvent.addListener(marker, "click", function() {
			marker.openInfoWindowHtml("<strong>Melden &amp; Hunt</strong><br />115 W. McIntyre<br />Edinburg, TX 78541<br />Ph: 956-381-0981<br />Fx: 956-381-1839<p><input type=\"text\" name=\"from_address\" id=\"from_address\" /><br/><a onclick=\"getDirections('115 W. McIntyre, Edinburg, TX 78539',$('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;
	}	
	
}//]]>
			  
			  //]]>