// JavaScript Document
function toggleComment(  )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( 'commentForm' );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all['commentForm'];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers['commentForm'];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


function FacebookOn(){
		document.FacebookIcon.src='templates/Clean/images/facebook.png'
	} 
	
	function FacebookOff(){
		document.FacebookIcon.src='templates/Clean/images/facebook_bw.png'
	} 
	function TwitterOn(){
		document.TwitterIcon.src='templates/Clean/images/twitter.png'
	} 
	function TwitterOff(){
		document.TwitterIcon.src='templates/Clean/images/twitter_bw.png'
	} 
	function TumblrOn(){
		document.TumblrIcon.src='templates/Clean/images/tumblr.png'
	} 
	function TumblrOff(){
		document.TumblrIcon.src='templates/Clean/images/tumblr_bw.png'
	} 
	function RSSOn(){
		document.RSSIcon.src='templates/Clean/images/rss.png'
	} 
	function RSSOff(){
		document.RSSIcon.src='templates/Clean/images/rss_bw.png'
	}
	function MM_effectAppearFade(targetElement, duration, from, to, toggle)
	{
		Spry.Effect.DoFade(targetElement, {duration: duration, from: from, to: to, toggle: toggle});
	}
	function toggleTwitter()
	{
		if (document.getElementById('twitterWidget').style.display) 
		{
			document.getElementById('twitterWidget').style.display=="block" ;
			Spry.Effect.DoFade('twitterWidget', {duration: 250, from: 0, to: 100, toggle: false});
		}
		else
		{
		};
	}

	function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
	} 

    var map;
    var mgr;
    var geocoder;
    var allmarkers = [];



