function img_over(txt_id, img_id) {
	
	txt_id = eval(txt_id);
	img_id = eval(img_id);

	txt_id.style.color = '#ed882e';
	img_id.style.filter = 'alpha(Opacity=80)';		
	}
	
function img_out(txt_id, img_id) {
	
	txt_id = eval(txt_id);
	img_id = eval(img_id);

	txt_id.style.color = '#464646';
	img_id.style.filter = 'alpha(Opacity=100)';
	}
	
	
function openmap() {

  var win;
  win = window.open("","_blank", "width=300,height=300");
  win.document.write("<html><head><title>Схема проезда</title></head><body>");
  win.document.write('<div style="position:absolute;width:300px;height:300px;left:0px;top:0px">');
  win.document.write('<img src="images/map.gif"></div></body></html>');
}


function openwin(page, w, h, alt) {

  var win;
  var prm = "width="+w+",height="+h;
  win = window.open("","_blank",prm);
  win.document.write("<html><head><title>"+alt+"</title></head><body>");
  win.document.write('<div style="position:absolute;width:'+w+'px;height:'+h+'px;left:0px;top:0px">');
  win.document.write("<a href=\"javascript:self.close()\" title=\"Закрыть окно\"><img src="+page+" border=0></a></div></body></html>");
}

var clickFlag = false;

function checkQForm() {

	if(clickFlag == true) return false;
	
	var txt = '';
	
	if(document.main.person.value == '')
		txt = txt + ' - Ваше имя\n';

	if(document.main.email.value == '')
		txt = txt + ' - Контактный email\n';
		
	if(document.main.q.value == '')
		txt = txt + ' - Собственно вопрос\n';
		

	if(txt != '') {
		
		txt = "Укажите, пожалуйста, следующую информацию:\n\n" + txt;
		window.alert(txt);	
		return false;
		}
		
	clickFlag = true;
	
	return true;	
	}
	
	
var ie4 = false; 
if(document.all) { ie4 = true; }

function getObject(id) { 

	if (ie4) { return document.all[id]; } 
	else { return document.getElementById(id); } 
	}


function oc_header(divId, linkId) {
	
	var d = getObject(divId);
	var l = getObject(linkId);
	
	if(d.style.display == 'block') {
		
		d.style.display = 'none';
		l.style.fontWeight = 'normal';
		//l.style.textDecoration = 'none';
		return;
		}
		
	if(d.style.display == 'none') {
	
		d.style.display = 'block';
		l.style.fontWeight = 'bold';
		//l.style.textDecoration = 'underline';
		return;
		}
	
	}
	
	
	