if(location.protocol == 'http:'){
	var ssl = httpStr;
}else{
	var ssl = httpsStr;
}



//When the document is read
$(document).ready(function(){
	
	// initialise plugins
	jQuery(function(){
		jQuery('ul.sf-menu').superfish({
			delay:       200,							// one fifth of a second delay on mouseout
			autoArrows:  true,							// enable generation of arrow mark-up
			dropShadows: false							// disable drop shadows
		});
	});
	
});

function logTracking(d) {
	$("#tracer").html("<img src='track?id="+d+"'/>");
}


function changeButton(button, event){
	var src = button.attr("src").match(/[^\.]+/) + "";
	if(event.type == "mouseout"){	
		src = src.substring(0,src.length - 5 );
	}
	if(event.type == "mouseover"){	
		src = src + "_over";
	}
	button.attr("src", src + ".gif");
}

