function check_price(){
	window.alert("Пожалуйста, уточните стоимость обучения у менеджеров учебного центра.\nТелефоны: 501-22-73, 502-62-45.");	
	return false;
}
var is_cat_shown=new Array();
function loadfunc(){
	obj1 = new Image();
	obj1.src = "img/top_menu_minus.gif";
	obj2 = new Image();
	obj2.src = "img/top_menu_plus.gif";
}
function course_hide(i){
	document.getElementById("cat_img_"+i).src="img/top_menu_plus.gif";
	document.getElementById("cat_body_"+i).className="left_menu_hidden";
	is_cat_shown[i]=false;
}
function course_show(i){
	document.getElementById("cat_img_"+i).src="img/top_menu_minus.gif";
	document.getElementById("cat_body_"+i).className="left_menu_visible";
	is_cat_shown[i]=true;
}
function course_switch(i){
	if(!is_cat_shown[i]){
		course_show(i);
	}
	else{
		course_hide(i);
	}
}

var hide_delay=100;
var timer=new Array();
var is_shown=new Array();
for(i=1;i<=20;i++){
	is_shown[i]=false;	
	timer[i];
}
function show(num){
	clearTimeout(timer[num]);
	if(!is_shown[num]){
		timer[num]=setTimeout("real_show("+num+")",hide_delay);
	}
}
function hide(num){
	clearTimeout(timer[num]);
	if(is_shown[num]){
		timer[num]=setTimeout("real_hide("+num+")",hide_delay);
	}
}
function real_show(num){
	obj = document.getElementById('menu_div_'+num);
	obj.style.overflow = 'visible';
	a = document.getElementById('menu_a_'+num);
	//a.style.backgroundImage = 'url(img/top_menu_minus.gif)';
	is_shown[num]=true;
}
function real_hide(num){
	obj = document.getElementById('menu_div_'+num);
	obj.style.overflow = 'hidden';
	a = document.getElementById('menu_a_'+num);
	//a.style.backgroundImage = 'url(img/top_menu_plus.gif)';
	is_shown[num]=false;
}
function wOpen(src,width,height){
	wWidth=width+50;
	wHeight=height+32;
	maxWidth=screen.width-20;
	maxHeight=screen.height-100;
	wWidth=wWidth>maxWidth ? maxWidth : wWidth;
	wHeight=wHeight>maxHeight ? maxHeight : wHeight;
	wLeft=(screen.width-wWidth)/2;
	wTop=(screen.height-wHeight-60)/2;
	param="width="+wWidth+",";
	param+="height="+wHeight+",";
	param+="left="+wLeft+",";
	param+="top="+wTop+",";
	param+="menubar=no,";
	param+="resizable=yes,";
	param+="scrollbars=yes,";
	param+="status=no,";
	param+="toolbar=no";
	window.open(src,"popupWin",param);
}

