function afficher(ID){
	
	$('#nagrakudelski').animate( { width:"225px" }, { queue:false, duration:600 } );
	$('#nagrakudelski').css("opacity", "0.1");
	
	$(ID).animate( { width:"524px" }, { queue:false, duration:600 } );	
	
	$(ID+'_top').animate( { width:"524px" }, { queue:false, duration:600 } );
	$(ID+'_icon').animate( { width:"524px" }, { queue:false, duration:600 } );
	$(ID+'_icon').css("margin-left", "0px");
	$(ID+'_icon').css("float", "right");
	$(ID+'_on').css("opacity", "1");
					
	$(ID+' .title').animate( { width:"0px" }, { queue:false, duration:600 } );	
	$(ID+' .title').hide();
	$(ID+' .title img').hide();
	
	$(ID+'_img img.thumb').animate( { width:"0px" }, { queue:false, duration:600 } );	
	$(ID+'_img img.thumb').hide();
	$(ID+'_img img').css("float", "left");

}

function masquer(ID){

	ID = "#"+ID;

	$(ID).animate( { width:"74px" }, { queue:false, duration:600 } );
	$(ID+'_top').animate( { width:"74px" }, { queue:false, duration:600 } );
	$(ID+'_icon').animate( { width:"74px" }, { queue:false, duration:600 } );
	$(ID+'_on').css("opacity", "0");
					
	$(ID+' .title').animate( { width:"74px" }, { queue:false, duration:600 } );	
	$(ID+' .title').show();
	$(ID+' .title img').css({display:'block'});
	$(ID+' .title img').css("float", "right");
	
	$(ID+'_img img.thumb').animate( { width:"74px" }, { queue:false, duration:600 } );	
	$(ID+'_img img.thumb').show();

}


function Divisions(ID,linkID){
	if(currentHome != ID){	
		var current = document.getElementById(currentHome);
		var icon = document.getElementById(currentHome + '_icon');
		var top = document.getElementById(currentHome + '_top');
		var img = document.getElementById(currentHome + '_img');
		var txt = document.getElementById(currentHome + '_txt');	
		var on = document.getElementById(currentHome + '_on');
		switch(ID){
			case 'nk':
				$('#nagrakudelski').animate( { width:"675px" }, { queue:false, duration:600 } );
				$('#nagrakudelski').css("opacity", "1");
				
				masquer(currentHome);
				
				document.getElementById('nklink').style.cursor = 'default';
				
			break;
			case 'dtv':
				
				masquer(currentHome);
				afficher('#dtv');
				
				
				
				document.getElementById('dtv_icon').style.cursor = 'default';
			break;
			case 'access':
				afficher('#access');
				masquer(currentHome);
				
				document.getElementById('access_icon').style.cursor = 'default';
			break;
			case 'audio':
				afficher('#audio');
				masquer(currentHome);
				
				document.getElementById('audio_icon').style.cursor = 'default';
			break;	
		}
		if(currentHome != 'nk'){
			
			icon.style.cursor = 'pointer';
		}else{
			document.getElementById('nklink').style.cursor = 'pointer';
		}
		currentHome = ID;
	}
	
}
