function mmLoadMenus() {
  if (window.mm_menu_1101174855_0) return;
  window.mm_menu_1101174855_0 = new Menu("root",87,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#0066ff","#ffffff","#cccccc","left","middle",3,0,200,-5,7,true,true,true,0,true,true);
  mm_menu_1101174855_0.addMenuItem("За фирмата","window.open('index.php?menu=home&submenu=aboutus', '_self');");
   mm_menu_1101174855_0.hideOnMouseOut=true;
   mm_menu_1101174855_0.menuBorder=0;
   mm_menu_1101174855_0.menuLiteBgColor='#ffffff';
   mm_menu_1101174855_0.menuBorderBgColor='#555555';
   mm_menu_1101174855_0.bgColor='#555555';
  window.mm_menu_1101132416_0 = new Menu("root",177,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#0066ff","#ffffff","#cccccc","left","middle",3,0,200,-5,7,true,true,true,0,true,true);
  mm_menu_1101132416_0.addMenuItem("Абонатни станции","window.open('index.php?menu=products&submenu=substations', '_self');");
  mm_menu_1101132416_0.addMenuItem("Топлопроводи","window.open('index.php?menu=products&submenu=mains', '_self');");
  mm_menu_1101132416_0.addMenuItem("Отоплителни инсталации","window.open('index.php?menu=products&submenu=installations', '_self');");
  mm_menu_1101132416_0.addMenuItem("Изградени обекти","window.open('index.php?menu=products&submenu=gallery', '_self');");
  mm_menu_1101132416_0.addMenuItem("Продажба на компоненти","window.open('index.php?menu=products&submenu=components', '_self');");
   mm_menu_1101132416_0.hideOnMouseOut=true;
   mm_menu_1101132416_0.menuBorder=0;
   mm_menu_1101132416_0.menuLiteBgColor='#ffffff';
   mm_menu_1101132416_0.menuBorderBgColor='#555555';
   mm_menu_1101132416_0.bgColor='#555555';
  window.mm_menu_1101132945_1 = new Menu("root",74,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#0066ff","#ffffff","#cccccc","left","middle",3,0,200,-5,7,true,true,true,0,true,true);
  mm_menu_1101132945_1.addMenuItem("Методика","window.open('index.php?menu=tempacc&submenu=methods', '_self');");
  mm_menu_1101132945_1.addMenuItem("Цени","window.open('index.php?menu=tempacc&submenu=prices', '_self');");
   mm_menu_1101132945_1.hideOnMouseOut=true;
   mm_menu_1101132945_1.menuBorder=0;
   mm_menu_1101132945_1.menuLiteBgColor='#ffffff';
   mm_menu_1101132945_1.menuBorderBgColor='#555555';
   mm_menu_1101132945_1.bgColor='#555555';
  window.mm_menu_1101132816_2 = new Menu("root",87,18,"Verdana, Arial, Helvetica, sans-serif",12,"#000000","#0066ff","#ffffff","#cccccc","left","middle",3,0,200,-5,7,true,true,true,0,true,true);
  mm_menu_1101132816_2.addMenuItem("Договори","window.open('index.php?menu=docs&submenu=contracts', '_self');");
  mm_menu_1101132816_2.addMenuItem("Молби","window.open('index.php?menu=docs&submenu=forms', '_self');");
  mm_menu_1101132816_2.addMenuItem("Инструкции","window.open('index.php?menu=docs&submenu=instructions', '_self');");
  mm_menu_1101132816_2.addMenuItem("Графици","window.open('index.php?menu=docs&submenu=grafici', '_self');");
   mm_menu_1101132816_2.hideOnMouseOut=true;
   mm_menu_1101132816_2.menuBorder=0;
   mm_menu_1101132816_2.menuLiteBgColor='#ffffff';
   mm_menu_1101132816_2.menuBorderBgColor='#555555';
   mm_menu_1101132816_2.bgColor='#555555';

  mm_menu_1101132816_2.writeMenus();
} // mmLoadMenus()

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function newwindow(contract) 
{ 
	if(contract == 'first_contract'){
		window.open('artefacts/document1.doc','new','width=300,height=200,resizable=yes'); 
	}
}

function confirmDelete(element){
	i = 0;
	while(element[i]){
//		alert(element[i].name);
		if(element[i].checked){
			if(confirm("Избраните редове ще бъдат изтрити?")){
				return true
			}else{
				return false
			}
		}
		i++
	}
	return false
}

