/*****************************************************************************
Copyright (c) 2001 Thomas Brattli (webmaster@dhtmlcentral.com)

DHTML coolMenus - Get it at coolmenus.dhtmlcentral.com
Version 4.0_beta
This script can be used freely as long as all copyright messages are
intact.

Extra info - Coolmenus reference/help - Extra links to help files **** 
CSS help: http://192.168.1.31/projects/coolmenus/reference.asp?m=37
General: http://coolmenus.dhtmlcentral.com/reference.asp?m=35
Menu properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=47
Level properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=48
Background bar properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=49
Item properties: http://coolmenus.dhtmlcentral.com/properties.asp?m=50
******************************************************************************/

/*** 
This is the menu creation code - place it right after you body tag
Feel free to add this to a stand-alone js file and link it to your page.
**/

//Extra code to find position:
function findPos(){
  if(bw.ns4){   //Netscape 4
    x = document.layers.layerMenu.pageX
    y = document.layers.layerMenu.pageY
  }else{ //other browsers
    x=0; y=0; var el,temp
    el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
    if(el.offsetParent){
      temp = el
      while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
        temp=temp.offsetParent; 
        x+=temp.offsetLeft
        y+=temp.offsetTop;
      }
    }
    x+=el.offsetLeft
    y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos()

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

//Menu properties 
  
oCMenu.pxBetween=0
oCMenu.fromLeft=pos[0]
oCMenu.fromTop=pos[1]
oCMenu.onresize="pos = findPos(); oCMenu.fromLeft=pos[0]; oCMenu.fromTop=pos[1]"

oCMenu.rows=0
oCMenu.menuPlacement=0
       
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="images/green.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=1
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX="menu"
oCMenu.barY="menu"
oCMenu.barBorderX=0
oCMenu.barBorderY=0
oCMenu.barBorderClass=""

//Level properties - ALL properties have to be specified in level 0
oCMenu.level[0]=new cm_makeLevel() //Add this for each new level
oCMenu.level[0].width=198
oCMenu.level[0].height=33
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0 
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass=0
oCMenu.level[0].offsetX=0 
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].align="right" 

//EXAMPLE SUB LEVEL[1] PROPERTIES - You have to specify the properties you want different from LEVEL[0] - If you want all items to look the same just remove this
oCMenu.level[1]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[1].width=180
oCMenu.level[1].height=25
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].rows=0
oCMenu.level[1].align="right" 

//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify the properties you want different from LEVEL[1] - If you want all items to look the same just remove this
oCMenu.level[2]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=180
oCMenu.level[2].height=25
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].align="right" 
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].borderClass="clLevel2border"
oCMenu.level[2].rows=0


//EXAMPLE SUB LEVEL[3] PROPERTIES - You have to specify the properties you want different from LEVEL[1] - If you want all items to look the same just remove this
oCMenu.level[3]=new cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[3].width=180
oCMenu.level[3].height=20
oCMenu.level[3].regClass="clLevel3"
oCMenu.level[3].overClass="clLevel3over"
oCMenu.level[3].align="right" 
oCMenu.level[3].offsetX=0
oCMenu.level[3].offsetY=0
oCMenu.level[3].borderClass="clLevel3border"
oCMenu.level[3].rows=0
/******************************************
Menu item creation:
myCoolMenu.makeMenu(name, parent_name, text, link, target, width, height, regImage, overImage, regClass, overClass , align, rows, nolink, onclick, onmouseover, onmouseout) 
*************************************/
oCMenu.makeMenu('top0','','Karel Telecomms','index.php')

oCMenu.makeMenu('top00','','» PABX Solutions','pabxsolutions.php')

    oCMenu.makeMenu('top1','top00','» Telephone Systems','telesystems.php')

	oCMenu.makeMenu('sub10','top1','» Medium & Large Sized','telesystems.php')
		oCMenu.makeMenu('sub10a','sub10','DS200 (0/0) - Digital PABX','prod_073.php')
		oCMenu.makeMenu('sub10b','sub10','DS200S (0/0) - Digital PABX','prod_075.php')
		oCMenu.makeMenu('sub10c','sub10','DS200M (0/0) - Digital PABX','prod_074.php')
		oCMenu.makeMenu('sub10d','sub10','MS224 (0/0) - PABX','prod_077.php')
		oCMenu.makeMenu('sub10e','sub10','MS128 (0/0) - PABX','prod_076.php')


	oCMenu.makeMenu('sub11','top1','» SOHO Systems','telesystems.php')
		oCMenu.makeMenu('sub11a','sub11','MS48-ISDN (2T0/12) - ISDN PABX ','prod_071.php')
		oCMenu.makeMenu('sub11b','sub11','MS48S (4/12) - PABX ','prod_072.php')
		oCMenu.makeMenu('sub11c','sub11','MS38-ISDN (1T0/8) - ISDN PABX','prod_069.php')
		oCMenu.makeMenu('sub11d','sub11','MS38S (4/8) - PABX (with CLID)','prod_070.php')
		oCMenu.makeMenu('sub11e','sub11','MS26C (2/6) - PABX (with CLID)','prod_046.php')
		oCMenu.makeMenu('sub11f','sub11','MS26S (2/6) - PABX ','prod_068.php')

