
preload01 = new Image();
preload01.src = "../images/menu/home-over.png";
preload02 = new Image();
preload02.src = "../images/menu/contact-over.png";
preload03 = new Image();
preload03.src = "../images/menu/about-over.png";
preload20 = new Image();
preload20.src = "../images/menu/projects-over.png";
preload04 = new Image();
preload04.src = "../images/home-thumb1-over.png";
preload05 = new Image();
preload05.src = "../images/home-thumb2-over.png";
preload06 = new Image();
preload06.src = "../images/home-thumb3-over.png";
preload07 = new Image();
preload07.src = "../images/home-thumb4-over.png";
preload08 = new Image();
preload08.src = "../images/home-thumb5-over.png";
preload09 = new Image();
preload09.src = "../images/caption_victoria.png";
preload10 = new Image();
preload10.src = "../images/caption_vedo.png";
preload11 = new Image();
preload11.src = "../images/caption_villa_ersilia.png";
preload12 = new Image();
preload12.src = "../images/caption_l_arc.png";
preload13 = new Image();
preload13.src = "../images/caption_uptown.png";
preload14 = new Image();
preload14.src = "../images/skype-over.png";
preload15 = new Image();
preload15.src = "../images/facebook-over.png";
preload16 = new Image();
preload16.src = "../images/youtube-over.png";
preload17 = new Image();
preload17.src = "../images/contact-skype-over.png";
preload18 = new Image();
preload18.src = "../images/contact-facebook-over.png";
preload19 = new Image();
preload19.src = "../images/contact-youtube-over.png";

if (!document.layers) {
    var captions = new Array();
    captions[0] = ""
    captions[1] = ""
    captions[2] = ""
    captions[3] = ""
    captions[4] = ""
    captions[5] = ""
}

function homePreview(visibility, image, caption) {
    document.getElementById('divPreview').style.visibility = visibility;
    document.getElementById('divCaption').style.visibility = visibility;
    document.getElementById('divPreview').innerHTML = "<img src='images/" + image + "' />";
    document.getElementById('divCaption').innerHTML = "<img src='images/" + caption + "' />";
}

function showForm(visibility) {
    document.getElementById('divContactForm').style.visibility = visibility;
}

