/**
* @author    JoomlaShine.com http://www.joomlashine.com
* @copyright Copyright (C) 2008 - 2011 JoomlaShine.com. All rights reserved.
* @license   GNU/GPL v2 http://www.gnu.org/licenses/gpl-2.0.html
*/
var JSNTemplate= {
	_templateParams:		{},

	initOnDomReady: function()
	{
		if (!_templateParams.enableMobile) {
			// Menu dropdown setup
			JSNUtils.setDropdownMenu("menu-mainmenu", 0, {});
		}
	},

	initOnLoad: function()
	{
		if (!_templateParams.enableMobile) {
			// Setup vertical positions of stickleft, stickright positions
			JSNUtils.setVerticalPosition("jsn-pos-stick-leftmiddle", 'middle');
			JSNUtils.setVerticalPosition("jsn-pos-stick-rightmiddle", 'middle');

			// Fix IE6 PNG issue
			if (JSNUtils.isIE6()) {
				DD_belatedPNG.fix('#jsn-logo img, .menu-topmenu a, ul.menu-mainmenu a, ul.menu-mainmenu ul, .menu-treemenu span, .breadcrumbs a, .breadcrumbs span, .createdate, .list-arrow li');
			}
		}
	},

	initTemplate: function(templateParams)
	{
		// Store template parameters
		_templateParams = templateParams;
		
		// Init template on "domready" event
		window.addEvent('domready', JSNTemplate.initOnDomReady);

		// Init template on "load" event
		JSNUtils.addEvent(window, 'load', JSNTemplate.initOnLoad);
	}
}

