// Copyright 2004 SLIMART.ru
// ------- www.slimart.ru ---------

// JavaScript Document
function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion; this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 7")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5 || this.dom)
	return this
}
var bw=new lib_bwcheck() 

var mDebugging=2 

oCMenu=new makeCoolMenu("oCMenu") 
oCMenu.useframes=0 
oCMenu.frame="frmMain"
oCMenu.useclick=0 
oCMenu.useNS4links=1  
oCMenu.NS4padding=2 
oCMenu.checkselect=0


//oCMenu.offlineUrl="file:///J:/!!!new_cocker/"
//oCMenu.onlineUrl="http://localhost/!!!new_cocker/"
//oCMenu.onlineUrl="http://www.cocker.slimart.ru/"
oCMenu.onlineUrl="http://www.cocker.ru/"

oCMenu.pagecheck=1
oCMenu.checkscroll=0
oCMenu.resizecheck=1 
oCMenu.wait=1000

//Background bar properties
oCMenu.usebar=1 
oCMenu.barcolor="white" 
oCMenu.barwidth="menu"
oCMenu.barheight="menu" 
oCMenu.barx="menu" 
oCMenu.bary="menu" 
oCMenu.barinheritborder=0 

//Placement properties
oCMenu.rows=0 //This controls whether the top items is supposed to be laid out in rows or columns. Set to 0 for columns and 1 for row - Value 0 || 1
oCMenu.fromleft=90 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.fromtop=250 //This is the left position of the menu. (Only in use if menuplacement below is 0 or aligned) (will change to adapt any borders) - Value: px || "%"
oCMenu.pxbetween=5 //How much space you want between each of the top items. - Value: px || "%"

oCMenu.menuplacement=0

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() //Add this for each new level
oCMenu.level[0].width=200 //The default width for each level[0] (top) items. You can override this on each item by spesifying the width when making the item. - Value: px || "%"
oCMenu.level[0].height=20 //The default height for each level[0] (top) items. You can override this on each item by spesifying the height when making the item. - Value: px || "%"
oCMenu.level[0].bgcoloroff="white" //The default background color for each level[0] (top) items. You can override this on each item by spesifying the backgroundcolor when making the item. - Value: "color"
oCMenu.level[0].bgcoloron="white" //The default "on" background color for each level[0] (top) items. You can override this on each item by spesifying the "on" background color when making the item. - Value: "color"
oCMenu.level[0].textcolor="#999999" //The default text color for each level[0] (top) items. You can override this on each item by spesifying the text color when making the item. - Value: "color"
oCMenu.level[0].hovercolor="black" //The default "on" text color for each level[0] (top) items. You can override this on each item by spesifying the "on" text color when making the item. - Value: "color"
oCMenu.level[0].style="padding:1px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold" //The style for all level[0] (top) items. - Value: "style_settings"
oCMenu.level[0].border=0 //The border size for all level[0] (top) items. - Value: px
oCMenu.level[0].bordercolor="white" //The border color for all level[0] (top) items. - Value: "color"
oCMenu.level[0].offsetX=0 //The X offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].offsetY=0 //The Y offset of the submenus of this item. This does not affect the first submenus, but you need it here so it can be the default value for all levels. - Value: px
oCMenu.level[0].NS4font="tahoma,arial,helvetica,font-size:12px"
oCMenu.level[0].NS4fontSize="2"
oCMenu.level[0].charset="windows-1251"

/*New: Added animation features that can be controlled on each level.*/
oCMenu.level[0].clip=1 //Set this to 1 if you want the submenus of this level to "slide" open in a animated clip effect. - Value: 0 || 1
oCMenu.level[0].clippx=15 //If you have clip spesified you can set how many pixels it will clip each timer in here to control the speed of the animation. - Value: px 
oCMenu.level[0].cliptim=50 //This is the speed of the timer for the clip effect. Play with this and the clippx to get the desired speed for the clip effect (be carefull though and try and keep this value as high or possible or you can get problems with NS4). - Value: milliseconds
//Filters - This can be used to get some very nice effect like fade, slide, stars and so on. EXPLORER5.5+ ONLY - If you set this to a value it will override the clip on the supported browsers
oCMenu.level[0].filter=0 //VALUE: 0 || "filter specs"


oCMenu.level[0].align="right" //Value: "top" || "bottom" || "left" || "right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to spesify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=oCMenu.level[0].width
oCMenu.level[1].height=30
//oCMenu.level[1].bgcoloroff="transparent"
//oCMenu.level[1].bgcoloron="transparent"
oCMenu.level[1].style="padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#cccccc"
elStr = "<DIV STYLE='filter:alpha(opacity=50);position:absolute;z-index:10'></DIV>";
//oCMenu.level[1].innerHTML("BeforeEnd",elStr);

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to spesify the properties you want different from LEVEL[1] OR LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[2]=new Array() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=200
oCMenu.level[2].height=30
//oCMenu.level[2].bgcoloroff="white"
//oCMenu.level[2].bgcoloron="white"
oCMenu.level[2].style="filter:alpha(opacity=100); padding:2px; font-family:tahoma,arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#cccccc"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"
<!-- -------------------------------------------- -->
oCMenu.makeMenu('top1','','&nbsp;EN',oCMenu.onlineUrl+'eng/')		
oCMenu.makeMenu('top0','','&nbsp;На главную','http://cocker.ru/index.php')		

