
function show_hide(id){
	
 var thd=document.getElementById(id);
 var obj=document.getElementById('i'+id);
 var znak=document.getElementById('si'+id);
 
 if(obj.style.display=='none'){
	obj.style.display='block';
	thd.className = 'thead_act';
	if(znak&&znak!='undefined') znak.innerHTML = '-';
 }else{
	obj.style.display='none';
	thd.className = 'thead';
	if(znak&&znak!='undefined') znak.innerHTML = '+';
 }
	over_out();
 
}

function slide(H,id){
	var obj=document.getElementById(id);
	h = parseInt(obj.style.height);
	if(h<H){
		obj.style.height = h+5+'px';
	}else{
		obj.clearInterval();
	}
}

function over_out(){
	
	heads = document.getElementsByClassName('thead');
	heads_act = document.getElementsByClassName('thead_act');
	
	for(i=0;i<heads.length;i++){
		heads[i].onclick = function(){
			show_hide(this.id);
		}
		heads[i].onmouseover = function(){
			this.style.backgroundColor = "#cdd2d5";
		}
		heads[i].onmouseout = function(){
			this.style.backgroundColor = "#e3e5e6";
		}
	}
	
	for(i=0;i<heads_act.length;i++){
		heads_act[i].onclick = function(){
			show_hide(this.id);
		}
		heads_act[i].onmouseover = function(){
			this.style.backgroundColor = "#a3cbdf";
		}
		heads_act[i].onmouseout = function(){
			this.style.backgroundColor = "#bce2f5";
		}
	}
}

function open_seo(){
	opt = document.getElementById('tseo');
	if(opt.style.display=='block'){
		opt.style.display = 'none';
	}else{
		opt.style.display = 'block';
	}
}