oCMenu.makeMenu('top2','top00','» Accessories','accessories.php')

	oCMenu.makeMenu('sub20','top2','» Wireless Systems','accessories.php')
		oCMenu.makeMenu('sub20a','sub20','DT130 - DECT System','prod_145.php')

	oCMenu.makeMenu('sub21','top2','» CRL & CTI','accessories.php')
		oCMenu.makeMenu('sub21a','sub21','» Call Record Listing Interface')
			oCMenu.makeMenu('sub21aa','sub21a','NET-CM200','prod_031.php','','100')
			oCMenu.makeMenu('sub21ab','sub21a','NET-CM224','prod_032.php','','100')
			oCMenu.makeMenu('sub21ac','sub21a','NET-CM128','prod_030.php','','100')
			oCMenu.makeMenu('sub21ad','sub21a','NET-CM48S','prod_133.php','','100')
			oCMenu.makeMenu('sub21ae','sub21a','NET-CM48','prod_034.php','','100')
			oCMenu.makeMenu('sub21af','sub21a','NET-CM26S/38S','prod_033.php','','100')

		oCMenu.makeMenu('sub21b','sub21','» Net Console Interface','accessories.php')
			oCMenu.makeMenu('sub21ba','sub21b','NET-CON200 ','prod_100.php','','100')
			oCMenu.makeMenu('sub21bb','sub21b','NET-CON224','prod_099.php','','100')
			oCMenu.makeMenu('sub21bc','sub21b','NET-CON128','prod_098.php','','100')
			oCMenu.makeMenu('sub21bd','sub21b','NET-CON48S','prod_134.php','','100')
			oCMenu.makeMenu('sub21be','sub21b','NET-CON48','prod_097.php','','100')
			oCMenu.makeMenu('sub21bf','sub21b','NET-CON38S','prod_096.php','','100')

		oCMenu.makeMenu('sub21c','sub21','» CRL & Call Record Listing Interface','accessories.php')
			oCMenu.makeMenu('sub21ca','sub21c','NET-CM+CON200 ','prod_142.php','','100')
			oCMenu.makeMenu('sub21cb','sub21c','NET-CM+CON224','prod_141.php','','100')
			oCMenu.makeMenu('sub21cc','sub21c','NET-CM+CON128','prod_140.php','','100')
			oCMenu.makeMenu('sub21cd','sub21c','NET-CM+CON48','prod_138.php','','100')
			oCMenu.makeMenu('sub21ce','sub21c','NET-CM+CON48S','prod_139.php','','100')
			oCMenu.makeMenu('sub21cf','sub21c','NET-CM+CON38S','prod_137.php','','100')

		oCMenu.makeMenu('sub21s','sub21','KY16 - Mini Printer','prod_035.php')


	oCMenu.makeMenu('sub22','top2','» Auto Attendant & Voice Mail','accessories.php')

		oCMenu.makeMenu('sub22a','sub22','» Auto Attendant & Voice Mail')
			oCMenu.makeMenu('sub22aa','sub22a','EVM200','prod_020.php','','100')
			oCMenu.makeMenu('sub22ab','sub22a','EVM224S','prod_021.php','','100')
			oCMenu.makeMenu('sub22ac','sub22a','EVM128S','prod_019.php','','100')

		oCMenu.makeMenu('sub22b','sub22','» Auto Attendant')
			oCMenu.makeMenu('sub22ba','sub22b','EVM128','prod_018.php','','100')
			oCMenu.makeMenu('sub22bb','sub22b','EVM48S','prod_023.php','','100')
			oCMenu.makeMenu('sub22bc','sub22b','EVM48S','prod_136.php','','100')
			oCMenu.makeMenu('sub22bd','sub22b','EVM388S','prod_022.php','','100')

	oCMenu.makeMenu('sub23','top2','» GSM Gateways','accessories.php')
		oCMenu.makeMenu('sub23a','sub23','GT10 & GT20 - GSM Gateways','prod_060.php')
		oCMenu.makeMenu('sub23b','sub23','GT-SMS - GSM SMS Server ','prod_128.php')


	oCMenu.makeMenu('sub24','top2','» Other Accessories','accessories.php')
		oCMenu.makeMenu('sub24a','sub24','ETH200 - Ethernet Adaptor','prod_135.php')
		oCMenu.makeMenu('sub24b','sub24','ID12 - Caller ID Base Unit','prod_012.php')
		oCMenu.makeMenu('sub24c','sub24','IA12 - ISDN Adaptor','prod_011.php')
		oCMenu.makeMenu('sub24d','sub24','BBU38S - Battery Backup Interface ','prod_008.php')
		oCMenu.makeMenu('sub24e','sub24','DY01 - Doorphone','prod_014.php')
		oCMenu.makeMenu('sub24f','sub24','DY26 - Doorphone','prod_132.php')
		oCMenu.makeMenu('sub24g','sub24','USB-RS - USB-RS232 Convertor','prod_131.php')
		oCMenu.makeMenu('sub24h','sub24','KT200 - Data Multiplexer','prod_129.php')
		oCMenu.makeMenu('sub24i','sub24','RS232 - Serial Printer Interface','prod_144.php')
		oCMenu.makeMenu('sub24j','sub24','FPBASE - Filter & Protection Unit','prod_122.php')
		oCMenu.makeMenu('sub24k','sub24','SPBASE - Protection Unit','prod_013.php')
		oCMenu.makeMenu('sub24l','sub24','FUSE10 - MDF Fuse Module','prod_130.php')
		oCMenu.makeMenu('sub24m','sub24','HR08 - Transfer Relay Unit','prod_010.php')
		oCMenu.makeMenu('sub24n','sub24','HR06 - Transfer Relay Unit','prod_009.php')
		oCMenu.makeMenu('sub24o','sub24','RL04 - Relay Unit','prod_143.php')

