/*****************************************************************

* Flash Fix script

* Fixes embedded object activation issues in Internet Explorer

*****************************************************************/
flashfix = function() {

theObjects = document.getElementsByTagName("object");

for (var i = 0; i < theObjects.length; i++) {

theObjects[i].outerHTML = theObjects[i].outerHTML;

}

} 

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function search(){ 
  if( document.getElementById('isk').value != "" ) {
  	document.getElementById('sf').submit();
  } 
}
/*****************************************************************

ajaxStaticInclude

*****************************************************************/

function ajaxStaticInclude(url) {
var page_request = false
if (window.XMLHttpRequest) // if Mozilla, Safari etc
page_request = new XMLHttpRequest()
else if (window.ActiveXObject){ // if IE
try {
page_request = new ActiveXObject("Msxml2.XMLHTTP")
} 
catch (e){
try{
page_request = new ActiveXObject("Microsoft.XMLHTTP")
}
catch (e){}
}
}
else
return false
page_request.open('GET', url, false) //get page synchronously 
page_request.send(null)
writecontent(page_request)
}

function writecontent(page_request){
if (window.location.href.indexOf("http")==-1 || page_request.status==200)
document.write(page_request.responseText)
}
/*****************************************************************

indietro(http_ref)

*****************************************************************/
var pages = new Array(); //viene creato l'array
pages[0]="scheda.shtml";
pages[1]="approfondimenti.shtml";
pages[2]="trama.shtml";
pages[3]="news.shtml";
pages[4]="catalogo.shtml";
pages[5]="articolo.shtml";
pages[5]="schedaACQ.shtml";
function indietro(http_ref) {
	var prima = http_ref;
	if(prima.indexOf("videojukebox.it")> 0){window.history.go(-1);return}
	/*
	var i=0;
	while(i<pages.length) {
		if(prima.indexOf(pages[i])> 0){window.history.go(-1);return}
		i++;
	}
	*/
	//if ((prima.indexOf("scheda.shtml")> 0) || (prima.indexOf("approfondimenti.shtml")> 0) || (prima.indexOf("trama.shtml")> 0))
	//	window.history.go(-1);
	window.location.href = "/index.shtml";
}


