/* Creation date: 02/03/2005 */
		marz = new Array();
		marz[0] = "tavush";
		marz[1] = "lorri";
		marz[2] = "shirak";
		marz[3] = "aragatsotn";
		marz[4] = "kotayk";
		marz[5] = "gegharkunik";
		marz[6] = "armavir";
		marz[7] = "yerevan";
		marz[8] = "ararat";
		marz[9] = "vayotsdzor";
		marz[10] = "syunik";
		
function FIND(item) {
		if( window.mmIsOpera ) return(document.getElementById(item));
		if (document.all) return(document.all[item]);
		if (document.getElementById) return(document.getElementById(item));
		return(false);
	}

// =========  Scroll =============

	function scrollTop()
	{
		m_id = FIND('scrl');
		m_id.style.posTop = document.body.scrollTop + 250;
	}

// =========  Menu =============

	function OnMenuOver(id, stat)
	{
		window.status=stat;
		arrow = "ar"+id;
		m_arrow = FIND(arrow);
		m_arrow.style.visibility = "visible";
		m_item = FIND(id);
		m_item.style.background = "#3BA2EA";
		m_item.style.color = "#BBFFFF";
		m_item.style.borderStyle = "solid";
		m_item.style.borderWidth="2px";
		m_item.style.borderColor = "#B7E3FF"
//		m_item.style.fontSize = "9pt";
	}
	
	function OnMenuOut(id) 
	{
		window.status="";
		arrow = "ar"+id;
		m_arrow = FIND(arrow);
		m_arrow.style.visibility = "hidden";
		m_item = FIND(id);		
		m_item.style.background = "#3BA2EA";
		m_item.style.color = "#FFFFFF";
		m_item.style.borderColor = "#3BA2EA"
//		m_item.style.fontSize = "10pt";
	}
	
	function OnMenuClick(id, url) 
	{
		m_item = FIND(id);		
		m_item.style.background = "#BBFFFF";	
		m_item.style.color = "#3BA2EA"
		document.location.href = url;
	}
	
	function expand(block)
	{
		for(i=0; i<marz.length; i++)
		{
			obj = FIND(marz[i]);
			obj.style.display = "none";			
		}
			obj = FIND(block);
			obj.style.display = "block";
//			window.location.href="#progdesc";
	}
// =========  Languages Menu =============

	function OnLangOver(id) 
	{
		l_item = FIND(id);	
		l_item.style.background = "#55FFFF";
		l_item.style.borderColor = "#66CCFF"
	}
	
	function OnLangOut(id) 
	{
		l_item = FIND(id);		
		l_item.style.background = "#88AAFF";
		l_item.style.borderColor = "#006699"
	}
	
	k=1;
	function OnLangClick(id, loop, page) 
	{
		if(k) {
			k=0;
			langs = new Array();
			url = new Array();
			langs[0] = "eng";
			langs[1] = "arm";
			langs[2] = "trk";
			url[0] = page+".php";
			url[1] = page+"_arm.php";
			url[2] = page+"_trk.php";
		}
		l_item = FIND(langs[id]);		
		if(loop>1) {
			if((loop%2) > 0) {
				l_item.style.background = "#FF5555";
				l_item.style.color = "#000000"
			}
			else {		
				l_item.style.background = "#99CCFF";	
				l_item.style.color = "#FFFFFF"
			}
			loop--;
			setTimeout('OnLangClick(' + id + ', ' + loop + ')', 70);
		}
		else {
			l_item.style.background = "#99CCCC";
			document.location.href = url[id];
		}
	}
		
	function openWnd(picnum, doc) {
		window.open(doc+'?'+picnum,'photo','width=750,height=550,top=5,left=10,screenY=5,screenX=50,scrollbars=yes,resizable=yes,fullscreen=yes')	
	}

	cur = 0;
	qnt = 0;
	id = "";
	
	function imgPreload(dir, crnt, q, idn) {
		id = idn;
		cur = crnt;
		qnt = q;
		if(cur<9) s="_pics/" + dir + "/image0";
		else s="_pics/" + dir + "/image";
		document.images.picture.src = s + (parseInt(cur)+1) + ".jpg";
		images = new Array();
		for(i=0; i<quant; i++) {
			if(i<9) str="_pics/" + dir + "/image0";
			else str="_pics/" + dir + "/image";
  			images[i] = str + (i+1) + ".jpg";
		}
	}
	
	function next() {
		if (cur<(qnt-1)) {
			document.images.picture.src = images[++cur];
		}
	}
	function previous() {
		if (cur>0) {
			document.images.picture.src = images[--cur];
		}
	}
	function first() {
		cur = 0;
		document.images.show.src = document.slideform.slide[0].value;
		document.slideform.slide.selectedIndex = 0;
	}
	function last() {
		cur = document.slideform.slide.length-1;
		document.images.show.src = document.slideform.slide[cur].value;
		document.slideform.slide.selectedIndex = cur;
	}
