  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-11463990-4']);
  _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);
  })();
jQuery("#cse-search-box").ready(function(){
	jQuery("#cse-search-box input").css("border", "none"); 
});
  jQuery("#cse-search-results").ready(function(){jQuery(this).css("background", "#f2f2f2");});
jQuery(document).ready(function(){
	   jQuery("#contactform").validate();
	   jQuery("#contactform").submit(submitContact);
	   jQuery("#small_contactform").validate();
	   jQuery("#small_contactform").submit(submitContact);
		jQuery(function(){
			jQuery('ul.sf-menu').superfish({animation:{opacity:'show',height:'show'},speed:'normal', autoArrows:false});
		});
		jQuery("#top_contactform").submit(function(e) {
			var parameters = jQuery(this).serialize();
			jQuery(this).children("table").html("<tr><td valign='middle' align='center'><img src='images/loading.gif' /></td></tr>");
			jQuery.post("contact.php", parameters, function(data){jQuery("#top_contactform").children("table").html(data)});
			return false;
		});
		jQuery("#subscribe_newsletters").submit(function(e) {
			var parameters = jQuery(this).serialize();
			jQuery(this).children("table").html("<p align='center'><img src='images/loading.gif' /></p>");
			jQuery.post("subscribe.php", parameters, function(data){jQuery("#subscribe_newsletters").html(data)});
			return false;
		});
   });
	Cufon.replace('h1, h2, h3, h4, h5, h6', { hover: true });
	var formid;
	function submitContact(formid){
		formid = "#"+jQuery(this).attr("id");
		if(jQuery(formid).valid()){
			var parameters = jQuery(formid).serialize();
			jQuery(formid).parent().html("<img src=\"images/loading.gif\"/>");
			jQuery.post("contact.php", parameters, function(data){jQuery(formid+"_wrapper").html(data)});
			return false;
		}
	}
