slideShowURL = 'SlideShow_assets/SlideShow.html';       // parameter from openSlideShowWindow.js
slideShowNS4URL = 'SlideShow_assets/SlideShowNS4.html'; // parameter from openSlideShowWindow.js

slides = new Array();
slides[0] = new Slide('../Coffee_files/Mahawiet 739.jpg', '536', '800', 'The Yemen’s Highlands resulted from the formation of the Great Rift Valley system, millions of years ago. ');
slides[1] = new Slide('../Coffee_files/Mahawiet Bany Said 216.jpg', '536', '800', '');
slides[2] = new Slide('../Coffee_files/Mahawiet 883.jpg', '536', '800', 'The region benefits from the rains and clouds coming from the Red Sea.');
slides[3] = new Slide('../Coffee_files/Mahawiet 2 057.jpg', '536', '800', 'Mahawiet ');
slides[4] = new Slide('../Coffee_files/Burah 151.jpg', '536', '800', 'The area has excellent soil fertility and perfect climite for growing Coffee. Were rainfull is aboundant during spring and summer. The monsoonwinds that comes from India cause the rainfall in these area.');
slides[5] = new Slide('../Coffee_files/DSC_0065.jpg', '536', '800', 'Manakha has always been an important town, owing to its strategic position at 2,250 metres in the centre of the Heraz Mountains.');
slides[6] = new Slide('../Coffee_files/DSC_0092.jpg', '536', '800', 'Coffee cherries ripen eight months after flowering. When the coffee cherries has changed its color to a lucious red the beans inside are ready to be harvested.');
slides[7] = new Slide('../Coffee_files/Hajja 143.jpg', '536', '800', '');
slides[8] = new Slide('../Coffee_files/MZZ_0013_2.jpg', '536', '800', 'Ripen Coffee cherries.');
slides[9] = new Slide('../Coffee_files/DSC_0769.jpg', '536', '800', 'A man from al Hajjarah decorated by the coffee tree during a wedding');
slides[10] = new Slide('../Coffee_files/DSC_0759.jpg', '536', '800', '');
slides[11] = new Slide('../Coffee_files/DSC_0488.jpg', '536', '800', 'Al-Hajjarah. Religious opposition to coffee resulted in political proscription a number of times during the 16nt century. Central to the debate was whether drinking coffee fell under the same prohibition against intoxication as wine. Quahweh, coffee, was also a poetical word for wine. In 1511 the governor of Mecca prohibited coffee drinking, with severe punishment for any transgressor, and ordered all the stores of beans destroyed.');
slides[12] = new Slide('../Coffee_files/DSC_0032.jpg', '536', '800', 'Talouk. Gimmeiz, Sycamore fig (Ficus Sycomorus L.). The Sycamore tree grows in the warm climates of the sloops to Tihamah along the Red sea. The tree can grow up to 20 meters height and 2 meters in diameter. it grows in wadi beds on fill deposit and in places where water is not far from the surface.');
slides[13] = new Slide('../Coffee_files/DSC_0141.jpg', '536', '800', 'Al Talouk as called in Yemen, Gimmeiz, Sycamore fig. The fruits are not eaten by the locals');
slides[14] = new Slide('../Coffee_files/Hajja 255.jpg', '536', '800', 'It is native to this region, and it seems to extends to tropical east Africa according to some sources. ');
slides[15] = new Slide('../Coffee_files/DSC_0275.jpg', '536', '800', 'The timber of this tree was much used in general woodwork for its resistant to decay, and for its lightness ');
slides[16] = new Slide('../Coffee_files/DSC_0161.jpg', '536', '800', 'Its milky sap (Latex) was used as a remedy for snake and scorpion bites, and for skin diseases.\u000d\u000dThe white wood of is used very much like sandalwood. ');
slides[17] = new Slide('../Coffee_files/Hajja 104.jpg', '536', '800', 'The Sycamore tree grows in the same warm climates as the Coffeee tree and its often used as a shade to the Coffee plantations as seen in the photo, along with another tree called Tounob.');
slides[18] = new Slide('../Coffee_files/Hajja 164.jpg', '536', '800', 'Coffee plantation under a giant Talouk tree in Hajja');
slides[19] = new Slide('../Coffee_files/MZZ_0032.jpg', '536', '800', '');
slides[20] = new Slide('../Coffee_files/DSC_0578.jpg', '536', '800', '');
isPureISOLatin1 = true;
contentEncodingConstant = 4;
feedbackURL = "TODO";
showFeedbackButton = false;
feedbackEnabled = true;

var smallTransparentGif = "";
function fixupIEPNG(strImageID, transparentGif) 
{
    smallTransparentGif = transparentGif;
    if (windowsInternetExplorer && (browserVersion < 7))
    {
        var img = document.getElementById(strImageID);
        if (img)
        {
            var src = img.src;
            img.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='" + src + "', sizingMethod='scale')";
            img.src = transparentGif;
            img.attachEvent("onpropertychange", imgPropertyChanged);
        }
    }
}

var windowsInternetExplorer = false;
var browserVersion = 0;
function detectBrowser()
{
    windowsInternetExplorer = false;
    var appVersion = navigator.appVersion;
    if ((appVersion.indexOf("MSIE") != -1) &&
        (appVersion.indexOf("Macintosh") == -1))
    {
        var temp = appVersion.split("MSIE");
        browserVersion = parseFloat(temp[1]);
        windowsInternetExplorer = true;
    }
}

function onPageLoad()
{
    detectBrowser();
    fixupIEPNG("id1", "Coffee_files/transparent.gif");
    fixupIEPNG("id2", "Coffee_files/transparent.gif");
    fixupIEPNG("id3", "Coffee_files/transparent.gif");
    fixupIEPNG("id4", "Coffee_files/transparent.gif");
    fixupIEPNG("id5", "Coffee_files/transparent.gif");
    fixupIEPNG("id6", "Coffee_files/transparent.gif");
    fixupIEPNG("id7", "Coffee_files/transparent.gif");
    fixupIEPNG("id8", "Coffee_files/transparent.gif");
    fixupIEPNG("id9", "Coffee_files/transparent.gif");
    fixupIEPNG("id10", "Coffee_files/transparent.gif");
    fixupIEPNG("id11", "Coffee_files/transparent.gif");
    return true;
}

var inImgPropertyChanged = false;
function imgPropertyChanged()
{
    if ((window.event.propertyName == "src") && (! inImgPropertyChanged))
    {
        inImgPropertyChanged = true;
        var el = window.event.srcElement;
        if (el.src != smallTransparentGif)
        {
            el.filters.item(0).src = el.src;
            el.src = smallTransparentGif;
        }
        inImgPropertyChanged = false;
    }
}

