
function loadMap() {
	//var infoWinContent = "<table id='map_contacts'><tr><td class='immagine'><img src='http://www.burstnet.it/images/logo.png' alt='Burstnet Informatica'/></td><td class='testo'><b>Burstnet Informatica</b><br/>Via Zanardi 389/A<br/>40131 Bologna</td></tr></table>";
	
	var infoWinContent = "<table id='map_contacts'><tr><td class='immagine'><img src='http://www.burstnet.it/images/logo.png' alt='Burstnet Informatica'/></td><td class='testo'><b>Burstnet Informatica</b><br/>Via Zanardi 2/10<br/>40131 Bologna</td></tr></table>";

	if (GBrowserIsCompatible()) {
		var map = new GMap2(document.getElementById("map"), {mapTypes:[G_NORMAL_MAP,G_HYBRID_MAP,G_SATELLITE_MAP]}); 
		map.addControl(new GLargeMapControl());
		map.addControl(new GMapTypeControl());
		//var point = new GLatLng(44.532544,11.315069);
		var point = new GLatLng(44.502944,11.332669);
		map.setCenter(point, 11);
		

		var marker = new GMarker(point);
		GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(infoWinContent); })
		map.addOverlay(marker);
		marker.openInfoWindowHtml(infoWinContent);
	}
}


function sendStats(tipo) {
	try {
		xmlAjaxRequest("/ajax.php", "report_click&tipo=" + encodeURIComponent(tipo), null, null, "");

	} catch(error) {
		;
	}
}


function showPopupRichiesta(tipo) {
    try {
	    if(tipo == "-1") {
	    	var div = document.getElementById('form_richiesta');
	    	div.style.visibility = 'hidden';
	    	div.style.display = 'none';
	    	var div = document.getElementById('form_dettaglio');
	    	div.style.visibility = 'visible';
	    	div.style.display = 'block';

	    } else {
	    	var div = document.getElementById('form_richiesta');
	    	div.style.visibility = 'visible';
	    	div.style.display = 'block';
	    	var div = document.getElementById('form_dettaglio');
	    	div.style.visibility = 'hidden';
	    	div.style.display = 'none';
		sendStats(tipo);
            }

            var div = document.getElementById('popup_sfondo');
            if(div.style.display == 'block') {
                    div.style.display = 'none';
                    div = document.getElementById('popup_container');
                    div.style.display = 'none';
                    return;
            }
	    
            var pageTop = document.documentElement.scrollTop;
            var pageWidth = document.documentElement.clientWidth;
            var pageHeight = document.documentElement.clientHeight;

	    var sizeTop = pageTop;
            try {
                    if(ie6 != true)
                            sizeTop = 0;
            } catch(error) {
                    sizeTop = 0;
            }

            div.style.top = sizeTop + 'px';
            div.style.height = pageHeight + 'px';
            div.style.width = pageWidth + 'px';
            div.style.display = 'block';

            div = document.getElementById('popup_container');
            div.style.display = 'block';

            var popupWidth = getOffset('popup_container', 'width');
            var popupHeight = getOffset('popup_container', 'height');

            var newTop = pageTop + (pageHeight / 2) - (popupHeight / 2);
            var newLeft = (pageWidth / 2) - (popupWidth / 2);

            div.style.top = newTop + 'px';
            div.style.left = newLeft + 'px';
           
	    var form = div.getElementsByTagName('form')[0];
	    form.action = "javascript: sendRichiesta(" + tipo + ");";

    } catch(error) {
    	;
    }
}


function sendRichiesta(tipo) {
    try {
            var nominativo = encodeURIComponent(document.getElementById('nominativo').value);
            var email = encodeURIComponent(document.getElementById('email').value);
            var richiesta = encodeURIComponent(document.getElementById('richiesta').value);
            var oggetto = encodeURIComponent(document.getElementById('oggetto').value);
            if(document.getElementById('privacy').checked == true)
                    var privacy = "&privacy=1";
            else {
            		alert("Errore: per poter inviare la richiesta, è necessario accettare il trattamento dei dati personali");
            		return;
            }
            
            xmlAjaxRequest("/ajax.php", "richiesta&tipo=" + tipo, "nominativo=" + nominativo + "&email=" + email + "&oggetto=" + oggetto + "&richiesta=" + richiesta + privacy, result_sendRichiesta, "xml");

    } catch(error) {
	alert("Errore: impossibile inviare la richiesta");
    }
}


function result_sendRichiesta(xml) {
    if(checkXml(xml) == false)
            return;

    try {
            var msg = xml.getElementsByTagName('message')[0].firstChild.nodeValue;
            alert(msg);

            document.getElementById('nominativo').value = "";
            document.getElementById('email').value = "";
            document.getElementById('oggetto').value = "";
            document.getElementById('richiesta').value = "";
            document.getElementById('privacy').checked = false;
            
	    var div = document.getElementById('popup_sfondo');
            if(div.style.display == 'block') {
                    div.style.display = 'none';
                    div = document.getElementById('popup_container');
                    div.style.display = 'none';
            }

    } catch(error) {
            alert("Errore: impossibile inviare la richiesta");
    }
}


