function IncludeJavaScript(jsFile)
{
  document.write('<script type="text/javascript" src="'
    + jsFile + '"></script>'); 
}

IncludeJavaScript('../scr/prototype.js');
IncludeJavaScript('../scr/effects.js');
IncludeJavaScript('../scr/lightwindow.js');
IncludeJavaScript('../scr/lb/lb.js');


// --------------------------------------------------------------------------------------------------------------------
function showhide(pageelement) {
	if (document.getElementById('visibile').value == 'si')
	{
		document.getElementById(pageelement).style.display = 'none';
		document.getElementById('visibile').value = 'no';
	} else {
		document.getElementById(pageelement).style.display = '';
		document.getElementById('visibile').value = 'si';
	}
}


today=new Date()
var dateto=new Date(today.getFullYear(), 5, 26)//0,xx=gennaio
if (today.getMonth()==7 && today.getDate()>26)
dateto.setFullYear(dateto.getFullYear()+1)
var one_day=1000*60*60*24

var CountDown = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="254" height="38">'
                + '<param name="movie" value="../images/countdown.swf" />'
                + '<param name="quality" value="high" />'
			    + '<param name="wmode" value="transparent" /><param name="BGCOLOR" value="#404041" />'
                + '<embed src="../images/countdown.swf" width="254" height="38" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" bgcolor="#404041"></embed>'
                + '</object>';


function OpenLink(LinkToOpen) {
	document.location.href = LinkToOpen;
}


function ApriFile(UrlFile){
	var wh = 500
	var hh = 500
	var winl = (screen.width - wh) / 2;
	var wint = (screen.height - hh) / 2;
	window.open(UrlFile,"FilPre","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,width="+wh+",height="+hh+",top="+wint+",left="+winl+"");
}

function Iscrizione_it(){
        myLightWindow.activateWindow({ href: 'iscrizione.htm', 
		title: 'Iscrizione', caption: '', type: 'external', width: 650, height: 450 });
}

function Iscrizione_de(){
        myLightWindow.activateWindow({ href: 'iscrizione.htm', 
		title: 'Einschreibung', caption: '', type: 'external', width: 650, height: 450 });
}

function Iscrizione_en(){
        myLightWindow.activateWindow({ href: 'iscrizione.htm', 
		title: 'Enrolments', caption: '', type: 'external', width: 650, height: 450 });
}

function Video_Hero(){
	myLightWindow.activateWindow({ href: 'video_hero.htm', 
		title: 'VIDEO HERO', caption: '', type: 'external', width: 640, height: 490 });
}

function Video_Hero3D(){
	myLightWindow.activateWindow({ href: 'video_hero3d.htm', 
		title: 'VIDEO HERO 3D', caption: '', type: 'external', width: 640, height: 370 });
}

function Video_Tour(){
	myLightWindow.activateWindow({ href: 'video_tour.htm', 
		title: 'VIDEO TOUR', caption: '', type: 'external', width: 650, height: 480 });
}

function Video_Tour3D(){
	myLightWindow.activateWindow({ href: 'video_tour3d.htm', 
		title: 'VIDEO TOUR 3D', caption: '', type: 'external', width: 640, height: 370 });
}

function Newsletter_it() {
	window.open("../newsletter/pop_iscrizione.asp?l=it","PopNewsletter","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=400,height=320")
}

function Newsletter_de() {
	window.open("../newsletter/pop_iscrizione.asp?l=de","PopNewsletter","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=400,height=320")
}

function Newsletter_en() {
	window.open("../newsletter/pop_iscrizione.asp?l=en","PopNewsletter","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=400,height=320")
}


function TourIscrizione_it(){
	myLightWindow.activateWindow({ href: 'tour_iscrizione_pop.htm', 
		title: 'Iscrizione', caption: '', type: 'external', width: 740, height: 450 });
}

function TourIscrizione_de(){
	myLightWindow.activateWindow({ href: 'tour_iscrizione_pop.htm', 
		title: 'Einschreibung', caption: '', type: 'external', width: 740, height: 450 });
}

function TourIscrizione_en(){
	myLightWindow.activateWindow({ href: 'tour_iscrizione_pop.htm', 
		title: 'Subscription', caption: '', type: 'external', width: 740, height: 450 });
}


function Organizzazione_it(){
	myLightWindow.activateWindow({ href: 'hero_organizzazione_pop.htm', 
		title: 'Comitato organizzatore', caption: '', type: 'external', width: 740, height: 470 });
}

function Organizzazione_de(){
	myLightWindow.activateWindow({ href: 'hero_organizzazione_pop.htm', 
		title: 'Organisationskomitee', caption: '', type: 'external', width: 740, height: 470 });
}

function Organizzazione_en(){
	myLightWindow.activateWindow({ href: 'hero_organizzazione_pop.htm', 
		title: 'Organising commitee', caption: '', type: 'external', width: 740, height: 470 });
}
