//Start of variables for correcting url//

var sCurrentPage;
var sSubLocation;
var sSubFolderPath;
var rootdir;
var imgdir;

//End of variables for correcting url//

//Menu object creation
oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname

oCMenu.frames=0

//Menu properties   
oCMenu.pxBetween=0
oCMenu.fromLeft=0
oCMenu.fromTop=50
oCMenu.rows=1
oCMenu.menuPlacement="center"
                                                             
oCMenu.offlineRoot="" 
oCMenu.onlineRoot="" 
oCMenu.resizeCheck=1 
oCMenu.wait=1000 
oCMenu.fillImg="cm_fill.gif"
oCMenu.zIndex=0

//Background bar properties
oCMenu.useBar=0
oCMenu.barWidth="menu"
oCMenu.barHeight="menu" 
oCMenu.barClass="clBar"
oCMenu.barX=0 
oCMenu.barY=0
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=103
oCMenu.level[0].height=29
oCMenu.level[0].regClass="clLevel0"
oCMenu.level[0].overClass="clLevel0over"
oCMenu.level[0].borderX=0
oCMenu.level[0].borderY=0
oCMenu.level[0].borderClass="clLevel0border"
oCMenu.level[0].arrow=0
oCMenu.level[0].offsetX=0
oCMenu.level[0].offsetY=0
oCMenu.level[0].rows=0
oCMenu.level[0].arrow=0
oCMenu.level[0].arrowWidth=12
oCMenu.level[0].arrowHeight=12
oCMenu.level[0].align="bottom"
//oCMenu.level[0].arrow=getLocation() + 'but5.gif'

//dynamic effect (controllable for each level)
//oCMenu.level[0].clippx=2
//oCMenu.level[0].cliptim=2
//special animation filters (IE5.5+ only, controllable for each level)
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)" 

