
 
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.ie7=(this.ver.indexOf("MSIE 7")>-1 && this.dom)?1:0;
	this.ie8=(this.ver.indexOf("MSIE 8")>-1 && this.dom)?1:0;
	this.ie9=(this.ver.indexOf("MSIE 9")>-1 && this.dom)?1:0;
	this.ie4=(document.all && !this.dom)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6||this.ie7||this.ie8
	this.mac=this.agent.indexOf("Mac")>-1
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie9 ||this.ie8 ||this.ie7 ||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:///C|/Inetpub/wwwroot/dhtmlcentral/" 
oCMenu.onlineUrl="http://www.emergency.spb.ru/js/" 

oCMenu.pagecheck=1 
oCMenu.checkscroll=0 
oCMenu.resizecheck=1 
oCMenu.wait=500 

//Background bar properties
oCMenu.usebar=0 
oCMenu.barcolor="#6699cc" 
oCMenu.barwidth="100%" 
oCMenu.barheight="menu" 
oCMenu.barx=0 
oCMenu.bary=0 
oCMenu.barinheritborder=0 

//Placement properties
oCMenu.rows=1 
oCMenu.fromleft=0 
oCMenu.fromtop=60 
oCMenu.pxbetween=9 

oCMenu.menuplacement="center"

//TOP LEVEL PROPERTIES - ALL OF THESE MUST BE SPESIFIED FOR LEVEL[0]
oCMenu.level[0]=new Array() 
oCMenu.level[0].width=68 
oCMenu.level[0].height=18 
oCMenu.level[0].bgcoloroff="#6699cc" 
oCMenu.level[0].bgcoloron="#336699" 
oCMenu.level[0].textcolor="White" 
oCMenu.level[0].hovercolor="White" 
oCMenu.level[0].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:12px; font-weight:bold" 
oCMenu.level[0].border=0 
oCMenu.level[0].bordercolor="red" 
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=-1 
oCMenu.level[0].NS4font="tahoma,arial,helvetica"
oCMenu.level[0].NS4fontSize="2"


oCMenu.level[0].clip=1 
oCMenu.level[0].clippx=15 
oCMenu.level[0].cliptim=50 
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 

oCMenu.level[0].align="bottom" //Value: "top" || "bottom" || "left" || "right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES  
oCMenu.level[1]=new Array() 
oCMenu.level[1].width=140
oCMenu.level[1].height=18
oCMenu.level[1].style="padding:2px; font-family:tahoma, arial,helvetica; font-size:11px; font-weight:bold"
oCMenu.level[1].align="bottom" 
oCMenu.level[1].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[1].offsetY=0
oCMenu.level[1].border=1 
oCMenu.level[1].bordercolor="#006699"

//EXAMPLE SUB LEVEL[2] PROPERTIES 
oCMenu.level[2]=new Array() 
oCMenu.level[2].width=145
oCMenu.level[2].height=17
oCMenu.level[2].bgcoloroff="#6699cc"
oCMenu.level[2].bgcoloron="#336699"
oCMenu.level[2].style="padding:2px; font-family:tahoma,arial,helvetica; font-size:10px; font-weight:bold"
oCMenu.level[2].align="bottom" 
oCMenu.level[2].offsetX=-(oCMenu.level[0].width-2)/2+20
oCMenu.level[2].offsetY=0
oCMenu.level[2].border=1 
oCMenu.level[2].bordercolor="#006699"
oCMenu.level[2].NS4font="tahoma,arial,helvetica"
oCMenu.level[2].NS4fontSize="1"
oCMenu.level[2].clip=1 
oCMenu.level[2].clippx=20
oCMenu.level[2].cliptim=50


oCMenu.makeMenu('top0','','&nbsp;История','','',75)
	oCMenu.makeMenu('sub00','top0','И.И. Джанелидзе','http://www.emergency.spb.ru/history/jan.html')
	oCMenu.makeMenu('sub01','top0','До войны','http://www.emergency.spb.ru/history/before_war.html')
	oCMenu.makeMenu('sub02','top0','После войны','http://www.emergency.spb.ru/history/after_war.html')
	<!--oCMenu.makeMenu('sub03','top0','Настоящее время','http://www.emergency.spb.ru/history/present.html')-->
	