if (!document.layers) {
    var victoriacaptions = new Array();
    victoriacaptions[1] = "Left side view of the entire project";
    victoriacaptions[2] = "Crowning the green hill of Aramoun";
    victoriacaptions[3] = "Breathtaking views of the Mediterranean and the surrounding verdant stretches";
    victoriacaptions[4] = "Your city's master plan";
    victoriacaptions[5] = "1<sup>st</sup> to 7<sup>th</sup> floor: Two 3-bedroom flats<br/>8<sup>th</sup> floor: One 3-bedroom flat with terrace, 270-degree view<br/>9th floor: One 3-bedroom flat<br/>10th & 11th floor: Duplex 5-bed-room flat<br/>Sizes of flats range from 167.5 to 338 sqm";
    victoriacaptions[6] = "1st to 8<sup>th</sup> floor: three 2-bedroom flats<br>9<sup>th</sup> to 12<sup>th</sup> floor: two 3-bedroom flats<br>13th floor: 3-bedroom penthouses<br>Sizes of flats range from 128 to 219 sqm";
    victoriacaptions[7] = "1st to 7<sup>th</sup> floor: 3-bedroom flats<br>8th to 10th floor: two 2-bedroom flats<br>11th floor: 3-bedroom penthouse<br>Sizes of flat range from 141 to 183 sqm";
    victoriacaptions[8] = "1st to 6<sup>th</sup> floor: four two-bedroom flats<br>7th to 8th floor: two 3-bedroom flats<br>9th & 10th floors: two 4-bedroom duplex flats<br>Sizes of flats range from 128 to 299 sqm";
    victoriacaptions[9] = "Ground floor to 2nd floor: 2-bedroom flats<br>3rd & 4th floor: 3-bedroom flats.<br>Sizes of flats of 125 to 207 sqm";

    var victoriatitles = new Array();
    victoriatitles[1] = "A town of its own";
    victoriatitles[2] = "Bird eye-view";
    victoriatitles[3] = "Perspective over real view - 5th floor, Bloc F";
    victoriatitles[4] = "Master Plan";
    victoriatitles[5] = "Bloc E: 11-floor bldg";
    victoriatitles[6] = "Bloc F and G: 13-floor bldgs.";
    victoriatitles[7] = "Bloc I: 11-floor bldg.";
    victoriatitles[8] = "Blog J: 10-floor bldg.";
    victoriatitles[9] = "Bloc K and L: twin 5-floor bldgs.";

    var larccaptions = new Array();
    larccaptions[1] = "A resort and a wedding venue standing on the hills of Maghdouche";
    larccaptions[2] = "The chill-out lounge by the swimming pool";
    larccaptions[3] = "The swimming pool at sunset, a heavenly experience";
    larccaptions[4] = "\"Paves\" the way to your one-of-a-kind experience";
    larccaptions[5] = "Appropriately equipped and designed to host your dream wedding party";
    larccaptions[6] = "L'Arc offers you prime service in a prime location";

    var larctitles = new Array();
    larctitles[1] = "Front view of the completed project";
    larctitles[2] = "Front view";
    larctitles[3] = "The swimming pool";
    larctitles[4] = "View of the entrance";
    larctitles[5] = "The wedding room";
    larctitles[6] = "The Sunday buffet";
    

    var vedocaptions = new Array();
    vedocaptions[1] = "Vedo Pregassona is one of the breakthrough projects of Switzerland";
    vedocaptions[2] = "Vedo Pregassona is located on a hill in Pregassona a district of the city of Lugano, the Italian area of Switzerland";
    vedocaptions[3] = "The project overlooks the Cassone river and the spectacular Lugano mountains. mediterranean, minimalist, and modern touch";
    vedocaptions[4] = "Minimalist finishing with clear curves, glass windows, and American-style kitchens";
    vedocaptions[5] = "Minimalist finishing with clear curves, glass windows, and American-style kitchens";
    vedocaptions[6] = "A glimpse of the stunning view";
    vedocaptions[7] = "Vedo Pregassona's sunset experience!";
    vedocaptions[8] = "Full view of the 4 buildings";
    vedocaptions[9] = "Private parking spaces with lift access to flats";

    var vedotitles = new Array();
    vedotitles[1] = "Building no. 1";
    vedotitles[2] = "Building no. 2";
    vedotitles[3] = "Building no. 3";
    vedotitles[4] = "Inside view";
    vedotitles[5] = "Inside view";
    vedotitles[6] = "Balcony view";
    vedotitles[7] = "Balcony view sunset";
    vedotitles[8] = "Full project view";
    vedotitles[9] = "Building no. 3";

    var uptowncaptions = new Array();
    uptowncaptions[1] = "A modern and exclusive architectural project strategically located in downtown Ghaziyeh ";

    var uptowntitles = new Array();
    uptowntitles[1] = "Front view";
     
    var villaersiliacaptions = new Array();
    villaersiliacaptions[1] = "A \"VVIP\" residential project in Lugano strategically positioned at a walking-distance from downtown Lugano";
    villaersiliacaptions[2] = "The refined interior says it all about the elegance and luxury of this posh residential project";
    villaersiliacaptions[3] = "Ground-floor flat with a view of Monte Br&#232 in the distance";
    villaersiliacaptions[4] = "Spacious, comfy, and fully-equipped kitchens";
    villaersiliacaptions[5] = "The all-round balconies ensure a full panoramic view of the eye-catching sceneries";
    villaersiliacaptions[6] = "Monte Br&#232 and Lugano bay sum up the classiness and grandeur of the Villa Ersilia's project";

    var villaersiliatitles = new Array();
    villaersiliatitles[1] = "Partial side view";
    villaersiliatitles[2] = "Inside view";
    villaersiliatitles[3] = "Inside view";
    villaersiliatitles[4] = "Inside view";
    villaersiliatitles[5] = "Outside view";
    villaersiliatitles[6] = "The view";
}

function projectPreview(project, id) {

    document.getElementById("divLoad1").style.display = "block";
    var src = 'images/projects/' + project + '/preview/' + project + '-' + id + '.jpg';
    var loader = new ImageLoader(src);

    loader.loadEvent = function(url, image) {
    document.getElementById('img' + project + 'Preview').src = 'images/projects/' + project + '/preview/' + project + '-' + id + '.jpg';
    if (project == 'victoria') {
        document.getElementById('lbl' + project + 'Caption').innerHTML = victoriacaptions[id];
        document.getElementById('lbl' + project + 'Title').innerHTML = victoriatitles[id];
    }
    else if (project == 'larc') {
        document.getElementById('lbl' + project + 'Caption').innerHTML = larccaptions[id];
        document.getElementById('lbl' + project + 'Title').innerHTML = larctitles[id];
    }
    else if (project == 'vedo') {
        document.getElementById('lbl' + project + 'Caption').innerHTML = vedocaptions[id];
        document.getElementById('lbl' + project + 'Title').innerHTML = vedotitles[id];
    }

    else if (project == 'uptown') {
        document.getElementById('lbl' + project + 'Caption').innerHTML = uptowncaptions[id];
        document.getElementById('lbl' + project + 'Title').innerHTML = uptowntitles[id];
    }
    else if (project == 'villa-ersilia') {
        document.getElementById('lbl' + project + 'Caption').innerHTML = villaersiliacaptions[id];
        document.getElementById('lbl' + project + 'Title').innerHTML = villaersiliatitles[id];
    }
        document.getElementById("divLoad1").style.display = "none";
    }
    loader.load();

}
