Current File : /home/virtualki/22346/old/script/main_en.js
$(function() {

	window.CascadeController = {
		'currentHash'       : '',
		'previousHash'      : '#!/main',

		'cascade'           : {

			'first' : $('.cascade.first').cascade({
				'about-us'				:	{ tab: 'tab-1',		html:'about_us.php',		js: '',			main:1,		openStart:0 },
				'produce'				:	{ tab: 'tab-2',		html:'produce.php',		js: '',			main:1,		openStart:0 },
				'more'						:	{ tab: 'tab-3',		html:'more.php',				js: '',			main:1,		openStart:0 },
				'contact'					:	{ tab: 'tab-4',		html:'contact.php',			js: '',			main:1,		openStart:0 }
			}),

			'second' : $('.cascade.second').cascade({
				'products'				:	{ tab:'tab-5',		html:'products.php',		js: '',			main:1,		openStart:0 },
				'supplier'				:	{ tab:'tab-6',		html:'supplier.php',		js: '',			main:1,		openStart:0 },
				'customer'				:	{ tab:'tab-7',		html:'customer.php',		js: '',			main:1,		openStart:0 },
				'play'						:	{ tab:'tab-8',		html:'play.php',				js: '',			main:1,		openStart:0 }
			})

		}
	};

	$('#products-slider').nivoSlider({effect: 'slideInLeft', slices: 1, boxCols: 1, boxRows: 1, directionNav: false, controlNav: false, pauseOnHover: false}).css('height', '256px');
	Hyphenator.run();

	// call $.cookieJar()
	$.cookie('megiw_lang', 'en');
	$.cookieJarEn({
		cookieName: 'megiwCookieJarEN',
		action: 'prependTo',
		target: 'body',
		finalOpacity: 1,
		message: {
			css: {
				position: 'relative',
				bottom: 0,
				padding: '11px',
				backgroundColor: '#ccc',
				borderBottom: '2px solid #D04519',
			}
		},
		closeButton: {
			text: '[CLOSE]',
			css: {
				top: '4px',
				right: '8px',
				color: '#D04519'
			}
		}
	});
});