
function returnObjById( id ) { 
    if (document.getElementById) 
        var returnVar = document.getElementById(id); 
    else if (document.all) 
        var returnVar = document.all[id]; 
    else if (document.layers) 
        var returnVar = document.layers[id]; 
    return returnVar; 
}

function scrollHeaderBackground( id ) { 
    h = returnObjById( id );
    if ( typeof( window[ 'header_background_pos' ] ) == "undefined" ) header_background_pos = 462;
    header_background_pos-=1;
    if (header_background_pos == 0)
         h.style.backgroundRepeat = 'repeat-x';
    h.style.backgroundPosition = header_background_pos.toString()+'px';
}

function autoScrollHeaderBackground() { 
    scrollHeaderBackground( 'header' );
    setTimeout("autoScrollHeaderBackground()", 200);	
}

function startHeaderBackground() { 
    setTimeout("autoScrollHeaderBackground()", 3000);	
}

