if((typeof(railAdBg)!='undefined')&&(railAdBg))
{
// site specific custom background code.
jqN('body').css({'background-image':'url('+railAdBg+')','background-position':'center top'})
}
if((typeof(railAdBgColor)!='undefined')&&(railAdBgColor))
{
// site specific custom background color code.
jqN('body').css({'background-color':'#'+railAdBgColor.replace(/#/,'')});
}
if((typeof(railAdBgRepeat)!='undefined')&&(railAdBgRepeat))
{
// site specific custom background repeat code.
jqN('body').css({'background-repeat':railAdBgRepeat});
}
else
{
	jqN('body').css({'background-repeat':'no-repeat!important'});
}
//jqN('body').css({'background':(typeof(railAdBgColor)!='undefined')&&railAdBgColor? '#'+railAdBgColor+' ':'') + (typeof(railAdBg)!='undefined')&&railAdBg?'url('+railAdBg+')':'') + (typeof(railAdBgRepeat)!='undefined')&&railAdBgRepeat?railAdBgRepeat : 'no-repeat center top')});

/*jqN('body').css({'background':((typeof(railAdBgColor)!='undefined')&&(railAdBgColor)? '#'+ railAdBgColor: '') + ((typeof(railAdBg)!='undefined')&&(railAdBg)?'url('+railAdBg+')':'')+ 'center top '+ ((typeof(railAdBgRepeat)!='undefined')&&(railAdBgRepeat)?railAdBgRepeat:'no-repeat!important')});*/


if((typeof(railAdBgClickthru)!='undefined')&&(railAdBgClickthru))
{
// site specific custom background click event code.
jqN('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 == jqN('body').attr('id')) {
window.open(railAdBgClickthru);
}
});
jqN('#'+jqN('body').attr('id')).bind('mouseenter',function () {
//jqN(this).css('cursor','pointer');
});
jqN('#'+jqN('body').attr('id')).bind('mouseleave',function () {
//jqN(this).css('cursor','default');
});
}

