// JavaScript Document

//BEGIN:  used for locations map scroll arrows (Scott G)
$(document).ready(function(){
    function openFacebox(url){
	    jQuery.facebox({ajax:url});
    }
    var id = "0";
    $(".scrollarrow").mouseup(function(){ 
        id = $(this).attr("id");
        if (id.toString() == "leftarrow"){
            $("#themap").animate({marginLeft: "0px"}, 585);
            $("#leftarrow").fadeOut(585);
            $("#rightarrow").fadeIn(585);                        
        }
        if (id.toString() == "rightarrow"){
            $("#themap").animate({marginLeft: "-565px"}, 585);
            $("#leftarrow").fadeIn(585);
            $("#rightarrow").fadeOut(585);            
        }
    });
    //this function is making locations dissapear in crappy IE 6 and 7    
//    $(".map_location").hover(function(){
//        id = $(this).attr("id");
//        $("#" + id.toString()).fadeTo(100,.7);            
//    },function(){
//        $("#" + id.toString()).fadeTo(100,1.0);
//    });    
})
//END:  used for locations map scroll arrows (Scott G)

