function demoGallery(){

    var img = {
        player:     'img',
        content:    'gallery/greatwall.jpg',
        title:      'Image Test'
    };

    var video = {
        player:     'iframe',
        content:    'http://www.youtube.com/v/y8Kyi0WNg40&amp;autoplay=1',
        height:     340,
        width:      405,
        title:      'Dramatic Look'
    };

    var items = [img,video,img,img];

    openGallery(Math.floor(Math.random() * items.length),items,false,'default','5',"drag");
};

function openGallery(initialNum, items,continuous, counterType,counterLimit, handleOversize)
{
    /*
        Item Object:
            player - player used
            content - contents
            width - width of the shadowbox contents
            height - height of the shadowbox contents
            title - title of the shadowbox contents
    */
    /*alert(initialNum);   */
    Shadowbox.open(items, {continuous: continuous, counterType:counterType, counterLimit:counterLimit, handleOversize:handleOversize});
    if (items.length > 1) Shadowbox.change(initialNum);
};