oCMenu.makeMenu('top1','','&nbsp;Структура','','',80)
	
	oCMenu.makeMenu('sub10','top1','Администрация','','',80)
		
		oCMenu.makeMenu('sub101','sub10','Директор','http://www.emergency.spb.ru/structure/adm/director.html')
		oCMenu.makeMenu('sub102','sub10','Заместители директора','http://www.emergency.spb.ru/structure/adm/zam_director.html')
		oCMenu.makeMenu('sub103','sub10','Заместители главного врача','http://www.emergency.spb.ru/structure/adm/chief_doc_zam.html','',145,30)
		
	oCMenu.makeMenu('sub11','top1','Научные отделы','')
	
		oCMenu.makeMenu('sub111','sub11','Ученый совет','http://www.emergency.spb.ru/structure/sci/uchsov.html')
		oCMenu.makeMenu('sub112','sub11','Проблемные комиссии','http://www.emergency.spb.ru/structure/sci/problem_commeet.html')
		oCMenu.makeMenu('sub113','sub11','Научно-методический отдел организации скорой помощи','http://www.emergency.spb.ru/structure/sci/metod.html','',145,40)
		oCMenu.makeMenu('sub114','sub11','Информационных и телекоммуникационных технологий','http://www.emergency.spb.ru/structure/sci/info_new.html','',145,40)
		oCMenu.makeMenu('sub115','sub11','Научная медицинская библиотека','http://www.emergency.spb.ru/structure/sci/lib.html','',145,30)
		oCMenu.makeMenu('sub116','sub11','Лаборатория новых организационных технологий, экономики и стандартизации в здравоохранении','http://www.emergency.spb.ru/structure/sci/standart.html','',145,65)
		
	oCMenu.makeMenu('sub12','top1','Клиника','')
		
		oCMenu.makeMenu('sub121','sub12','Отделы','')
			oCMenu.makeMenu('sub1211','sub121','Анестезиологии и реаниматологии','http://www.emergency.spb.ru/structure/departments/anes_reanim.html','',145,30)
			oCMenu.makeMenu('sub1212','sub121','Гинекологии','http://www.emergency.spb.ru/structure/departments/gyne.html')
			oCMenu.makeMenu('sub1213','sub121','Клинической токсикологии','http://www.emergency.spb.ru/structure/departments/toxy.html')
			oCMenu.makeMenu('sub1214','sub121','Лучевой диагностики','http://www.emergency.spb.ru/structure/departments/ray.html')
			oCMenu.makeMenu('sub1215','sub121','Лабораторной диагностики','http://www.emergency.spb.ru/structure/departments/lab_diag.html')
			oCMenu.makeMenu('sub1216','sub121','Отдел кардиологии и кардиохирургии','http://www.emergency.spb.ru/structure/departments/kadiohirurg.html','',145,30)
			oCMenu.makeMenu('sub1217','sub121','Нефрологии и ревматологии','http://www.emergency.spb.ru/structure/departments/nefrol_i_revmat.html','',145,30)
			oCMenu.makeMenu('sub1218','sub121','Сочетанной травмы','http://www.emergency.spb.ru/structure/departments/trauma.html')
			oCMenu.makeMenu('sub1219','sub121','Термических поражений','http://www.emergency.spb.ru/structure/departments/burn.html')
			oCMenu.makeMenu('sub12110','sub121','Травматологии','http://www.emergency.spb.ru/structure/departments/trauma1.html')
			oCMenu.makeMenu('sub12111','sub121','Травматологии, ортопедии и вертебрологии','http://www.emergency.spb.ru/structure/departments/trauma_i_ortoped.html','',145,30)
			oCMenu.makeMenu('sub12112','sub121','Хирургической гастроэнтерологии','http://www.emergency.spb.ru/structure/departments/8_surgical.html','',145,30)
			oCMenu.makeMenu('sub12113','sub121','Хирургических инфекций','http://www.emergency.spb.ru/structure/departments/ohi.html')
			oCMenu.makeMenu('sub12114','sub121','Эфферентной терапии','http://www.emergency.spb.ru/structure/departments/efter.html')
			oCMenu.makeMenu('sub12115','sub121','Экстренной медицинской помощи','http://www.emergency.spb.ru/structure/departments/priem.html','',145,30)
			oCMenu.makeMenu('sub12116','sub121','Отдел клинических исследований','http://www.emergency.spb.ru/structure/departments/klinic_issled.html','',145,30)
			oCMenu.makeMenu('sub12117','sub121','Хиругической гепатологии','http://www.emergency.spb.ru/structure/departments/gepato.html')
						
			
			
		oCMenu.makeMenu('sub122','sub12','Отделения','')
			oCMenu.makeMenu('sub1221','sub122','Амбулаторно-консультативное','http://www.emergency.spb.ru/structure/branch/amb-kons.html','',145,30)
			oCMenu.makeMenu('sub1222','sub122','Неотложной кардиологии','http://www.emergency.spb.ru/structure/branch/neotl_kardiology.html')
			oCMenu.makeMenu('sub1223','sub122','Неотложной онкологии','http://www.emergency.spb.ru/structure/branch/onko.html')
			oCMenu.makeMenu('sub1224','sub122','Панкреатологии','http://www.emergency.spb.ru/structure/branch/pank.html')
			oCMenu.makeMenu('sub1225','sub122','Физиотерапии','http://www.emergency.spb.ru/structure/branch/physio.html')
			oCMenu.makeMenu('sub1226','sub122','Функциональной диагностики','http://www.emergency.spb.ru/structure/branch/fdiag.html','',145,30)
			oCMenu.makeMenu('sub1227','sub122','Центр органного и тканевого донорства','http://www.emergency.spb.ru/structure/departments/transpl.html','',145,30)
			oCMenu.makeMenu('sub1228','sub122','Эндоскопии','http://www.emergency.spb.ru/structure/branch/endo.html')
			oCMenu.makeMenu('sub1229','sub122','Торакальной хирургии','http://www.emergency.spb.ru/structure/branch/torocal.html')
			oCMenu.makeMenu('sub12210','sub122','Нейрохирургическое отделение','http://www.emergency.spb.ru/structure/branch/neirohirurg.html')
			
	        
	
	oCMenu.makeMenu('sub13','top1','Лаборатории','')
			oCMenu.makeMenu('sub131','sub13','Иммунологии','http://www.emergency.spb.ru/structure/lab/imm.html')
			oCMenu.makeMenu('sub132','sub13','Лабораторной диагностики','http://www.emergency.spb.ru/structure/lab/diag.html')
	oCMenu.makeMenu('sub14','top1','Кабинеты','')
			oCMenu.makeMenu('sub141','sub14','Переливания крови','http://www.emergency.spb.ru/structure/rooms/blood.html')
			oCMenu.makeMenu('sub142','sub14','Cтоматологический','http://www.emergency.spb.ru/structure/rooms/tooth.html')
			
