﻿// JScript File
var bookmarktitle="Salentu.net - Portale turistico del Salento"

function addbookmark(){
if (document.all) window.external.AddFavorite(document.URL, bookmarktitle)
}

function clearPreloadPage() { //DOM
	if (document.getElementById){
			document.getElementById('prepage').style.visibility='hidden';
	}
	else {
		if (document.layers){ //NS4
				document.prepage.visibility = 'hidden';
		}
		 else { //IE4
				document.all.prepage.style.visibility = 'hidden';
		}
	}
}

function Loading() { 
    document.write('<div id="prepage" class="loading"><img src="/Layout/Img/ajax-loader.gif"></div>')
}

function backButtonOverride() {
    // Work around a Safari bug
    // that sometimes produces a blank page
    setTimeout("backButtonOverrideBody()", 1);

}

function backButtonOverrideBody() {
    // Works if we backed up to get here
    try {
        history.forward();
    } catch (e) {
        // OK to ignore
    }
    // Every quarter-second, try again. The only
    // guaranteed method for Opera, Firefox,
    // and Safari, which don't always call
    // onLoad but *do* resume any timers when
    // returning to a page
    setTimeout("backButtonOverrideBody()", 500);
}

