function navControl(filePath,linkClass,menuClass)
{	
	this.filePath = filePath;
	this.linkClass = linkClass;
	this.menuClass = menuClass;
	
	this.currentLink = '';
	this.currentFile = '';

	this.timeout = '';

	oNav = this;

	this.clearTimer = function()
	{
		clearTimeout(oNav.timeout);	
	}

	this.clearAllMenus = function()
	{
		eles = document.getElementsByClassName(oNav.menuClass);

		eles.each( function(ele){
					ele.style.display = 'none';
		})
	}

	this.fullClear = function()
	{
		try
		{
			oNav.clearAllMenus();
			$(oNav.currentLink).src = oNav.filePath+oNav.currentFile+'.gif';
		}
		catch(e)
		{

		}
	}

	this.menuOnlySelect = function(targetFile)
	{
		oNav.clearTimer();
		oNav.fullClear();
		oNav.open_menu(targetFile);
	}

	this.select = function(targetLink,targetFile)
	{
		oNav.clearTimer();
		oNav.fullClear();

		oNav.currentLink = targetLink;
		oNav.currentFile = targetFile;
		
		$(targetLink).src = oNav.filePath+targetFile+'_over.gif';
		oNav.open_menu(targetFile);		
	}

	this.out = function(targetLink,targetFile)
	{
		//$(targetLink).src = oNav.filePath+targetFile+'.gif';
		//oNav.fullClear();
		oNav.timeout = setTimeout("oNav.fullClear()",700);
	}

	this.open_menu = function (targetFile)
	{
		try
		{			
			$(targetFile+'_div').style.display = 'block';
		}
		catch(e)
		{

		}
	}

	this.close_menu = function (targetFile)
	{
		try
		{
			$(targetFile+'_div').style.display = 'none';
		}
		catch(e)
		{

		}
	}

	this.over_menu = function(targetFile)
	{
		oNav.clearTimer();
		$(targetFile+'_img').src = oNav.filePath+targetFile+'_over.gif';
	}

	this.out_menu = function(targetFile,targetImg)
	{
		oNav.clearTimer();		
		oNav.timeout = setTimeout("oNav.fullClear()",700);
	}
}