/* Copyright (C) 2007 - 2010 YOOtheme GmbH, YOOtheme Proprietary Use License (http://www.yootheme.com/license) */

jQuery(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.bottom2 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);


});
/* Match height of div tags */
function matchHeights() {
    Warp.Base.matchHeight('div.headerbox div.deepest', 20);
    Warp.Base.matchHeight('div.topbox div.deepest', 20);
    Warp.Base.matchHeight('div.topbox2 div.deepest', 20);
    Warp.Base.matchHeight('#bottom div.bottombox div.deepest', 20);
    Warp.Base.matchHeight('div.bottombox2 div.deepest', 20);
    Warp.Base.matchHeight('#bottom2 div.bottombox div.deepest', 20);
    Warp.Base.matchHeight('div.maintopbox div.deepest', 20);
    Warp.Base.matchHeight('div.mainbottombox div.deepest', 20);
    Warp.Base.matchHeight('div.contenttopbox div.deepest', 20);
    Warp.Base.matchHeight('div.contentbottombox div.deepest', 20);
    Warp.Base.matchHeight('#left, #right, #contentleft, #contentright', 20);
}