//Other special animation filters (IE5.5+ only, controllable for each level)
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Barn(duration=0.5,orientation=horizontal)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Blinds(duration=0.5,bands=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.CheckerBoard(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.5)"
oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=1)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=STAR)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Iris(duration=0.5,irisStyle=CIRCLE)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Pixelate(duration=0.5,maxSquare=40)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Wheel(duration=0.5,spokes=5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.RandomDissolve(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Spiral(duration=0.5)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Stretch(duration=0.5,stretchStyle=push)"
//oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Strips(duration=0.5,motion=rightdown)"


//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=oCMenu.level[0].width-4
oCMenu.level[1].width=103
oCMenu.level[1].height=21
oCMenu.level[1].regClass="clLevel1"
oCMenu.level[1].overClass="clLevel1over"
oCMenu.level[1].borderX=0
oCMenu.level[1].borderY=0
oCMenu.level[1].align="right" 
oCMenu.level[1].offsetX=0
oCMenu.level[1].offsetY=0
oCMenu.level[1].borderClass="clLevel1border"
oCMenu.level[1].arrow=0
//dynamic effect
//oCMenu.level[1].clippx=2
//oCMenu.level[1].cliptim=2
oCMenu.level[1].clippx=200
oCMenu.level[1].cliptim=200
oCMenu.level[1].filter="progid:DXImageTransform.Microsoft.GradientWipe(duration=0.5,wipeStyle=0)"


//EXAMPLE SUB LEVEL[2] PROPERTIES - You have to specify 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 cm_makeLevel() //Add this for each new level (adding one to the number)
oCMenu.level[2].width=145
oCMenu.level[2].height=21
oCMenu.level[2].offsetX=0
oCMenu.level[2].offsetY=0
oCMenu.level[2].regClass="clLevel2"
oCMenu.level[2].overClass="clLevel2over"
oCMenu.level[2].borderClass="clLevel2border"


/******************************************
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('top1','','|  PRODUCT',getLocation() + 'products/index.htm')
	oCMenu.makeMenu('sub10','top1','Overview',getLocation() + 'products/index.htm')
	oCMenu.makeMenu('sub11','top1','Framework',getLocation() + 'products/framework.htm')
		oCMenu.makeMenu('sub110','sub11','Framework Overview',getLocation() + 'products/framework.htm')
		oCMenu.makeMenu('sub111','sub11','Pre-Built Applications',getLocation() + 'products/solutions.htm')
	oCMenu.makeMenu('sub12','top1','Features',getLocation() + 'products/features.htm')
	oCMenu.makeMenu('sub13','top1','Benefits',getLocation() + 'products/benefits.htm')
	oCMenu.makeMenu('sub14','top1','Architecture',getLocation() + 'products/technical.htm')
		oCMenu.makeMenu('sub140','sub14','Architecture Overview',getLocation() + 'products/technical.htm')
		oCMenu.makeMenu('sub141','sub14','.NET Connected',getLocation() + 'products/dotnet_connected.htm')
		oCMenu.makeMenu('sub142','sub14','Web Services',getLocation() + 'products/services.htm')
	oCMenu.makeMenu('sub15','top1','Integration',getLocation() + 'products/integration.htm')
	oCMenu.makeMenu('sub16','top1','White Paper',getLocation() + 'reports/index.htm')
	oCMenu.makeMenu('sub17','top1','Product Demo',getLocation() + 'demo/index.htm')
	
	oCMenu.makeMenu('sub20','top1','','','','','','','','navbottom','navbottomover')
	
oCMenu.makeMenu('top2','','|  SOLUTIONS',getLocation() + 'solutions/index.htm')
	oCMenu.makeMenu('sub21','top2','Overview',getLocation() + 'solutions/index.htm')
	oCMenu.makeMenu('sub22','top2','Pre-built Solutions',getLocation() + 'solutions/applications.htm')
		oCMenu.makeMenu('sub220','sub22','Pre-built Solutions Overview',getLocation() + 'solutions/applications.htm')
		oCMenu.makeMenu('sub221','sub22','Client Matter Inception',getLocation() + 'solutions/inception.htm')
		oCMenu.makeMenu('sub222','sub22','Debt Recovery',getLocation() + 'solutions/recovery.htm')
		oCMenu.makeMenu('sub223','sub22','Dispute Resolution',getLocation() + 'solutions/resolution.htm')
		oCMenu.makeMenu('sub224','sub22','Executry/Probate',getLocation() + 'solutions/executry.htm')
		oCMenu.makeMenu('sub225','sub22','Cheque Request',getLocation() + 'solutions/cheque.htm')
		oCMenu.makeMenu('sub226','sub22','Cash Receipt',getLocation() + 'solutions/cash.htm')
	oCMenu.makeMenu('sub23','top2','Deployments',getLocation() + 'solutions/deployments.htm')
	oCMenu.makeMenu('sub24','top2','','','','','','','','navbottom','navbottomover')
	//oCMenu.makeMenu('sub23','top2','Industries',getLocation() + 'solutionss/industries.htm')

oCMenu.makeMenu('top3','','|  CUSTOMERS',getLocation() + 'customers/index.htm')
	oCMenu.makeMenu('sub31','top3','Overview',getLocation() + 'customers/index.htm')
	oCMenu.makeMenu('sub32','top3','Customer Success',getLocation() + 'customers/success.htm')
	oCMenu.makeMenu('sub33','top3','','','','','','','','navbottom','navbottomover')
	
	
oCMenu.makeMenu('top4','','|  COMPANY',getLocation() + 'company/index.htm')
	oCMenu.makeMenu('sub41','top4','Overview',getLocation() + 'company/index.htm')
	oCMenu.makeMenu('sub42','top4','Aims',getLocation() + 'company/aims.htm')
	oCMenu.makeMenu('sub43','top4','Careers',getLocation() + 'company/careers.htm')
	oCMenu.makeMenu('sub44','top4','Contact Details',getLocation() + 'company/contacts.htm')
	oCMenu.makeMenu('sub45','top4','','','','','','','','navbottom','navbottomover')


oCMenu.makeMenu('top5','','|  SERVICES',getLocation() + 'services/index.htm')
	oCMenu.makeMenu('sub51','top5','Overview',getLocation() + 'services/index.htm')
	oCMenu.makeMenu('sub52','top5','Implementation',getLocation() + 'services/implementation.htm')
	oCMenu.makeMenu('sub53','top5','Training',getLocation() + 'services/training.htm')
	oCMenu.makeMenu('sub54','top5','Consultancy',getLocation() + 'services/consultancy.htm')
	oCMenu.makeMenu('sub55','top5','Support',getLocation() + 'services/support.htm')
	oCMenu.makeMenu('sub56','top5','','','','','','','','navbottom','navbottomover')

oCMenu.makeMenu('top6','','|  PARTNERS',getLocation() + 'partners/index.htm')
	oCMenu.makeMenu('sub61','top6','Overview',getLocation() + 'partners/index.htm')
	oCMenu.makeMenu('sub62','top6','Partners',getLocation() + 'partners/partners.htm')
	oCMenu.makeMenu('sub63','top6','','','','','','','','navbottom','navbottomover')

oCMenu.makeMenu('top7','','|  NEWS/EVENTS',getLocation() + 'news/index.htm')
	oCMenu.makeMenu('sub71','top7','Press Releases',getLocation() + 'news/index.htm')
	oCMenu.makeMenu('sub72','top7','Events',getLocation() + 'news/events/index.htm')
	oCMenu.makeMenu('sub73','top7','','','','','','','','navbottom','navbottomover')
	//oCMenu.makeMenu('sub73','top7','Media Kit',getLocation() + 'news/media_kit.htm')
	//oCMenu.makeMenu('sub74','top7','Media Coverage',getLocation() + 'news/media.htm')


oCMenu.makeMenu('top8','','|  RESOURCES',getLocation() + 'resources/index.htm')
	oCMenu.makeMenu('sub81','top8','What is BPM',getLocation() + 'resources/index.htm')
	oCMenu.makeMenu('sub82','top8','What is .Net',getLocation() + 'resources/dotnet.htm')
	oCMenu.makeMenu('sub83','top8','What is SOA',getLocation() + 'resources/architecture.htm')
	oCMenu.makeMenu('sub84','top8','XML Web Services',getLocation() + 'resources/webservices.htm')
	oCMenu.makeMenu('sub85','top8','','','','','','','','navbottom','navbottomover')
	//oCMenu.makeMenu('sub85','top8','Useful Site links',getLocation() + 'resources/links.htm')




//Start of code related to path name 
function getLocation()
{
	sLocation = location.pathname;
	
	if (sLocation.indexOf("flosuite3") > 0) 
	{
		return "/flosuite3/";
	}
	else 
	{
		return  "/";
	}
}

//End of code related to path name//


//Leave this line - it constructs the menu
oCMenu.construct()	
