// ad tag that will passthru the javascript custom name=value pairs from the ad server 
jQuery.noConflict();

// site specific custom background code. 
if((typeof(railAdBg)!='undefined')&&(railAdBg)) { 
  jQuery('body').css({'background-image':'url('+railAdBg+')'}) 
} 

// site specific custom background color code. 
if((typeof(railAdBgColor)!='undefined')&&(railAdBgColor)) { 
	jQuery('body').css({'background-color':'#'+railAdBgColor}); 
} 

// site specific custom background repeat code. 
if((typeof(railAdBgRepeat)!='undefined')&&(railAdBgRepeat)) { 
  jQuery('body').css({'background-repeat':railAdBgRepeat}); 
} 

jQuery('body').css({'background-attachment':'fixed'});

// site specific custom background click event code. 
if((typeof(railAdBgClickthru)!='undefined')&&(railAdBgClickthru)) { 
  jQuery('body').click(function (e) { 
	  evt = e || window.event; 
		if (e.target) targ = e.target; 
		else if (e.srcElement) targ = e.srcElement; 
		if (targ.nodeType == 3) 
		// Safari bug 
		targ = targ.parentNode; 
		if (targ.id == jQuery('body').attr('id')) { 
		  window.open(railAdBgClickthru); 
		} 
	}); 
	jQuery('#'+jQuery('body').attr('id')).bind('mouseenter',function () { 
	  jQuery(this).css('cursor','pointer'); 
	}); 
	jQuery('#'+jQuery('body').attr('id')).bind('mouseleave',function () { 
	  jQuery(this).css('cursor','default'); 
	}); 
}
