<!-- // START MENU CODE

// NOTE: If you use a ' add a slash before it like this \'


StartMenu()


// MENU OPTIONS - you will find more options in the style.css

MFL			= 180; 					// MENU DISTANCE FROM EDGE
MFT			= 172; 					// MENU DISTANCE FROM TOP
ALIGN		= "left"				// MENU LEFT OR RIGHT
TMH			= 22;					// TOP MENU HEIGHT
TMFS		= "11";					// TOP MENU FONT SIZE
TMFW		= "bold";				// TOP MENU FONT WEIGHT bold/normal
TMFF		= "georgia, times new roman, palatino linotype, book antiqua, garamond, verdana, arial, serif";	// TOP MENU FONT FACE
TMC			= "FFFFFF";				// TOP MENU OFF FONT COLOR
TMBC		= "";				// TOP MENU OFF BACKGROUND COLOR
TMBI		= "/images/menu.gif";	// TOP MENU OFF BACKGROUND IMAGE
TMHC		= "000000";				// TOP MENU HOVER TEXT COLOR
TMHBC		= "C0C0C0";				// TOP MENU HOVER BACKGROUND COLOR
TMHBI		= "/images/menuon.gif";	// TOP MENU HOVER BACKGROUND IMAGE
MO			= TMH;				// Y MENU OVERLAP CHANGE NUMBER VALUE
SUBshift	= 0;					// SHIFT SUBMENU RIGHT
SUBSUBshift	= -1;					// SHIFT SUBSUBMENU RIGHT
SMBP		= "/images/submenu.gif";	// NEW SUB MENU IMAGE
SMHBP		= "/images/submenu_h.gif";	// NEW SUB MENU HOVER IMAGE
SMBPA		= "/images/submenu_arrow.gif";	// NEW SUB MENU WITH ARROW IMAGE
SMHBPA		= "/images/submenu_arrow_h.gif";	// NEW SUB MENU WITH ARROW HOVER IMAGE


// START SUBMENU OPTIONS - you will find more options in the style.css


SMH			= 14;					// SUB MENU HEIGHT
SMFS		= "11";					// SUB MENU FONT SIZE
SMFW		= "normal";				// SUB MENU FONT WEIGHT bold/normal
SMFF		= "georgia, times new roman, palatino linotype, book antiqua, garamond, verdana, arial, serif";	// SUB MENU FONT FACE
SMC			= "FFFFFF";				// SUB MENU OFF FONT COLOR
SMBC		= "333366";				// SUB MENU OFF BACKGROUND COLOR
SMHC		= "000000";				// SUB MENU HOVER TEXT COLOR
SMHBC		= "C0C0C0";				// SUB MENU HOVER BACKGROUND COLOR

MENU_MAX_ITEMS = 10;				//NEW MENU MAXIMUM ITEMS
SUBMENU_MAX_ITEMS = 10;				//NEW SUB MENU MAXIMUM ITEMS

SubMenu()



// START MENU NUMBER 1 COPY AND PASTE A GROUP TO ADD A NEW TOP LEVEL SEE NOTE BELOW


Top_Width[0]=180; Sub_Menu_Width[0]=180;
m[0]='Фирмата';n[0]='/bg/index_bg.html';st[0]="";s[0]=""
+l[0] [0]+"/bg/index_bg.html"+r+" Начало "+c
+l[0] [1]+"/bg/about_bg.html"+r+" За нас "+c
+l[0] [2]+"/bg/mission_bg.html"+r+" Нашата Мисия "+c
+l[0] [3]+"/bg/principles_bg.html"+r+" Принципи на работа "+c
+l[0] [4]+"/bg/advantages_bg.html"+r+" Нашите предимства "+c
+l[0] [5]+"/bg/contact_bg.html"+r+" Контакти "+c
+l[0] [6]+"/bg/map_bg.html"+r+" Карта "+c


Top_Width[1]=180; Sub_Menu_Width[1]=180;
m[1]='Продукти';n[1]='/bg/catalogue_bg.html';st[1]="";s[1]=""
+la[1] [0]+"/bg/cat/cables/catalogue_cables_bg.html"+r+" Кабели "+c
+la[1] [1]+"/bg/cat/others/catalogue_others_bg.html"+r+" Други продукти "+c

ss[1] [0]=""
+ll+"/bg/cat/cables/catalogue_cables_inst_bg.html"+r+" Инсталационни "+c
+ll+"/bg/cat/cables/catalogue_cables_power_bg.html"+r+" Силови "+c
+ll+"/bg/cat/cables/catalogue_cables_flexible_bg.html"+r+" Гъвкави "+c
+ll+"/bg/cat/cables/catalogue_cables_silicone_bg.html"+r+" Силиконови "+c
+ll+"/bg/cat/cables/catalogue_cables_rubber_bg.html"+r+" Каучукови "+c
+ll+"/bg/cat/cables/catalogue_cables_telecom_bg.html"+r+" Телекомуникационни "+c

