﻿function mainPage(){
	var main = document.getElementById('topMenuGlxav');
	var aboutUs = document.getElementById('topMenuMerMasin');
	var topMenuGorcun = document.getElementById('topMenuGorcun');
	var topMenuHetKap = document.getElementById('topMenuHetKap');
	var topMenuDrosh1 = document.getElementById('topMenuDrosh1');
	var topMenuDrosh2 = document.getElementById('topMenuDrosh2');
	var bodyScroll = document.getElementById('bodyScroll');
	var bottomMenuGlxav = document.getElementById('bottomMenuGlxav');
	var bottomMenuMerMasin = document.getElementById('bottomMenuMerMasin');
	var bottomMenuGorcun = document.getElementById('bottomMenuGorcun');
	var bottomMenuHetKap = document.getElementById('bottomMenuHetKap');
	
	/***************************************************/
    /*********** mouseOVER and mouseOUT :)  ************/
    /***************************************************/
	/////////////////////////////// top menu /////////////////////////////////////
	main.onmouseover = function(){main.className = "mOver";}
	main.onmouseout = function() {main.className = "mOut";}
	
	aboutUs.onmouseover = function(){aboutUs.className = "mOver";}
	aboutUs.onmouseout = function() {aboutUs.className = "mOut";}
	
	topMenuGorcun.onmouseover = function(){topMenuGorcun.className = "mOver";}
	topMenuGorcun.onmouseout = function() {topMenuGorcun.className = "mOut";}
	
	topMenuHetKap.onmouseover = function(){topMenuHetKap.className = "mOver";}
	topMenuHetKap.onmouseout = function() {topMenuHetKap.className = "mOut";}
	
	topMenuDrosh1.onmouseover = function(){topMenuDrosh1.className = "mOver";}
	topMenuDrosh1.onmouseout = function() {topMenuDrosh1.className = "mOut";}
	
	topMenuDrosh2.onmouseover = function(){topMenuDrosh2.className = "mOver";}
	topMenuDrosh2.onmouseout = function() {topMenuDrosh2.className = "mOut";}
	///////////////////////////// bottom menu ///////////////////////////////////////
	bottomMenuGlxav.onmouseover = function(){bottomMenuGlxav.className = "mOver";}
	bottomMenuGlxav.onmouseout = function() {bottomMenuGlxav.className = "mOut";}
	
	bottomMenuMerMasin.onmouseover = function(){bottomMenuMerMasin.className = "mOver";}
	bottomMenuMerMasin.onmouseout = function() {bottomMenuMerMasin.className = "mOut";}
	
	bottomMenuGorcun.onmouseover = function(){bottomMenuGorcun.className = "mOver";}
	bottomMenuGorcun.onmouseout = function() {bottomMenuGorcun.className = "mOut";}
	
	bottomMenuHetKap.onmouseover = function(){bottomMenuHetKap.className = "mOver";}
	bottomMenuHetKap.onmouseout = function() {bottomMenuHetKap.className = "mOut";}
	/***************************************************/
	
	new glavorPage(bodyScroll);
	
	main.onmouseup = function(){
		bodyScroll.innerHTML = "";
		glavorPage(bodyScroll);
	}
	
	bottomMenuGlxav.onmouseup = function(){
		bodyScroll.innerHTML = "";
		glavorPage(bodyScroll);
	}
	
	aboutUs.onmouseup = function(){
		bodyScroll.innerHTML = "";
		aboutUS(bodyScroll);
	}
	
	bottomMenuMerMasin.onmouseup = function(){
		bodyScroll.innerHTML = "";
		aboutUS(bodyScroll);
	}
	
	topMenuGorcun.onmouseup = function(){
		bodyScroll.innerHTML = "";
		curent(bodyScroll);
	}
	
	bottomMenuGorcun.onmouseup = function(){
		bodyScroll.innerHTML = "";
		curent(bodyScroll);
	}
	
	topMenuHetKap.onmouseup = function(){
		new contactUs(bodyScroll);
	}
	
	bottomMenuHetKap.onmouseup = function(){
		new contactUs(bodyScroll);
	}
}

/************************************************************************************************************
 * Vahan Tadevosyan                                                                                         *
 *  /\    /\                                                                                                *
 * <..>||<..>                                                                                               *
 *  \/ || \/                                                                                                *
 *    ____                                                                                                  *
 *   |_VT_|                                                                                                 *
 *                                                                                                          *
 * Vahan Tadevosyan                                                                                         *
 *                                                                                                          *
 * Copyright Vahan Tadevosyan For www.buildersunion.am                                                               *
 * All Rights reserved                                                                                      *
 * Vahan Tadevosyan 2008 - 2009 year                                                                        *
 * All or some copy of this source or publish block by order                                                * 
 *                                                                                                          *
 * Vahan Tadevosyan                                                                                         *
 ***********************************************************************************************************/