$(document).ready(function(){
//add shadow to .box's
$('.box').css('margin-bottom','0px');
$('.box').after("
");
$('.box .shadow').addClass("onwhite");
jQuery(".accordion").accordion({
header: 'h1',
active: false,
alwaysOpen: false,
animated: 'slide',
autoheight: false,
collapsible: true,
navigation: true
});
$(".accordion h1 a").click(function(event){window.location.hash=this.hash;});
$(".colorbox").colorbox();
$(".tiptip").tipTip();
});
function showPhone(locationName){
$('#phone').toggle('fast', function(){
if($(this).is(":visible")){
_gaq.push(['_trackEvent', 'Lookup', 'Phone Lookup', locationName]);
}
});
}
function showAddress(locationName){
$('#address').toggle('fast', function(){
if($(this).is(":visible")){
_gaq.push(['_trackEvent', 'Lookup', 'Address Lookup', locationName]);
}
});
}
function showEmail(locationName){
$('#emailus').toggle('fast', function(){
if($(this).is(":visible")){
_gaq.push(['_trackEvent', 'Form View', 'Email Showroom', locationName]);
}
});
}
function showDriving(locationName){
$('#drivingdirections').toggle('fast', function(){
if($(this).is(":visible")){
_gaq.push(['_trackEvent', 'Form View', 'Driving Directions', locationName]);
}
});
}
function showHours(locationName){
$('#hours').toggle('fast', function(){
if($(this).is(":visible")){
_gaq.push(['_trackEvent', 'Lookup', 'Hours', locationName]);
}
});
}
function trackDriving(locationName){
_gaq.push(['_trackEvent', 'Form Submit', 'Driving Directions', locationName]);
$('#drivingdirections').toggle('fast');
}