
$(document).ready(function(){
var sitebody = $('body');
if(!$('body').attr('id')) {
$('body').attr('id', 'iv_home_page_id');
}
// ad tag that will passthru the javascript custom name=value pairs from the ad server
if((typeof(railAdBg)!='undefined')&&(railAdBg)) {
$('#network-hat-wrap').css({'width':'1000px', 'margin':'auto'});
// site specific custom background code.
sitebody.css({'background-image':'url('+railAdBg+')'});
}
if((typeof(railAdBgColor)!='undefined')&&(railAdBgColor)) {
// site specific custom background color code.
sitebody.css({'background-color':'#'+railAdBgColor});
}
if((typeof(railAdBgRepeat)!='undefined')&&(railAdBgRepeat)) {
// site specific custom background repeat code.
sitebody.css({'background-repeat':railAdBgRepeat});
}
sitebody.css({'background-attachment':'scroll','background-position':'top center'});
if((typeof(railAdBgClickthru)!='undefined')&&(railAdBgClickthru)) {
// site specific custom background click event code.
//////////sitebody.css({'min-height':'1500px'});
sitebody.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 == sitebody.attr('id')) {
window.open(railAdBgClickthru);
}
});
$('#'+sitebody.attr('id')).bind('mouseenter',function () {
$(this).css('cursor','default');
});
$('#'+sitebody.attr('id')).bind('mouseleave',function () {
$(this).css('cursor','default');
});
}
});