// JavaScript Document

// GOOGLE ANALYTICS
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-20779143-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();



function HideMap(){
PostNew.style.display='none';
}

function chngImg(theIMG,theSRC)
{
window.document.getElementById(theIMG).src=theSRC; 
}




<!-- TOGGLE EMAIL ALERT BOX UNDER VIDEO ----------------------------------------------------------------------------->
function toggle() {
	if(document.getElementById("toggleText").style.display == "block") {
    		document.getElementById("toggleText").style.display = "none";
		    document.getElementById("displayText").innerHTML = "<div style='width: 490px; height: 25px; background-image:url(images/emailTab.jpg); background-position:left top; background-repeat:no-repeat'></div>";
  	      } else {
		document.getElementById("toggleText").style.display = "block";
	}
} 



<!-- SEARCH IS NOT CURRENTLY ACTIVE --------------------------------------------------------------------------------->
function message(){
alert("Search Function Not Currently Active");
}

<!-- PRELOAD IMAGE Array ------------------>
<!-- then put this on each page (   preload('imagepath1,imagepath2,imagepath3, etc');   )--->

function preload(images) {
    if (document.images) {
        var i = 0;
        var imageArray = new Array();
        imageArray = images.split(',');
        var imageObj = new Image();
        for(i=0; i<=imageArray.length-1; i++) {
            //document.write('<img src="' + imageArray[i] + '" />');// Write to page (uncomment to check images)
            imageObj.src=images[i];
        }
    }
}
