Home = {
    scroll: function() {
        var w = $(window).width();
        var tarx = 0;
        if (w < 1200) tarx = Math.max(-100, (1200 - w) * -.5);
        $('#interactiveContainer').css('left', tarx);
        $("html").css("overflow-x", w > 980 ? "hidden" : "auto");
    }
};
// window load
$().ready(function() {
    Home.scroll();
    var vars = {};
    if (window.home !== undefined) {
        vars.xmlFile = '/feeds/home/' + home;
    } else if (window.quotes !== undefined) {
        vars.xmlFile = '/feeds/home/?quotes=' + quotes;
    }

    var params = { bgcolor: '#FFFFFF', wmode: 'opaque' };
    var attributes = { id: 'homeFlash', name: 'homeFlash' };
    swfobject.embedSWF('/swfs/Home.swf', 'homeFlash', 1200, 559, '9.0.45', 'swfs/playerProductInstall.swf', vars, params, attributes, onSwfLoad);
});
function onSwfLoad(e) {
    if (!e.success) {
        $('#interactiveContainer').show();
    }
}
$(window).resize(function() {
    Home.scroll();
});

