
function startSlide()
{ var date = new Date();

	date.setTime(date.getTime() + (365 * 100 * 24 * 60 * 60 * 1000));
	
	$('.box .box_center').hide();

	/*HOMEPAGE **************************************************************/
	if(!$.cookie('VIEW0')) $.cookie('VIEW0', '1', { expires: date });
	if(!$.cookie('VIEW1')) $.cookie('VIEW1', '0', { expires: date });
	if(!$.cookie('VIEW2')) $.cookie('VIEW2', '1', { expires: date });
	
	/*3 *********************************************************************/
	if(!$.cookie('VIEW7')) $.cookie('VIEW7', '1', { expires: date });

	/*4 *********************************************************************/
	if(!$.cookie('VIEW5')) $.cookie('VIEW5', '1', { expires: date });
	if(!$.cookie('VIEW6')) $.cookie('VIEW6', '1', { expires: date });
	
	/*5 *********************************************************************/
	$('.showit .box_center').show();
	
	/*7 *********************************************************************/
	if(!$.cookie('VIEW3')) $.cookie('VIEW3', '1', { expires: date });
	if(!$.cookie('VIEW4')) $.cookie('VIEW4', '1', { expires: date });
	
	/*8 *********************************************************************/
	if(!$.cookie('VIEW8')) $.cookie('VIEW8', '1', { expires: date });
	
	/*9 SEARCH *********************************************************************/
	if(!$.cookie('VIEW9')) $.cookie('VIEW9', '0', { expires: date });

	
	/*HOMEPAGE **************************************************************/
	if($.cookie('VIEW0')=='1')
		$('.box #block0').next().next().show();
	else
		$('.box #block0').next().next().hide();

 	if($.cookie('VIEW1')=='1')
		$('.box #block1').next().next().show();
	else
		$('.box #block1').next().next().hide();

	if($.cookie('VIEW2')=='1')
		$('.box #block2').next().next().show();
	else
		$('.box #block2').next().next().hide();
	
	/*3 ******************************************************************/
	if($.cookie('VIEW7')=='1')
		$('.box #block7').next().next().show();
	else
		$('.box #block7').next().next().hide();

	/*4 ******************************************************************/
	if($.cookie('VIEW5')=='1')
		$('.box #block5').next().next().show();
	else
		$('.box #block5').next().next().hide();
		
	if($.cookie('VIEW6')=='1')
		$('.box #block6').next().next().show();
	else
		$('.box #block6').next().next().hide();
	
	/*7 ***************************************************************/
	if($.cookie('VIEW3')=='1')
		$('.box #block3').next().next().show();
	else
		$('.box #block3').next().next().hide();

 	if($.cookie('VIEW4')=='1')
		$('.box #block4').next().show();
	else
		$('.box #block4').next().hide();
		
	/*7 ***************************************************************/
	if($.cookie('VIEW8')=='1')
		$('.box #block8').next().next().show();
	else
		$('.box #block8').next().next().hide();
		
	/*9 SEARCH ***************************************************************/
	/*
	if($.cookie('VIEW9')=='1')
		$('.box #block9').next().next().show();
	else
		$('.box #block9').next().next().hide();
	//*/
	
	
	/*HOMEPAGE *****************************************************/
	$('.box #block0').click(
		function() {
			
			if($.cookie('VIEW0')=='1')
				$.cookie('VIEW0', '0', { expires: date });
			else
				$.cookie('VIEW0', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	$('.box #block1').click(
		function() {
			
			if($.cookie('VIEW1')=='1')
				$.cookie('VIEW1', '0', { expires: date });
			else
				$.cookie('VIEW1', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	$('.box #block2').click(
		function() {
			
			if($.cookie('VIEW2')=='1')
				$.cookie('VIEW2', '0', { expires: date });
			else
				$.cookie('VIEW2', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	
	/*3 *******************************************************************/
	$('.box #block7').click(
		function() {
			
			if($.cookie('VIEW7')=='1')
				$.cookie('VIEW7', '0', { expires: date });
			else
				$.cookie('VIEW7', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	/*4 *******************************************************************/
	$('.box #block5').click(
		function() {
			
			if($.cookie('VIEW5')=='1')
				$.cookie('VIEW5', '0', { expires: date });
			else
				$.cookie('VIEW5', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	$('.box #block6').click(
		function() {
			
			if($.cookie('VIEW6')=='1')
				$.cookie('VIEW6', '0', { expires: date });
			else
				$.cookie('VIEW6', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);

	
	/*7 *******************************************************************/
	$('.box #block3').click(
		function() {
			
			if($.cookie('VIEW3')=='1')
				$.cookie('VIEW3', '0', { expires: date });
			else
				$.cookie('VIEW3', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	$('.box #block4').click(
		function() {
			
			if($.cookie('VIEW4')=='1')
				$.cookie('VIEW4', '0', { expires: date });
			else
				$.cookie('VIEW4', '1', { expires: date });
			
			$(this).next().slideToggle('normal');
			return false;
		}
	);
	
	/*8 *******************************************************************/
	$('.box #block8').click(
		function() {
			
			if($.cookie('VIEW8')=='1')
				$.cookie('VIEW8', '0', { expires: date });
			else
				$.cookie('VIEW8', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	/*9 SEARCH *******************************************************************/
	$('.box #block9').click(
		function() {
			
			if($.cookie('VIEW9')=='1')
				$.cookie('VIEW9', '0', { expires: date });
			else
				$.cookie('VIEW9', '1', { expires: date });
			
			$(this).next().next().slideToggle('normal');
			return false;
		}
	);
	
	
	var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
	if(is_chrome==true)
	{
		$('.box .box_center').show();
		$('.box #block1').next().next().hide();
		$('.box #block9').next().next().hide();
	}//Chrome fix

}

$(document).ready(function() {startSlide();});