var map = "";
var emailAddress1 = '';

var futura = { src: '/resources/flash/universalis.swf' };
sIFR.compatMode = true;
sIFR.activate(futura);

function doSifr() {

    sIFR.replace({
        selector: '.junior h1',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #EE8B1E; background-color: #ffffff;  text-transform: uppercase; leading: -2px; font-size: 31px }']
    });

    sIFR.replace({
        selector: 'h1',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #003B8D; background-color: #ffffff;  text-transform: uppercase; leading: -2px; font-size: 31px }']
    });

    sIFR.replace({
        selector: 'h2.bluePaneTitle',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #003B8D; background-color: #D9DEE8; font-size: 17px }']
    });

    sIFR.replace({
        selector: 'h2.orangePaneTitle',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #ffffff; background-color: #F98000; font-size: 17px }']
    });    

    sIFR.replace({
        selector: 'h2.brochurehead',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #003B8D; background-color: #ffffff; font-size: 22px }']
    });

    sIFR.replace({
        selector: 'h2.orangebrochurehead',
        opaque: true,
        src: '/resources/flash/universalis.swf',
        preventWrap: false,
        css: ['.sIFR-root { color: #ffffff; background-color: #F98000; font-size: 22px }']
    });          
    

}

    function clearData(thisBox, value)
	{
	    if(thisBox.value ==(value))
	    {
            thisBox.value = ("");
		thisBox.style.color = "#000000";    
	    }

          if (thisBox.value != "Password" && value=="Password")
          {
		thisBox.type = "password";
	    }
	}
	
	function resetData(thisBox, value)
	{
	    if(thisBox.value == (""))
	    {
            thisBox.value = value;
		thisBox.style.color = "#b2b2b2";
	    }

          if (thisBox.value == "Password")
          {
		thisBox.type = "text";
	    }
	}
function officeMap() {

    map = new GMap2(document.getElementById("map"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GOverviewMapControl());
    map.enableDoubleClickZoom();

    var pointCenter = new GLatLng(53.479722,-2.240111);

    map.setCenter(pointCenter, 13);

    var point1 = new GLatLng(53.479722,-2.240111);
    var marker1 = new GMarker(point1);
    GEvent.addListener(marker1, "click", function() { marker1.openInfoWindowHtml("<h2>Berlitz Manchester</h2><p>55 Mosley Street,<br />Manchester<br />M2 3HY</p>"); });


    map.addOverlay(marker1);

    //map.addOverlay(geoXml);

}

function germanMap() {

    map = new GMap2(document.getElementById("germanmap"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GOverviewMapControl());
    map.enableDoubleClickZoom();

    var pointCenter = new GLatLng(50.0789, 8.479085);

    map.setCenter(pointCenter, 13);

    var point1 = new GLatLng(50.0789, 8.479085);
    var marker1 = new GMarker(point1);
    GEvent.addListener(marker1, "click", function() { marker1.openInfoWindowHtml("<h2>ASE Germany Office</h2><p>Am Holzweg 26<br />65830 Frankfurt-Kriftel<br />Germany</p>"); });


    map.addOverlay(marker1);

    //map.addOverlay(geoXml);

}

function portugalMap() {

    map = new GMap2(document.getElementById("portugalmap"));
    map.addControl(new GSmallMapControl());
    map.addControl(new GOverviewMapControl());
    map.enableDoubleClickZoom();

    var pointCenter = new GLatLng(38.940385, -8.85777);

    map.setCenter(pointCenter, 13);

    var point1 = new GLatLng(38.940385, -8.85777);
    var marker1 = new GMarker(point1);
    GEvent.addListener(marker1, "click", function() { marker1.openInfoWindowHtml("<h2>ASE Portugal Office</h2><p>Urb. Belo Jardim, Lote D - 6<br />Samora Correia<br />2135-042 Samora Correia</p>"); });


    map.addOverlay(marker1);

    //map.addOverlay(geoXml);

}
	