﻿var f;

function onLoad() {

    // Set optimal DIV size
    document.getElementById("flashcontent").style.height = (screen.height - 300) + "px";

    f = new SWFObject("viewer.swf", "viewer", "100%", "100%", "8", "#ffffff");
    OpenGallery(1);
}

function OpenGallery(galleryNumber) {

    var Name = "gallery-Desenhos-" + galleryNumber

    // Open's a gallery
    // SIMPLEVIEWER CONFIGURATION OPTIONS
    // To use an option, uncomment it by removing the "//" at the start of the line
    // For a description of config options, go to: 
    // http://www.airtightinteractive.com/simpleviewer/options.html

    //f.addVariable("firstImageIndex", "5");	
    //f.addVariable("langOpenImage", "Open Image in New Window");
    //f.addVariable("langAbout", "About");
    f.addVariable("frameColor", "0xFFFFFF");
    f.addVariable("xmlDataPath", "Resources/Desenhos/" + Name + "/" + Name + ".xml");
    f.addVariable("preloaderColor", "0xffffff");
    f.write("flashcontent");
}

/*
function onLoad() {

    document.getElementById("flashcontent").style.height = (screen.height - 300) + "px";
    
    var fo = new SWFObject("TiltViewer.swf", "viewer", "100%", "100%", "9.0.28", "#222222");

    // TILTVIEWER CONFIGURATION OPTIONS
    // To use an option, uncomment it by removing the "//" at the start of the line
    // For a description of config options, go to: 
    // http://www.airtightinteractive.com/projects/tiltviewer/config_options.html

    //FLICKR GALLERY OPTIONS
    // To use images from Flickr, uncomment this block
    //fo.addVariable("useFlickr", "true");
    //fo.addVariable("user_id", "48508968@N00");
    //fo.addVariable("tags", "jump,smile");
    //fo.addVariable("tag_mode", "all");
    //fo.addVariable("showTakenByText", "true");			

    // XML GALLERY OPTIONS
    // To use local images defined in an XML document, use this block		
    fo.addVariable("useFlickr", "false");
    fo.addVariable("xmlURL", "Resources/Desenhos/gallery-Desenhos-1/gallery.xml");
    fo.addVariable("maxJPGSize", "448");

    //GENERAL OPTIONS		
    fo.addVariable("useReloadButton", "false");
    fo.addVariable("columns", "5");
    fo.addVariable("rows", "5");
    //fo.addVariable("showFlipButton", "true");
    //fo.addVariable("showLinkButton", "true");		
    //fo.addVariable("linkLabel", "View image info");
    //fo.addVariable("frameColor", "0xFF0000");
    //fo.addVariable("backColor", "0xDDDDDD");
    fo.addVariable("bkgndInnerColor", "0x000000");
    fo.addVariable("bkgndOuterColor", "0x222222");				
    //fo.addVariable("langGoFull", "Go Fullscreen");
    //fo.addVariable("langExitFull", "Exit Fullscreen");
    //fo.addVariable("langAbout", "About");				

    // END TILTVIEWER CONFIGURATION OPTIONS

    fo.addParam("allowFullScreen", "true");
    fo.write("flashcontent");
}
*/