/* Copyright (C) YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

(function($){

	$(document).bind('ready', function() {

		/* Accordion menu */
		$('.menu-accordion').accordionMenu({ mode:'slide' });

		/* Dropdown menu */
		$('#menu').dropdownMenu({ mode: 'diagonal', dropdownSelector: 'div.dropdown' }).dropdownMenu("matchUlHeight");

		/* Smoothscroll */
		$('a[href="#page"]').smoothScroller({ duration: 500 });

		/* Match height of div tags */
		$('div.headerbox div.deepest').matchHeight(20);
		$('div.topbox div.deepest').matchHeight(20);
		$('div.bottombox div.deepest').matchHeight(20);
		$('div.maintopbox div.deepest').matchHeight(20);
		$('div.mainbottombox div.deepest').matchHeight(20);
		$('div.contenttopbox div.deepest').matchHeight(20);
		$('div.contentbottombox div.deepest').matchHeight(20);

                $('.game1').hover(
                    function() {
                        $('.cap1').css('top', '0px');
                    },
                    function() {
                        $('.cap1').css('top', '70px');
                    }
                );
                $('.game2').hover(
                    function() {
                        $('.cap2').css('top', '0px');
                    },
                    function() {
                        $('.cap2').css('top', '70px');
                    }
                );
                $('.game3').hover(
                    function() {
                        $('.cap3').css('top', '0px');
                    },
                    function() {
                        $('.cap3').css('top', '70px');
                    }
                );
                $('.game4').hover(
                    function() {
                        $('.cap4').css('top', '0px');
                    },
                    function() {
                        $('.cap4').css('top', '70px');
                    }
                );
	});

})(jQuery);
