/*	Marketing Results main javascript	This file contains all javascript and calls to the jquery framework*/// Method to include js files in a mainfunction includeJS(js_script){	document.write('<script type="text/javascript" src="' + js_script + '"></script>');}// Call all the js files that need to be included on all pages using the include methodincludeJS('/_scripts/plugins/jquery.pngFix.js');includeJS('http://maps.google.com/maps/api/js?sensor=false');$(document).ready(function() {	$(".tabs").click(function(){   		$(this).next().slideToggle(400, function() {    // Animation complete.  	});		return false;	})});// Clear form text field and repopulate with default value//function clearText(field){    //if (field.defaultValue == field.value) field.value = '';   // else if (field.value == '') field.value = field.defaultValue;//}// Clear Text Field V2function clearText(thefield){	if (thefield.defaultValue==thefield.value)	thefield.value = ""}// Site navigation$(function(){    $("ul.navigation li").hover(function(){        $(this).addClass("hover");        $('ul:first',this).css('visibility', 'visible');    }, function(){        $(this).removeClass("hover");        $('ul:first',this).css('visibility', 'hidden');    });    $("ul.navigation li ul li:has(ul)").find("a:first").append(" » ");});// Copyrightvar date = new Date();var yy = date.getYear();var year = (yy < 1000) ? yy + 1900 : yy;// Google Maps API 3.0// Las Vegas function las_vegas_map() {	var myOptions = {	  zoom: 15,	  center: new google.maps.LatLng(35.998796,-115.113733),	  mapTypeId: google.maps.MapTypeId.ROADMAP	}	var map = new google.maps.Map(document.getElementById("marketing_results_map"),								  myOptions);		var image = '/_images/im_map_mrilogo.gif';	var myLatLng = new google.maps.LatLng(35.998796,-115.113733);	var beachMarker = new google.maps.Marker({		position: myLatLng,		map: map,		icon: image	});}// New Jerseyfunction new_jersey_map() {	var myOptions = {	  zoom: 15,	  center: new google.maps.LatLng(39.748756,-74.996911),	  mapTypeId: google.maps.MapTypeId.ROADMAP	}	var map = new google.maps.Map(document.getElementById("marketing_results_map"),								  myOptions);		var image = '/_images/im_map_mrilogo.gif';	var myLatLng = new google.maps.LatLng(39.7478817,-74.9985352);	var beachMarker = new google.maps.Marker({		position: myLatLng,		map: map,		icon: image	});}// IE 6 png fix$(document).ready(function(){    $(document).pngFix();});