/*
oCMenu.makeMenu('top1','','&nbsp;НКП','')
	oCMenu.makeMenu('sub10','top1','Информация о НКП','')
		oCMenu.makeMenu('sub101','sub10','Свидетельство о регистрации','http://nkp.cocker.ru/index.php?mode=certif')
		oCMenu.makeMenu('sub102','sub10','Свидетельство о гос. регистрации','http://nkp.cocker.ru/index.php?mode=certif_gos')
		oCMenu.makeMenu('sub103','sub10','Как вступить в НКП','http://nkp.cocker.ru/index.php?mode=join')
	oCMenu.makeMenu('sub11','top1','&nbsp;Новости','')
		oCMenu.makeMenu('sub110','sub11','Последние новости','http://nkp.cocker.ru/index.php?mode=news')
		oCMenu.makeMenu('sub111','sub11','Архив новостей','http://nkp.cocker.ru/index.php?mode=news&action=archive')
//	oCMenu.makeMenu('sub11','top1','Новости НКП','http://nkp.cocker.ru/index.php?mode=news')
	oCMenu.makeMenu('sub12','top1','Президент НКП','http://nkp.cocker.ru/index.php?mode=president')
	oCMenu.makeMenu('sub13','top1','Президиум НКП','http://nkp.cocker.ru/index.php?mode=presidium')
	oCMenu.makeMenu('sub14','top1','Устав НКП','http://nkp.cocker.ru/index.php?mode=law')
	oCMenu.makeMenu('sub15','top1','Стандарт породы','http://nkp.cocker.ru/index.php?mode=standart')
	oCMenu.makeMenu('sub16','top1','Контакты','http://nkp.cocker.ru/index.php?mode=contact')
	oCMenu.makeMenu('sub17','top1','Монопородные выставки','')
		oCMenu.makeMenu('sub170','sub17','Календарь выставок','http://nkp.cocker.ru/index.php?mode=expo_cal')
		oCMenu.makeMenu('sub171','sub17','Положение о выставках','http://nkp.cocker.ru/index.php?mode=expo_rule')
	oCMenu.makeMenu('sub18','top1','Чемпионы НКП','http://nkp.cocker.ru/index.php?mode=champions')
*/
	
oCMenu.makeMenu('top2','','&nbsp;Новости сайта','')
	oCMenu.makeMenu('sub20','top2','Последние новости сайта','http://cocker.ru/news/index.php')
	oCMenu.makeMenu('sub21','top2','Архив новостей сайта','http://cocker.ru/news/index.php?action=archive')
	
oCMenu.makeMenu('top3','','&nbsp;Каталог собак','http://cocker.ru/dogs/index.php')
	oCMenu.makeMenu('sub31','top3','Кобели','')
		oCMenu.makeMenu('sub310','sub31','Окрас черный','http://cocker.ru/dogs/dogs.php?color=1&sex=кобель')
		oCMenu.makeMenu('sub311','sub31','Окрас палевый','http://cocker.ru/dogs/dogs.php?color=2&sex=кобель')
		oCMenu.makeMenu('sub312','sub31','Окрас цветной','http://cocker.ru/dogs/dogs.php?color=3&sex=кобель')
		oCMenu.makeMenu('sub313','sub31','Окрас шоколадный','http://cocker.ru/dogs/dogs.php?color=4&sex=кобель')
	 oCMenu.makeMenu('sub32','top3','Суки','')
		oCMenu.makeMenu('sub320','sub32','Окрас черный','http://cocker.ru/dogs/dogs.php?color=1&sex=сука')
		oCMenu.makeMenu('sub321','sub32','Окрас палевый','http://cocker.ru/dogs/dogs.php?color=2&sex=сука') 
		oCMenu.makeMenu('sub322','sub32','Окрас цветной','http://cocker.ru/dogs/dogs.php?color=3&sex=сука') 
		oCMenu.makeMenu('sub323','sub32','Окрас шоколадный','http://cocker.ru/dogs/dogs.php?color=4&sex=сука') 
//	oCMenu.makeMenu('sub33','top3','Ветераны','')

oCMenu.makeMenu('top4','','&nbsp;Собаки зарубежья','http://cocker.ru/parade/index.php')

oCMenu.makeMenu('top5','','&nbsp;Щенки','http://cocker.ru/puppys/index.php')

oCMenu.makeMenu('top6','','&nbsp;Фотогалерея','http://cocker.ru/gallery/index.php?club_id=1')

oCMenu.makeMenu('top7','','&nbsp;Клубы','http://cocker.ru/clubs/index.php?who=1')

oCMenu.makeMenu('top8','','&nbsp;Питомники','http://cocker.ru/clubs/index.php?who=2')

oCMenu.makeMenu('top9','','&nbsp;Персоналии','http://cocker.ru/clubs/index.php?who=3')

oCMenu.makeMenu('top10','','&nbsp;Просвещаемся','http://cocker.ru/advice/index.php')

oCMenu.makeMenu('top11','','&nbsp;Голосования','http://cocker.ru/poll/index.php')

oCMenu.makeMenu('top12','','&nbsp;Ccылки','http://cocker.ru/links/index.php')

oCMenu.makeMenu('top13','','&nbsp;Контакты','http://cocker.ru/contacts/index.php')

oCMenu.makeMenu('top14','','&nbsp;Поиск по сайту','http://cocker.ru/search/index.php')

oCMenu.makeMenu('top15','','&nbsp;Форум','http://forum.cocker.ru/')

//oCMenu.makeMenu('top16','','&nbsp;Конкурсы','http://cocker.ru/index_empty.php')

//oCMenu.makeMenu('top17','','&nbsp;Виртуальные выставки','http://cocker.ru/index_empty.php')

//Leave these two lines! Making the styles and then constructing the menu
oCMenu.makeStyle(); oCMenu.construct()		