ss[1] [1]=""
+ll+"/bg/cat/others/catalogue_others_plugs_bg.html"+r+" Захранващи кабели "+c
+ll+"/bg/cat/others/catalogue_others_elmat_bg.html"+r+" Ключове и контакти "+c

Top_Width[2]=180; Sub_Menu_Width[2]=180;
m[2]='Ресурси';n[2]='/bg/news_bg.html';st[2]="";s[2]=""
+l[2] [0]+"/bg/news_bg.html"+r+" Новини "+c
+l[2] [1]+"/bg/links_bg.html"+r+" Връзки "+c
+l[2] [2]+"/bg/terms_bg.html"+r+" Правила и условия "+c
+l[2] [3]+"/bg/suppliers_bg.html"+r+" Информация за доставчици "+c

// IF YOU ADD ANOTHER TOP LEVEL MENU YOU MUST ADD TO THE BOTTOM OF THIS LIST

ADJ[0]=MFL;
ADJ[1]=(Top_Width[0])+MFL;
ADJ[2]=(Top_Width[0]+Top_Width[1])+MFL;


// ----------------------------------------------------------------
// YOU DO NOT NEED TO EDIT BELOW THIS LINE
// ----------------------------------------------------------------





MENU=m.length

for (i=0; i < MENU; i++){


// START WRITING TOP LEVEL MENUS


document.write("<div style='position:absolute;"+ALIGN+":"+ADJ[i]+";top:"+MFT+";width:"+Top_Width[i]+"' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;


document.write("<a class='menu_TOP' style='height:"+TMH+"; color:#"+TMC+"; background-image: url("+TMBI+"); background-color:#"+TMBC+"; font-size:"+TMFS+"px; font-weight:"+TMFW+"; font-family: "+TMFF+"; "+spn+"' onMouseOver=\"this.style.backgroundColor='#"+TMHBC+"';this.style.color='"+TMHC+"';this.style.backgroundImage='URL("+TMHBI+")'\"  onMouseOut=\"this.style.backgroundColor='#"+TMBC+"';this.style.color='"+TMC+"';this.style.backgroundImage='URL("+TMBI+")'\" href='"+n[i]+"'>"+m[i]+"</a></div>")






}


for (i=0; i < MENU; i++){

	// START WRITING SUB MENUS
	document.write("<div id='SUB"+i+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift)+";top:"+(MFT+MO)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu()' onmouseout='o["+i+"].HideMenu()'>"+s[i]+"</div>");
	
	// NEW START WRITING SUB SUB MENUS
	for (j=0; j < SUBMENU_MAX_ITEMS; j++){
		if (ss[i] [j] != "NONE") {
			document.write("<div id='SUBSUB"+i+"_"+j+"' class='menu_DIV' style='position: absolute; "+ALIGN+":"+(ADJ[i]+SUBshift+SUBSUBshift+Sub_Menu_Width[i])+";top:"+(MFT+MO+(TMH-3)*j)+";width:"+Sub_Menu_Width[i]+";background-color:#"+SMBC+";' onmouseover='o["+i+"].ShowMenu(); oo["+i+"] ["+j+"].ShowMenu(); ' onmouseout='o["+i+"].HideMenu(); oo["+i+"] ["+j+"].HideMenu(); '>"+ss[i] [j]+"</div>")	
		}
	}
}

function StartMenu()
{

var D6=window,Y7=document;
function DETECT()
{
this.ver=navigator.appVersion;
this.agent=navigator.userAgent;
this.dom=Y7.getElementById?1:0;
this.opera5=this.agent.indexOf("Opera 5")>-1;
this.ie4=(Y7.all && !this.dom && !this.opera5)?1:0;
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
this.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom && !this.opera5)?1:0;
this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom && !this.opera5)?1:0;
this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8;
this.mac=this.agent.indexOf("Mac")>-1;
this.ns6=(this.dom && parseInt(this.ver)>=5)?1:0;
this.ns4=(Y7.layers && !this.dom)?1:0;
this.BWD=(this.ie6||this.ie5||this.ie4||this.ns4||this.ns6||this.opera5);
return this
}
BWD=new DETECT();z=0;b=0;
spn="";
if(BWD.opera5||BWD.ns6)
{
b=2
};
if(BWD.ie)
{
spn=" width: 100%"
}else{
z=6
}

} 

