﻿/*
* Copyright (C) 2009-2012 Solmead Productions
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
*  - GNU General Public License Version 2 or later (the "GPL")
*    http://www.gnu.org/licenses/gpl.html
*
*  - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
*    http://www.gnu.org/licenses/lgpl.html
*
*  - Mozilla Public License Version 1.1 or later (the "MPL")
*    http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*/
$(document).ready(function () {
    $('.BannerArea')
        .before('<div id="banner_nav">')
        .cycle({
            fx: 'scrollLeft',
            timeout: 10000,
            delay: -1000,
            sync: true,
            pager: '#banner_nav'
        });

    $('.BannerArea a').click(function () {
        $('.BannerArea').cycle('stop');
    });
    if (!System.IsIphone()) {
        $('.BannerArea').hover(function () {
            $("#banner_nav").fadeIn('slow');
        }, function () {

        });
    } else {
        $("#banner_nav").fadeIn('slow');
    }
});
