$(document).ready( function() {
 
 //external window
 $('a[class="external"]').click( function() {
 window.open( $(this).attr('href') );
 return false;
 });

 //popup window
 $('a[class="popup"]').click(function(){
 window.open(this.href,'Popup','height=580,width=400,scrollTo,resizable=0,scrollbars=0,location=0,left=50,top=50','false');
 return false;
 });

 //print link	
	$('a[class="print"]').click(function() { 
	window.print(); 
	return false; 
	});
	
	//flash object
 $('#flash_banner').flash(
  { src: '/includes/flash/movie.swf',
    width: 460,
    height: 243
  }
 );

 //flash object - hide alternative content
 //$('div.alt').hide();

 //image rollover
 $("img.rollover").hover( 
	function() { 
	this.src = this.src.replace("_off.","_on."); 
	}, 
	function() { 
	this.src = this.src.replace("_on.","_off."); 
	});

	//dropdown menu - hover IE6
 $("li.hover").hover(function()
 {
 $(this).addClass("on");
 },
 function()
 {
 $(this).removeClass("on");
 });
	
 //forms - focus 
 $("input[type=password], input[type=text], textarea").focus(function() 
	{ 
		$(this).addClass("focus");  
	}); 
	$("input[type=password], input[type=text], textarea").blur(function() 
																																																																					{
	if ($(this).find(".focus")) { $(this).removeClass("focus"); 
	} 
	});	
	
	//forms - hover
 $("input.submit").hover(function()
 {
 $(this).addClass("hover");
 },
 function()
 {
 $(this).removeClass("hover");
 });

 //forms - auto submit
 $(".auto_submit").change(function() 
 {
  $(this.form).submit();
 });

 //forms - no javascript button
 $('.no_javascript').hide();

	//forms - validate
	//$("#form_contact").validate();

 //Google Analytics code
 //var gaTrackCode = "UA-6911197-1"; 
 //var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); 
 
 //jQuery.getScript(gaJsHost + "google-analytics.com/ga.js", function(){ 
 //var pageTracker = _gat._getTracker(gaTrackCode); 
 //pageTracker._initData(); 
 //pageTracker._trackPageview(); 
 //});
 
});