/**
 * Note: The functions contained in this file are for demonstration purposes
 * only and are not necessary in your own project.
 */

function initDemos(){
    // setup flash gallery demo, use a css selector
    Shadowbox.setup('a.flash-gallery', {
        gallery:        'Flash',
        continuous:     true,
        counterType:    'skip',
        animSequence:   'sync'
    });

    // setup image map demo
    Shadowbox.setup(document.getElementById('hongkongmap').getElementsByTagName('area'));
}

function demoGoogleMaps(){
    Shadowbox.open({
        player:     'html',
        content:    '',
        height:     300,
        width:      500,
        options:    {
            onFinish: function(item){
                if(GBrowserIsCompatible()){
                    var body = document.getElementById(Shadowbox.contentId());
                    var map = new GMap2(body);
                    map.setCenter(new GLatLng(37.4419, -122.1419), 13);

                    // add 10 markers to the map at random locations
                    var bounds = map.getBounds();
                    var southWest = bounds.getSouthWest();
                    var northEast = bounds.getNorthEast();
                    var lngSpan = northEast.lng() - southWest.lng();
                    var latSpan = northEast.lat() - southWest.lat();
                    for(var i = 0; i < 10; i++){
                        var point = new GLatLng(southWest.lat() + latSpan * Math.random(),
                            southWest.lng() + lngSpan * Math.random());
                        map.addOverlay(new GMarker(point));
                    }

                    // add some simple controls
                    map.addControl(new GSmallMapControl());
                    map.addControl(new GMapTypeControl());
                }
            }
        }
    });
}

function demoMessage(){
    Shadowbox.open({
        player:     'html',
        content:    '<div style="text-align:center;padding-top:10px;">You\'re using <a href="http://www.shadowbox-js.com">Shadowbox</a>!</div>',
        height:     100,
        width:      200
    });
}
/** VANAF HIER ZAKEN TOEVOEGEN
**/
/**DEMO
function demoGallery(){
    var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'illustraties/konijnvoskleur.jpg',
		title:      'Konijn Vos Kleur',
        options:    options
    };
	var img2 = {
        player:     'img',
        content:    'illustraties/vogelsnr2kleur.jpg',
		title:      'Voogjes',
        options:    options
    };

    var video1 = {
        player:     'iframe',
        content:    'http://www.youtube.com/v/0wJ3eIErXAs', // LET op de manier van invoeren Youtube Link!
        height:     340,
        width:      405,
        title:      'Dramatic Look',
        options:    options
    };
	
	var html1 = {
        player:     'iframe',
        content:    'http://www.rikvanschendel.com/', // LET op de manier van invoeren Youtube Link!
        height:     450,
        width:      500,
        title:      'Dramatic Look',
        options:    options
    };

    Shadowbox.open([video1, img2, img1, html1]);
}**/

//NIEUWS
function nieuws(){
    var options = {
        continuous: true
    };

	var html1 = {
        player:     'iframe',
        content:    'nieuws.html', // LET op de manier van invoeren Youtube Link!
        height:     600,
        width:      750,
        title:      'NIEUWS',
        options:    options
    };

    Shadowbox.open([html1]);
}
//NIEUWS EINDE

//LAB
function lab(){
    var options = {
        continuous: true
    };

	var html1 = {
        player:     'iframe',
        content:    'lab.html', // LET op de manier van invoeren Youtube Link!
        height:     600,
        width:      750,
        title:      'LAB',
        options:    options
    };

    Shadowbox.open([html1]);
}
//LAB EINDE

//CV
function cv(){
    var options = {
        continuous: true
    };

	var html1 = {
        player:     'iframe',
        content:    'cv.html', // LET op de manier van invoeren Youtube Link!
        height:     600,
        width:      770,
        title:      'CV / PUBLICATIES',
        options:    options
    };

    Shadowbox.open([html1]);
}
//CV EINDE

//LINKS
function linksrik(){
    var options = {
        continuous: true
    };

	var html1 = {
        player:     'iframe',
        content:    'links.html', // LET op de manier van invoeren Youtube Link!
        height:     600,
        width:      750,
        title:      'LINKS',
        options:    options
    };

    Shadowbox.open([html1]);
}
//LINKS EINDE

//CONTACT
function contact(){
    var options = {
        continuous: true
    };

	var html1 = {
        player:     'iframe',
        content:    'contact.html', // LET op de manier van invoeren Youtube Link!
        height:     600,
        width:      750,
        title:      'CONTACT',
        options:    options
    };

    Shadowbox.open([html1]);
}
//CONTACT EINDE



