//global variables that can be used by ALL the function son this page.

//this function runs when the page is loaded, put all your other onload stuff in here too.
function init() {
}

function addBookmark(title, url) {
    if (window.sidebar) { // firefox
          window.sidebar.addPanel(title, url,"");
    } else if( document.all ) { //MSIE
            window.external.AddFavorite( url, title);
    } else {
           alert("Sorry, your browser doesn't support bookmarking");
    }
}

/*function loadingProgress(text, percent) {
    document.getElementById('loading_msg').innerHTML = text;     
    document.getElementById('progress').setAttribute('style', 'width: ' + percent + '%;');     
}*/

function loadingProgress(text, percent) {
	var pixels = Math.round(percent*1.18); 
    document.getElementById('loading_msg').innerHTML = text;     
    document.getElementById('progress').setAttribute('style', 'width: ' + pixels + 'px;');     
}

//window.onload = init;
