	function displayBlock(Show_block){
		
		if (document.getElementById(Show_block)==null) {
		
			return
		}
		
		changeOpac(100,Active_block);
		changeOpac(0,Show_block);
			
		opacity(Active_block, 100, 0, 500);	
		
		var hide_block = document.getElementById(Active_block);		
		hide_block.style.display='none';
		
		Active_block = Show_block;
				
		var disp_block = document.getElementById(Show_block);
	
		disp_block.style.display='';
				
		opacity(Show_block, 0, 100, 500);
	}
	
	function showPortfolio(ch) {
						
		if (ch==0) {
			
			//go back
			if (CurPortf_block!=1) {
				
				var hide_block = document.getElementById('portf'+CurPortf_block);				
				hide_block.style.display='none';
				
				CurPortf_block = CurPortf_block -1;
				
				var disp_block = document.getElementById('portf'+CurPortf_block);
							
				disp_block.style.display='';
				//changeOpac(100,disp_block);			
				
				//opacity(disp_block, 0, 100, 500);
				
				if (CurPortf_block==1) {
				
					var lnk = document.getElementById('prev');
					lnk.style.visibility = 'hidden';
					
					var lnk = document.getElementById('next');
					lnk.style.visibility = '';
				
				} else {
				
					var lnk = document.getElementById('next');
					lnk.style.visibility = '';
				}
				
			}
		
		} else {
									
			if (CurPortf_block!=Total_blocks) {
				
				var hide_block = document.getElementById('portf'+CurPortf_block);
				hide_block.style.display='none';
				
				CurPortf_block = CurPortf_block +1;
				
				var disp_block = document.getElementById('portf'+CurPortf_block);
								
				disp_block.style.display='';
				//changeOpac(100,disp_block);
				
				//opacity(disp_block, 0, 100, 500);
												
				if (CurPortf_block==Total_blocks) {
				
					var lnk = document.getElementById('next');
					lnk.style.visibility = 'hidden';
					
					var lnk = document.getElementById('prev');
					lnk.style.visibility = '';
					
				} else {
				
					var lnk = document.getElementById('prev');
					lnk.style.visibility = '';
				}
				
			}			
		
		}		
		
	}
	
		function newBgForItem(itemBg) {
		
			var NewBg = document.getElementById(itemBg);
			var tmpBg = '';
			
			if (itemBg=='shop_item') {
				
				NewBg.style.background = 'url(img/t_shirt_bg2.jpg) 2px 2px no-repeat';
			}
			
			if (itemBg=='support_item') {
				
				NewBg.style.background = 'url(img/t_support_bg2.jpg) 1px 2px no-repeat';
			}
			
			if (itemBg=='career_item') {
				
				NewBg.style.background = 'url(img/t_career_bg2.jpg) 2px 2px no-repeat';
			}
						
			changeOpac(0,itemBg);
			opacity(itemBg, 0, 100, 500);
		}
		
		function hideBgForItem(itemBg) {
		
			var HideBg = document.getElementById(itemBg);
			HideBg.style.background = '';
		}
	
	function checkContactForm() {
		
		var check_error=0;
		var tmp = "";
				
		tmp = document.mainForm['fc_name'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your name."); 
                check_error=27; 
                return false; 
        } 
		
		tmp = document.mainForm['fc_mail'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your E-mail."); 
                check_error=27; 
                return false; 
        } 
		
		tmp = document.mainForm['fc_company'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your company name."); 
                check_error=27; 
                return false; 
        } 
		
		tmp = document.mainForm['fc_phone'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your phone number."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm['fc_message'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your message."); 
                check_error=27; 
                return false; 
        }  
		
		return true;
	}
	
	function checkSupportForm() {
		
		var check_error=0;
		var tmp = "";
				
		tmp = document.mainForm2['fs_name'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your name."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm2['fs_mail'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your Email."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm2['fs_company'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your Company name."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm2['fs_subject'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify subject of your message."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm2['fs_question'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your question."); 
                check_error=27; 
                return false; 
        }
		
		return true;		
	}
	
	function checkBroshureForm() {
		
		var check_error=0;
		var tmp = "";
				
		tmp = document.mainForm3['fb_name'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your name."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm3['fb_mail'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your Email."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm3['fb_company'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your Company name."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm3['fb_website'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your website."); 
                check_error=27; 
                return false; 
        }
		
		tmp = document.mainForm3['fb_adress'].value; 
        if (tmp.length<1) { 
                
                alert("Please, specify your full adress."); 
                check_error=27; 
                return false; 
        }
		
		return true;	
	}
	
	
		function showRoll(menuItem) {
					
			var bg = document.getElementById(menuItem);			
			bg.style.visibility = '';
			bg.style.display = '';
			//changeOpac(0,menuItem);			
			//opacity(menuItem, 0, 100, 150);
		}
		
		function hideRoll(menuItem) {

			//changeOpac(100,menuItem);	
			//opacity(menuItem, 100, 0, 50);						
			var bg = document.getElementById(menuItem);
			bg.style.visibility = 'hidden';
			
		}