oCMenu.makeMenu('top3','','&nbsp;Обучение','','',85)
	oCMenu.makeMenu('sub30','top3','Образовательная деятельность','http://www.emergency.spb.ru/education/edu.html','',140,30)
	oCMenu.makeMenu('sub31','top3','Семинары и циклы','http://www.emergency.spb.ru/education/seminars2008.html')
	oCMenu.makeMenu('sub32','top3','Стажировки','http://www.emergency.spb.ru/education/trainee.html')
	oCMenu.makeMenu('sub33','top3','Публикации','http://www.emergency.spb.ru/education/public.html')
	
oCMenu.makeMenu('top4','','Конференции','','',95)
	oCMenu.makeMenu('sub40','top4','2006 год','http://www.emergency.spb.ru/conference/conf2006.html')
	oCMenu.makeMenu('sub41','top4','2007 год','http://www.emergency.spb.ru/conference/conf2007.html')
	oCMenu.makeMenu('sub42','top4','2008 год','http://www.emergency.spb.ru/conference/conf2008.html')
	oCMenu.makeMenu('sub43','top4','2009 год','http://www.emergency.spb.ru/conference/conf2009.html')
	oCMenu.makeMenu('sub44','top4','2010 год','http://www.emergency.spb.ru/conference/conf2010.html')
	oCMenu.makeMenu('sub45','top4','2011 год','http://www.emergency.spb.ru/conference/conf2011.html')
