/* main navigation */

$(document).ready(function(){
  $('#menu li ul').css({
    display: "none",
    left: "auto"
  });
  $('#menu li').hoverIntent(function() {
    $(this)
      .find('ul')
      .stop(true, true)
      .slideDown('fast');
  }, function() {
    $(this)
      .find('ul')
      .stop(true,true)
      .fadeOut('fast');
  });
});


/* accordion plugin */

$(document).ready(function(){
	
	if ($("#bottomsection .acc_container").length > 0)
	{
			$('#bottomsection').accordion({
				active: false,
				autoHeight: false,
				navigation: true,
				header: 'a.acc_link',
				collapsible: true,
				animated: 'easeOutQuad'
			});	
			
			$(".acc_link").click(function(event){
				  window.location.hash=this.hash;
			 });
	}
	 
});

/* submit rollover*/

$(document).ready(function(){
	$('#submit').hover(
		function(){ // Change the input image's source when we "roll on"
			$(this).attr({ src : 'images/submit-btn-over.gif'});
		},
		function(){ // Change the input image's source back to the default on "roll off"
			$(this).attr({ src : 'images/submit-btn.gif'});             }
	);
});





/* clears search box */
function clearDefault(el) 
{
if (el.defaultValue==el.value) el.value = ""
}

 /* google analytics  */
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19128707-1']);
  _gaq.push(['_setDomainName', '.stereotaxis.com']);
  _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);
  })();
 


//var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
//document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));

/* visistat  */

       
try {
var pageTracker = _gat._getTracker("UA-620247-7");
pageTracker._setDomainName(".stereotaxis.com");
pageTracker._trackPageview();
} catch(err) {}




var DID=76718;

var pcheck=(window.location.protocol == "https:") ? "https://sniff.visistat.com/live.js":"http://stats.visistat.com/live.js";

document.writeln('<scr'+'ipt src="'+pcheck+'" type="text\/javascript"><\/scr'+'ipt>');