function showGalleryImg(urlimg) {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 800px; height: 600px;'>";
	html += "<img src='" + urlimg + "' alt=''/>";
	html += "</div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showComputerEconomico() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder;'>Computer economico + monitor: &euro; 399,90 (iva inclusa)</div>";
	html += "<ul id='computer_componenti' style='margin-bottom: 10px;'>";
	html += "<li><b>Processore</b> Intel Core 2 Duo E5700 3,0Ghz Cache 2MB FSB 800Mhz</li>";
	html += "<li><b>Hard Disk</b> 500GB Western Digital SATA2 Buffer 32MB 7200rpm</li>";
	html += "<li><b>Scheda grafica</b> Intel GMA310</li>";
	html += "<li><b>RAM</b> 2GB DDR2 800Mhz Kingstone</li>";
	html += "<li><b>Masterizzatore DVD-RW</b> LG GH22NS50 SATA</li>";
	html += "<li><b>Monitor</b> AOC 18.5\" LCD WLED E943Fws</li>";
	html += "<li><b>Scheda madre</b> Asus P5KPL-AM Epu</li>";
	html += "<li><b>Mouse</b> Logitech B110</li>";
	html += "<li><b>Tastiera</b> Logitech 250 Deluxe</li>";
	html += "<li><b>Case</b> con alimentatore 500W</li>";
	html += "<li><b>Installazione Ubuntu 11.04</b> (*)</li>";
	html += "</ul>";
	html += "<div>*: in alternativa a Ubuntu si può scegliere l'installazione di un diverso sistema operativo (Microsoft Windows), a condizione che sia fornito dal cliente o acquistato in aggiunta al computer.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(7);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showComputerPerformante() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder;'>Computer ultra performante: &euro; 1599,00 (iva esclusa)</div>";
	html += "<ul id='computer_componenti' style='margin-bottom: 10px;'>";
	html += "<li><b>Processore</b> Intel Core I7 3,4Ghz Cache 8MB</li>";
	html += "<li><b>Scheda grafica</b> SVGA Nvidia Quadro PNY VCQ2000-PB 1GB DDR5 PCI16x 2560x1600 1DVI/VGA + 2DP</li>";
	html += "<li><b>2 Hard Disk</b> 2TB Western Digital WD2002FAEX SATA3 Buffer 64MB 7200rpm</li>";
	html += "<li><b>RAM</b> 16GB DDR3 1600Mhz Corsair 9-9-9 Vegeance 1.5V</li>";
	html += "<li><b>Masterizzatore Blu-Ray Disc</b> LG DVR BH08LS20 SATA</li>";
	html += "<li><b>Case</b> Cooler Master Centurion 5 II Silver</li>";
	html += "<li><b>Alimentatore</b> Enermax 620W EES620AWT ECO</li>";
	html += "<li><b>Scheda madre</b> Asus P8H67</li>";
	html += "<li><b>Windows 7 Professional</b> 64 bit</li>";
	html += "<li><b>Lettore SD Card</b></li>";
	html += "<li><b>Tastiera e mouse Logitech</b></li>";
	html += "<li><b>Installazione e configurazione sistema operativo</b></li>";
	html += "</ul>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(7);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoInformaticabase() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso di informatica base</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> questo corso si propone di spiegare i concetti informatici di base, necessari per poter utilizzare in modo sicuro ed autonomo il personal computer. Gli argomenti trattati illustrano le caratteristiche ed il funzionamento dell'hardware (scheda madre, disco fisso, memorie RAM, ecc.) e dei principali software (il Sistema Operativo e gli applicativi pi&ugrave; utilizzati: Word, Excel, Access, PowerPoint).<br/>La parte finale del corso verte su Internet (come ottimizzare le ricerche in Internet e utilizzare la posta elettronica), sui relativi software (Internet Explorer, Mozilla Firefox, Google Chrome), e sulla sicurezza informatica (come evitare virus e altre minacce informatiche).</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso non sono necessarie competenze informatiche pregresse.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoAssemblatore() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso per assemblatore di personal computer</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> questo corso insegna ad assemblare, integrare e riparare un personal computer dal punto di vista hardware (scheda madre, hard disk, memoria ram, schede video o musicale ecc.). Il corsista, attraverso prove pratiche su un personal computer a sua disposizione, impara ad assemblare i componenti e a diagnosticare e riparare i guasti hardware.</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso non sono necessarie competenze informatiche pregresse.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoLinuxbase() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso di base Linux</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> questo corso insegna ad utilizzare il sistema operativo Linux e i software applicativi pi&ugrave; importanti.<br/>Durante il corso, dopo una breve introduzione sui concetti dell'open source e della filosofia che la caratterizza, vengono spiegate le nozioni informatiche che sono alla base del funzionamento di Linux. Si prosegue con l'installazione del sistema operativo (Ubuntu) e con la spiegazione dei software presenti nel sistema. Si impara poi ad installare e disinstallare i programmi Linux ed a districarsi nelle operazioni di routine quotidiana.</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso non sono necessarie competenze informatiche pregresse.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoEcdl() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso ECDL (European Computer Driving Licence) - Patente europea del computer</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> il corso si articola in 7 moduli.<br/><br/><ol style='list-style-type: decimal; padding-left: 20px; list-style-position: outside;'><li>Concetti teorici di base</li><li>Uso del Computer e gestione dei file</li><li>Elaborazione testi</li><li>Foglio elettronico</li><li>Basi di dati</li><li>Strumenti di presentazione</li><li>Reti informatiche</li></ol><br/>Tutti i moduli sono conformi alle specifiche Syllabus e cio&egrave; alla certificazione europea che descrive in dettaglio ci&ograve; che il candidato deve sapere e saper fare per conseguire l'ECDL.<br/>E' prevista la possibilit&agrave; di frequentare il corso completo o i soli moduli che interessano.</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso non sono necessarie competenze informatiche pregresse.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}



function showCorsoGestionereti() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso per gestione reti informatiche</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> questo corso si propone l'obiettivo di formare l'amministratore di rete e cio&egrave; quella figura informatica professionale che si occupa della progettazione, dello sviluppo, della realizzazione, della verifica e del controllo dei sistemi di connessione LAN (Local Area Network – rete locale di computer) e WAN (Wide Area Network – rete territoriale di computer).<br/>Gli argomenti trattati spaziano dallo studio delle tecniche di ottimizzazioni dell'hardware sino all'analisi delle tecniche di amministrazione di un server sia in ambiente Windows che Linux. Durante il corso vengono spiegati tutti i concetti e gli elementi che sono alla base delle reti informatiche (mezzi trasmissivi, apparati di rete, virtualizzazione dei sistemi operativi, ecc.).</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso sono necessarie ottime conoscenze dei sistemi operativi.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoWebmaster() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso per Webmaster</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> questo corso si prefigge il compito di formare un esperto informatico in grado di creare e gestire un sito web sia statico che dinamico. Saranno trattati i principali linguaggi di programmazione HTML, XHTML, PHP e i CSS. Una parte del corso sar&agrave; dedicata ai database ed in particolare all'analisi del codice MySQL.</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso &egrave; richiesta la conoscenza di base del linguaggio HTML.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}


function showCorsoAmministratoreunix() {

try {
	var html = "<div class='chiusura'>";
	html += "<img src='/images/chiudi.png' onclick='javascript: showPopupRichiesta(-1);' alt=''/>";
	html += "</div>";
	html += "<div style='margin-top: 20px; width: 500px;'>";
	html += "<div style='margin-bottom: 20px; font-weight: bolder; font-size: 105%;'>Corso per amministratore di rete in sistemi UNIX</div>";
	html += "<div style='margin-bottom: 20px; line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Descrizione:</span> &egrave; un corso molto specialistico e si prefigge l'obiettivo di formare operatori informatici in grado di amministrare sistemi UNIX.<br/>Ai partecipanti viene spiegato come ottimizzare e monitorare le periferiche e i servizi presenti nel sistema. Parte del corso &egrave; dedicata al troubleshooting (processo di ricerca logica e sistematica delle cause di un problema) e alla messa in sicurezza del sistema. Saranno trattati argomenti riguardanti la gestione degli utenti, il backup e la virtualizzazione dei sistemi. L'ultima parte del corso sar&agrave; dedicata al shell scripting e cio&egrave; ad apprendere quelle operazioni tipiche, eseguite da programmi script, finalizzate all'automazione delle routine quotidiane che un &ldquo;buon&rdquo; amministratore di rete deve saper compiere.</div>";
	html += "<div style='line-height: 110%;'><span style='color: #cccccc; font-weight: bolder;'>Requisiti:</span> per questo corso sono richieste conoscenze di base dei sistemi Unix e un'ottima conoscenza informatica del computer.</div>";
	html += "</div>";
	html += "<div style='margin-top: 30px; margin-bottom: 10px; text-align: center;'><a href='javascript: showPopupRichiesta(-1); showPopupRichiesta(20);'><img src='/images/btn_contattaci.jpg' alt='Richiedi maggiori informazioni'/></a></div>";

	var div = document.getElementById('form_dettaglio');
	div.innerHTML = html;
	
	showPopupRichiesta(-1);

} catch(error) {
	;
}

}

