/**
 * 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:     650,
        width:      805,
        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

//TOT HIER

window.onload = initDemos;