//plex
function plex(){
var options = {
        continuous: true
    };
	var video1 = {
        player:     'iframe',
        content:    'http://www.youtube.com/v/wwdb7XI78-M', // LET op de manier van invoeren Youtube Link!
        height:     505,
        width:      640,
        title:      'Bos op PLEX#1',
        options:    options
    };

    var img1 = {
        player:     'img',
        content:    'plaatjes/2010/denbosch/plex01.jpg',
		title:      'Bioelektronica caliphora [2010, interactief, elektronica e.a. materialen]',
        options:    options
    };
    var img2 = {
        player:     'img',
        content:    'plaatjes/2010/denbosch/plex02.jpg',
		title:      'Bioelektronica lepidoptera [2010, interactief, elektronica e.a. materialen]',
        options:    options
    };
	var img3 = {
        player:     'img',
        content:    'plaatjes/2010/denbosch/plex03.jpg',
		title:      'Bioelektronica nicrophorus [2010, interactief, elektronica e.a. materialen]',
        options:    options
    };
    var img4 = {
        player:     'img',
        content:    'plaatjes/2010/denbosch/plex04.jpg',
		title:      'Bos [2010, interactieve instalatie, div. materialen]',
        options:    options
    };
    Shadowbox.open([video1, img1, img2, img3, img4]);
}
//plex EINDE

//zeeëgel
function zeeegel(){
var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'plaatjes/2010/zeeegel/zeeegel1.jpg',
		title:      'Bioelektronica echinoidea [2010, tin en elektronica]',
        options:    options
    };
    var img2 = {
        player:     'img',
        content:    'plaatjes/2010/zeeegel/zeeegel2.jpg',
		title:      'Bioelektronica echinoidea [2010, tin en elektronica]',
        options:    options
    };
    Shadowbox.open([img1, img2]);
}
//zeeegel EINDE

//POLLEN
function pollen(){
var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'plaatjes/2010/pollen/pollen01.jpg',
		title:      'Pollen [2010, brons en beton]',
        options:    options
    };
	    var img2 = {
        player:     'img',
        content:    'plaatjes/2010/pollen/pollen02.jpg',
		title:      'Pollen [2010, brons en beton]',
        options:    options
    };
	    var img3 = {
        player:     'img',
        content:    'plaatjes/2010/pollen/pollen03.jpg',
		title:      'Pollen [2010, brons en beton]',
        options:    options
    };
	var html1 = {
        player:     'iframe',
        content:    'plaatjes/2010/pollen/pollen.html', // LET op de manier van invoeren Youtube Link!
        height:     500,
        width:      640,
        title:      'Pollen [2010, brons en beton]',
        options:    options
    };

    Shadowbox.open([img1, img2, img3, html1]);
}
//POLLEN EINDE

//danseres
function danseres(){
var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'plaatjes/2010/danseres/danseres01.jpg',
		title:      'Danseres [2010, brons]',
        options:    options
    };
	    var img2 = {
        player:     'img',
        content:    'plaatjes/2010/danseres/danseres02.jpg',
		title:      'Danseres [2010, brons]',
        options:    options
    };
	    var img3 = {
        player:     'img',
        content:    'plaatjes/2010/danseres/danseres03.jpg',
		title:      'Danseres [2010, brons]',
        options:    options
    };
    Shadowbox.open([img1, img2, img3]);
}
//danseres EINDE

//echinoidea 2010
function echinoidea(){
var options = {
        continuous: true
    };
	var video1 = {
        player:     'iframe',
        content:    'http://www.youtube.com/v/xAluy7I2O3I', // LET op de manier van invoeren Youtube Link!
        height:     505,
        width:      640,
        title:      'Bos op PLEX#1',
        options:    options
    };
    var img1 = {
        player:     'img',
        content:    'plaatjes/2010/echinoidea/echinoideadijkmagazijn01.jpg',
		title:      'Echinoidea in dijkmagazijn te Winssen [brons]',
        options:    options
    };
	    var img2 = {
        player:     'img',
        content:    'plaatjes/2010/echinoidea/echinoideadijkmagazijn02.jpg',
		title:      'Echinoidea in dijkmagazijn te Winssen [brons]',
        options:    options
    };

    Shadowbox.open([video1, img1, img2]);
}
//echinoidea2010 EINDE
//TOT HIER

window.onload = initDemos;
