﻿var BA = {
	
	init : function() {	
		 // Homepage ISP Feature
		 $(".hmSectionFeature h4").bind("mouseover", function(){
				var $wrap = $(this).parents(".hmSection");
				$wrap.find(".tabContent").hide();
				$wrap.find("h4").css({"backgroundPosition":"0 -62px", "color":"#000"});
				$(this).next("div").show();
				$(this).css({"backgroundPosition":"0 0", "color":"#186BAE"});			
				// click thru URL
				var href = $("#moreInfo",$wrap).attr("href").split("=")[0];
				$("#moreInfo",$wrap).attr("href", href+ "=" + $(this).parent()[0].id.substring(4));
		 });	 
		$(".hmSectionFeature a").bind("click", function(){
				pageTracker._trackEvent('HmFeature', 'Click', $(".hmSectionFeature h4:visible").text() );
		});
	},
	verifyCheckerForm : function (){
		if(document.getElementById("txtPostcode").value === '' || document.getElementById("txtPhone").value === '') {
			$("#message").html("Please enter your postcode and telephone number.");
			return false;
		};
	}
};

BA.init();











 function externalLinks() {
 
$("a[@rel='external']").click(function() { window.open($(this).href); return false; });
        
 /*$("a[@href^=http]")
   .not("[@href*='internal.com/']")
   .bind("click", "!window.open(this.href)");
   */
 } 
 