oCMenu.makeMenu('top3','top00','» Telephones','telephones.php')

	oCMenu.makeMenu('sub30','top3','» Feature Phones','telephones.php')
		oCMenu.makeMenu('sub30a','sub30','ST20 - Digital Phone','prod_029.php')
		oCMenu.makeMenu('sub30b','sub30','FT20 - Feature Phone','prod_025.php')
		oCMenu.makeMenu('sub30c','sub30','LT200 - Feature Phone','prod_127.php')
		oCMenu.makeMenu('sub30d','sub30','FT10 - Feature Phone','prod_024.php')
		oCMenu.makeMenu('sub30e','sub30','LT48 - Feature Phone','prod_027.php')
		oCMenu.makeMenu('sub30f','sub30','OP48 - Feature Phone','prod_028.php')
		oCMenu.makeMenu('sub30g','sub30','LT26S - Feature Phone','prod_026.php') 

	oCMenu.makeMenu('sub31','top3','» Add-on Modules','telephones.php')
		oCMenu.makeMenu('sub31a','sub31','DSS10 - Add-On Modules','prod_001.php')
		oCMenu.makeMenu('sub31b','sub31','DSS20 - Add-On Modules','prod_002.php')
		oCMenu.makeMenu('sub31c','sub31','DSS40 & DSS80 - Add-On Modules','prod_003.php')
		oCMenu.makeMenu('sub31d','sub31','DSS200E - Add-On Module','prod_126.php')

 
	oCMenu.makeMenu('sub32','top3','» Caller ID Telephones','telephones.php')
		oCMenu.makeMenu('sub32a','sub32','BT104 - Caller ID Telephone ','prod_078.php')

	oCMenu.makeMenu('sub33','top3','» ISDN Telephones','telephones.php')
		oCMenu.makeMenu('sub33a','sub33','IRIS20 - ISDN Telephone','prod_080.php')

	oCMenu.makeMenu('sub34','top3','» Single Line Telephones','telephones.php')
		oCMenu.makeMenu('sub34a','sub34','FULYA - DP/DTMF Telephone','prod_044.php')
		oCMenu.makeMenu('sub34b','sub34','LADIN - DP/DTMF Telephone','prod_045.php')

oCMenu.makeMenu('top4','','Online Support Form','support.php')

oCMenu.makeMenu('top5','','Downloads','downloads.php')

oCMenu.makeMenu('top6','','Contact Details','contacts.php')

oCMenu.makeMenu('top7','','Kartel Partner Website','../partner/index.php')


//Leave this line - it constructs the menu
oCMenu.construct()