var n=0;

function updateLink(obj,linkID){
n=linkID;
obj.target='destra';
obj.href='/flash/filmati.asp?id='+linkID;
}

function updateLink2(obj,linkID){
n=linkID;
obj.target='destra';
obj.href='/flash/filmati2.asp?id='+linkID;
}


function restore(obj){
updateTitle(obj,n);
}


function updateTitle(obj,linkID){
var msg='';
if (linkID==0)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"> <br><br><br><br><br><br><br><br></span>';
else if (linkID==1)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Diabolik (trailer)<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Bongiorno Production<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Le sorelle diabolike (trailer)</span>';
else if (linkID==2)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Diabolik <br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Bongiorno Production<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Le sorelle diabolike (film/doc)</span>';
else if (linkID==3)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Valentino<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Bongiorno Productions<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Rudy. La vita di Rodolfo Valentino (film/doc)</span>';
else if (linkID==4)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Spirituality<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: IED<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Spirituality  (cortometraggio)</span>';
else if (linkID==5)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Garzantine<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: McCan Erickson<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Le nuove Garzantine (pubblicità TV)</span>';
else if (linkID==6)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Dynamo Camp<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: TBWA<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Dynamo Camp (pubblicità radio)</span>';
else if (linkID==7)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Affido<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Fondazione Affido Onlus<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Fondazione Affido (pubblicità TV)</span>';
else if (linkID==8)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Carillon<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Regia: Daniele Lince<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Carillon (cortometraggio)</span>';
else if (linkID==9)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Solo qualche domanda<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Regia: Laura Chiossone<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Solo qualche domanda (cortometraggio)</span>';
else if (linkID==10)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Eni (2008)<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Evolution Pictures<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Eni - consolidating growth </span>';
else if (linkID==11)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Eni (2009)<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Evolution Pictures<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Eni 2009 - strategy presentation </span>';
else if (linkID==12)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Agorà<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: Bongiorno Productions<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Agorà - Portofino (doc)</span>';
else if (linkID==13)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Dynamo Camp<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: TBWA<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Dynamo Camp (pubblicità TV)</span>';
else if (linkID==14)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">I Calendari di Max<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Cliente: SKY<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: I Calendari di Max (pubblicità TV)</span>';
else if (linkID==15)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">Mai così vicini<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Regia: Emanuele Ruggiero<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: Mai così vicini (cortometraggio)</span>';
else if (linkID==16)
	msg=msg+'<span style="color: #ffffff; font-weight: bolder; font-size: 15px;"><br><br><img src="/grafica/shim.gif" width="20" height="1">La foresta del ritmo<br><br></span><span style="color: #ffffff; font-size: 13px;"><img src="/grafica/shim.gif" width="20" height="1">Regia: Giacomo Frassica<br><br><img src="/grafica/shim.gif" width="20" height="1">Titolo: La foresta del ritmo (musical)</span>';

msg=msg+'';
document.getElementById("titlecontainer").innerHTML=msg;
}
	
	
var bustcachevar=1 //bust potential caching of external pages after initial request? (1=yes, 0=no) 
var loadedobjects="" 
var rootdomain="http://"+window.location.hostname 
var bustcacheparameter="" 
 
function ajaxpage(url, containerid){ 
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.onreadystatechange=function(){ 
loadpage(page_request, containerid) 
} 
if (bustcachevar) //if bust caching of external page 
bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime() 
page_request.open('GET', url+bustcacheparameter, true) 
page_request.send(null) 
} 
 
function loadpage(page_request, containerid){ 
if (page_request.readyState == 4 && (page_request.status==200 || window.location.href.indexOf("http")==-1)) 
document.getElementById(containerid).innerHTML=page_request.responseText 
} 
 
function loadobjs(){ 
if (!document.getElementById) 
return 
for (i=0; i<arguments.length; i++){ 
var file=arguments[i] 
var fileref="" 
if (loadedobjects.indexOf(file)==-1){ //Check to see if this object has not already been added to page before proceeding 
if (file.indexOf(".js")!=-1){ //If object is a js file 
fileref=document.createElement('script') 
fileref.setAttribute("type","text/javascript"); 
fileref.setAttribute("src", file); 
} 
else if (file.indexOf(".css")!=-1){ //If object is a css file 
fileref=document.createElement("link") 
fileref.setAttribute("rel", "stylesheet"); 
fileref.setAttribute("type", "text/css"); 
fileref.setAttribute("href", file); 
} 
} 
if (fileref!=""){ 
document.getElementsByTagName("head").item(0).appendChild(fileref) 
loadedobjects+=file+" " //Remember this object as being already added to page 
} 
} 
} 

	