function SubMenu()
{

document.write("<TABLE cellpadding='0' cellspacing='0' border='0' width='100%' BGCOLOR='#242440'><tr><td>");
document.write("<img src='/images/spacer.gif' width='100%' height='"+TMH+"'><br>");
document.write("</td></tr></table>");

document.write("<div width='100%' style='height:"+TMH+";position:absolute;top:"+MFT+";width:100%;background-image: url("+TMBI+"); background-color:#"+TMBC+";z-level:-2'></div>")

browser_version= parseInt(navigator.appVersion);
browser_type = navigator.appName;
	// NEW
	l=new Array();
	la=new Array();
	ss=new Array();
	for (i=0; i < MENU_MAX_ITEMS; i++){
		l[i] = new Array("","");
		la[i] = new Array("","");
		ss[i] = new Array("","");
		for (j=0; j < SUBMENU_MAX_ITEMS; j++){	
			//l[i] [j]="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"px; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"'; this.style.color='"+SMHC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].ShowMenu(); \"  onmouseout=\"this.style.backgroundColor='#"+SMBC+"'; this.style.color='"+SMC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].HideMenu(); \" href='";
			//la[i] [j]="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-color:#"+SMBC+"; font-size:"+SMFS+"px; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundColor='#"+SMHBC+"'; this.style.color='"+SMHC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].ShowMenu(); \"  onmouseout=\"this.style.backgroundColor='#"+SMBC+"'; this.style.color='"+SMC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].HideMenu(); \" href='";
			 l[i] [j]="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-image: url("+SMBP+"); background-color:#"+SMBC+"; font-size:"+SMFS+"px; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundImage='URL("+SMHBP+")'; this.style.color='"+SMHC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].ShowMenu(); \"  onmouseout=\"this.style.backgroundImage='URL("+SMBP+")'; this.style.color='"+SMC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].HideMenu(); \" href='";
			la[i] [j]="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-image: url("+SMBPA+"); background-color:#"+SMBC+"; font-size:"+SMFS+"px; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundImage='URL("+SMHBPA+")'; this.style.color='"+SMHC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].ShowMenu(); \"  onmouseout=\"this.style.backgroundImage='URL("+SMBPA+")'; this.style.color='"+SMC+"'; if(ss["+i+"] ["+j+"]!='NONE') oo["+i+"] ["+j+"].HideMenu(); \" href='";
			ss[i] [j]="NONE";
		}
	}

r="'>";
c="</a>";
ll="<a class='menu_SUB' style='height:"+SMH+"; color:#"+SMC+"; background-image: url("+SMBP+"); background-color:#"+SMBC+"; font-size:"+SMFS+"px; font-weight:"+SMFW+"; font-family: "+SMFF+";"+spn+"' onmouseover=\"this.style.backgroundImage='URL("+SMHBP+")'; this.style.backgroundColor='#"+SMHBC+"';this.style.color='"+SMHC+"'\"  onmouseout=\"this.style.backgroundImage='URL("+SMBP+")'; this.style.backgroundColor='#"+SMBC+"';this.style.color='"+SMC+"';\" href='";

m=new Array();n=new Array();s=new Array();Sub_Menu_Width=new Array();su=new Array();st=new Array();Top_Width=new Array();ADJ=new Array();

}


function lib_obj(obj,nest){
	nest=(!nest) ? "":'document.'+nest+'.';
	this.evnt=BWD.dom? document.getElementById(obj):BWD.ie4?document.all[obj]:BWD.ns4?eval(nest+"document.layers." +obj):0;
	this.css=BWD.dom||BWD.ie4?this.evnt.style:this.evnt;
	this.ref=BWD.dom||BWD.ie4?document:this.css.document;
	this.x=parseInt(this.css.top)||this.css.pixeltop||this.evnt.offsettop||0;
	this.y=parseInt(this.css.left)||this.css.pixelleft||this.evnt.offsetleft||0;
	return this;
}

function lib_doc_size(){
	this.x=0;this.x2=BWD.ie && document.body.offsetWidth-20||innerWidth||0;
	this.y=0;this.y2=BWD.ie && document.body.offsetHeight-5||innerHeight||0;
	this.x50=this.x2/2;this.y50=this.y2/2;
	return this;
}

lib_obj.prototype.ShowMenu = function(){this.css.visibility="visible"}
lib_obj.prototype.HideMenu = function(){this.css.visibility="hidden"}

function libinit(){
	page=new lib_doc_size();
	o=new Array();
	oo=new Array();
	for (i=0; i < MENU; i++){
		o[i]=new lib_obj('SUB'+i);o[i].HideMenu();
		//NEW
		oo[i]=new Array("","");
		for (j=0; j < SUBMENU_MAX_ITEMS; j++){
			if (ss[i] [j] != "NONE") {
				oo[i] [j]=new lib_obj('SUBSUB'+i+'_'+j);
				oo[i] [j].HideMenu();
			}
		}
	}
}

libinit();


// END MENU CODE -->