oCMenu.makeMenu('top5','','Телемедицина','','',95)
	oCMenu.makeMenu('sub50','top5','Балтийский центр телемедицины','http://www.emergency.spb.ru/online/bct1.html','',140,30)
	oCMenu.makeMenu('sub51','top5','Мобильная телемедицина','http://www.emergency.spb.ru/online/mobile.html','',140,30)
	<!--oCMenu.makeMenu('sub52','top5','Программа ДОРИС','http://www.emergency.spb.ru/online/doris.html')-->	
	<!--oCMenu.makeMenu('sub53','top5','Телемедицинcкий форум','http://www.emergency.spb.ru/cgi-bin/board/forum.pl','',140,30)-->	
	oCMenu.makeMenu('sub52','top5','Запись на телемедицинскую консультацию','http://www.emergency.spb.ru/online/order.html','',140,45)
	oCMenu.makeMenu('sub53','top5','Вертолетная площадка','http://www.emergency.spb.ru/online/helicopter.html','',140,30)
	
oCMenu.makeMenu('top6','','&nbsp;&nbsp;&nbsp;Услуги','')
oCMenu.makeMenu('sub060','top6','Центр пластической и косметической хирургии','http://www.emergency.spb.ru/service/plast.html','',140,45)
oCMenu.makeMenu('sub061','top6','Квота для амбулаторных больных в системе ОМС-спиральный компьютерный томограф','http://www.emergency.spb.ru/online/kt.html','',140,95)
oCMenu.makeMenu('sub062','top6','Квоты для жителей Санкт-Петербурга, страдающих заболеваниями сердечно-сосудистой системы','http://www.emergency.spb.ru/service/heart.html','',140,95)
oCMenu.makeMenu('sub063','top6','Виды медицинской помощи, оказываемые в ГУ СПб НИИ СП им. И.И.  Джанелидзе','http://www.emergency.spb.ru/service/vidimedpom.html','',140,65)


	<!--oCMenu.makeMenu('sub060','top6','Амбулаторно-консультативное отделение','http://www.emergency.spb.ru/structure/branch/amb-kons.html','',140,45)-->
	<!--oCMenu.makeMenu('sub062','top6','Токсикологический центр','http://www.emergency.spb.ru/service/toxy.html','',140,30)-->
	<!--oCMenu.makeMenu('sub063','top6','Лаборатория иммунологии','http://www.emergency.spb.ru/service/immun.html','',140,30)-->
	<!--oCMenu.makeMenu('sub064','top6','Стационарные','http://www.emergency.spb.ru/service/stac.html')-->	
	<!--oCMenu.makeMenu('sub065','top6','Амбулаторные','http://www.emergency.spb.ru/service/amb.html')-->	
	<!--oCMenu.makeMenu('sub066','top6','Госпитализация','http://www.emergency.spb.ru/service/gosp.html')-->	
	<!--oCMenu.makeMenu('sub064','top6','Очищение крови','http://www.emergency.spb.ru/service/main_plazma.html')-->
	<!--oCMenu.makeMenu('sub065','top6','Центр по лечению грыж','http://www.emergency.spb.ru/service/centr_gryga.html','',140,30)-->
	
oCMenu.makeMenu('top7','','&nbsp;Контакт','','',80)
	oCMenu.makeMenu('sub070','top7','Телефоны','http://www.emergency.spb.ru/contact/phones.html','',90)
	oCMenu.makeMenu('sub071','top7','E-mail','http://www.emergency.spb.ru/contact/e-mail.html','',90)	
	
	
	
oCMenu.makeMenu('top8','','&nbsp;Вакансии','http://www.emergency.spb.ru/contact/vacantions.html','',65)
	
		

oCMenu.makeStyle(); oCMenu.construct()	


		
