// JavaScript Document
// JavaScript Document
//menu 1
function sm01_01() {document.location.href="/data/eng/sm01_01.html";}
function sm01_02() {document.location.href="/data/eng/sm01_02.html";}
function sm01_03() {document.location.href="/data/eng/sm01_03.html";}
function sm01_04() {document.location.href="/data/eng/sm01_04.html";}
function sm01_05() {document.location.href="/data/eng/sm01_05.html";}
function sm01_06() {document.location.href="/data/eng/sm01_06.html";}
function sm01_07() {document.location.href="/data/eng/sm01_07.html";}

//menu2
function m02_01() {document.location.href="/data/eng/m02_01.html";}

//menu3
function sm03_01() {document.location.href="/data/eng/sm03_01.html";}
function sm03_02() {document.location.href="/data/eng/sm03_02.html";}
function sm03_03() {document.location.href="/data/eng/sm03_03.html";}
function sm03_04() {document.location.href="/data/eng/sm03_04.html";}

//menu4
function m04_01() {document.location.href="/data/eng/m04_01.html";}

//menu5
function sm05_01() {document.location.href="http://www.edu.am/index.php?menu1=85&menu2=105";}
function sm05_02() {document.location.href="http://www.edu.am/index.php?menu1=85&menu2=89";}
function sm05_03() {document.location.href="/data/eng/sm05_03.html";}
function sm05_04() {document.location.href="/data/eng/sm05_04.html";}
function sm05_05() {document.location.href="/data/eng/sm05_05.html";}
function sm05_06() {document.location.href="/data/eng/sm05_06.html";}
function sm05_07() {document.location.href="/data/eng/sm05_07.html";}
function sm05_08() {document.location.href="/data/eng/sm05_08.html";}

//menu6
function sm06_01() {document.location.href="/data/eng/sm01_07.html";}
function sm06_02() {document.location.href="/data/eng/sm06_02.html";}
function sm06_03() {document.location.href="/data/eng/sm06_03.html";}
function sm06_04() {document.location.href="/data/eng/sm06_04.html";}
function sm06_05() {document.location.href="/data/eng/sm06_05.html";}
function sm06_06() {document.location.href="/data/eng/sm06_06.html";}

//menu7
function sm07_01() {document.location.href="/data/eng/sm07_01.html";}
function sm07_02() {document.location.href="/data/eng/sm07_02.html";}
function sm07_03() {document.location.href="/data/eng/sm07_03.html";}

//menu8
function sm08_01() {document.location.href="/data/eng/sm08_01.html";}
function sm08_02() {document.location.href="/data/eng/sm08_02.html";}

//menu9
function sm09_01() {document.location.href="/data/eng/sm09_01.html";}
function sm09_02() {document.location.href="/data/eng/sm09_02.html";}

//menu10
function m10_01() {document.location.href="/data/eng/m10_01.html";}

//menu11
function m11_01() {document.location.href="/data/eng/m11_01.html";}

//menu12
function m12_01() {document.location.href="/data/eng/m12_01.html";}
function empty()  {document.location.href="/data/eng/empty.html";}



//top menu
function openHome() {document.location.href="/indexen.html";}
function openLibrary() {document.location.href="/data/eng/m10_01.html";}
function openContact() {document.location.href="/data/eng/m12_01.html";}
function openImage() {document.location.href="/data/eng/gallery/gallery.html";}
function openHistory() {document.location.href="/data/eng/history.html";}


function openAm()
{
	var txt = document.location.href;
	if(txt.length <= 27 || txt.match("index")) 
	{
		document.location.href="/index.html";
	}
	else
	{
		var str = txt.replace("data/eng/","data/am/");
		document.location.href = str;
	}
}
function openFr()
{
	var txt = document.location.href;
	if(txt.length <= 27 || txt.match("index")) 
	{
		document.location.href="/indexfr.html";
	}
	else
	{
		var str = txt.replace("data/eng/","data/fr/");
		document.location.href = str;
	}
}
function openRu()
{
	var txt = document.location.href;
	if(txt.length <= 27 || txt.match("index")) 
	{
		document.location.href="/indexru.html";
	}
	else
	{
		var str = txt.replace("data/eng/","data/ru/");
		document.location.href = str;
	}
}