/* Author: 
	Benjamin Buddle... with help from the internet :D
*/


/* ==|== footer fade effect
		http://jqueryfordesigners.com/image-fade-revisited/ ===================================================== */
$(function () {
	if ( $.browser.msie && $.browser.version < 7 ) return; // if the browser is IE6 then don't run this
	
	$('#footer_banner li')
		.removeClass('highlight')
		.find('a')
		.append('<span class="hover" />').each(function () {
			var $span = $('> span.hover', this).css('opacity', 0);
			$(this).hover(function (){
				$span.stop().fadeTo(250,1); //fade in
			}, function (){
				$span.stop().fadeTo(750,0); //fade out
			});
		});
		
		
/*
  This script is adapted from the one at http://www.thatagency.com/design-studio-blog/2008/09/quick-and-painless-email-spam-protection-using-jquery/
*/
  $(document).ready(function(){
      var maskEmlId = "#mask-eml";
      if($(maskEmlId).html()){
        $(maskEmlId).html('<a href="mailto:'+$(maskEmlId).html().replace('|','@').replace('/','').replace(':','.')+'" title="Email: '+$(maskEmlId).html().replace('|','@').replace('/','')+'">'+$(maskEmlId).html().replace('|','&#64;').replace('/','').replace(':','&#46;').replace('e', '&#101;').replace('c', '&#99;')+'</a>');
      };
   
	var srcurl = gup('lpsrc');
	$("#inf_custom_LandingPageSource0").val(srcurl);
	var adsrcurl =  $.getUrlVar('a');
	$("#inf_custom_ADSrc").val(adsrcurl);
 
	$("#s").attr("placeholder", "Search...");
 	
  });
});






















