var $intervalId = 0;

//check for search
$search = window.location.href.indexOf('?');

// check for cookie and redirect to appropriate language
$newCookie = $.readCookie( 'langLanguage' );
if( $newCookie && $search < 0)
{
	if( $newCookie != "en" && window.location.pathname == "/" )
	{
		var newLocation = window.location.href + $newCookie; 
		window.location.replace(newLocation);
	}
}
$(document).ready(function() {

	$intervalId = setInterval( "slideSwitch()",5000 );
	$(".ceebox").ceebox();
	
	initSwitcher();
	
});

	