/**
 * 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('Map').getElementsByTagName('area'));
}

function AucklCal2010(){
    var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_jan_600.jpg',
		title:		'January',
        options:    {slideshowDelay:5}
    };
	
    var img2 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_feb_600.jpg',
		title:		'February',		
        options:    {slideshowDelay:5}
    };	

    var img3 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_mar_600.jpg',
		title:		'March',		
        options:    {slideshowDelay:5}
    };	
	
    var img4 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_apr_600.jpg',
		title:		'April',
        options:    {slideshowDelay:5}
    };
	
    var img5 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_may_600.jpg',
		title:		'May',		
        options:    {slideshowDelay:5}
    };	

    var img6 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_jun_600.jpg',
		title:		'June',		
        options:    {slideshowDelay:5}
    };	
	
    var img7 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_jul_600.jpg',
		title:		'July',
        options:    {slideshowDelay:5}
    };
	
    var img8 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_aug_600.jpg',
		title:		'August',		
        options:    {slideshowDelay:5}
    };	

    var img9 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_sep_600.jpg',
		title:		'September',		
        options:    {slideshowDelay:5}
    };	
	
    var img10 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_oct_600.jpg',
		title:		'October',
        options:    {slideshowDelay:5}
    };
	
    var img11 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_nov_600.jpg',
		title:		'November',		
        options:    {slideshowDelay:5}
    };	

    var img12 = {
        player:     'img',
        content:    'calendar2010/auckland-1-2010/images/auckl_dec_600.jpg',
		title:		'December',		
        options:    {slideshowDelay:5}
    };	
	
    var html = {
        player:     'iframe',
        content:    'calendar2010/buy_auckl_2010.html',
		title:		'Buy Calendar',			
        options:     options
    };	
		

    Shadowbox.open([img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,img11,img12, html]);
}

function NZCal2010(){
    var options = {
        continuous: true
    };

    var img1 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_jan_600.jpg',
		title:		'January',
        options:    {slideshowDelay:5}
    };
	
    var img2 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_feb_600.jpg',
		title:		'February',		
        options:    {slideshowDelay:5}
    };	

    var img3 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_mar_600.jpg',
		title:		'March',		
        options:    {slideshowDelay:5}
    };	
	
    var img4 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_apr_600.jpg',
		title:		'April',
        options:    {slideshowDelay:5}
    };
	
    var img5 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_may_600.jpg',
		title:		'May',		
        options:    {slideshowDelay:5}
    };	

    var img6 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_jun_600.jpg',
		title:		'June',		
        options:    {slideshowDelay:5}
    };	
	
    var img7 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_jul_600.jpg',
		title:		'July',
        options:    {slideshowDelay:5}
    };
	
    var img8 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_aug_600.jpg',
		title:		'August',		
        options:    {slideshowDelay:5}
    };	

    var img9 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_sep_600.jpg',
		title:		'September',		
        options:    {slideshowDelay:5}
    };	
	
    var img10 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_oct_600.jpg',
		title:		'October',
        options:    {slideshowDelay:5}
    };
	
    var img11 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_nov_600.jpg',
		title:		'November',		
        options:    {slideshowDelay:5}
    };	

    var img12 = {
        player:     'img',
        content:    'calendar2010/nz-2010/images/nz_dec_600.jpg',
		title:		'December',		
        options:    {slideshowDelay:5}
    };
	
    var html = {
        player:     'iframe',
        content:    'calendar2010/buy_nz_2010.html',
		title:		'Buy Calendar',			
        options:     options
    };		

    Shadowbox.open([img1,img2,img3,img4,img5,img6,img7,img8,img9,img10,img11,img12, html]);
}

window.onload = initDemos;
