/* Tigra Menu template structure */

var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari')) browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera')) browser = "Opera"
else if (checkIt('webtv')) browser = "WebTV";
else if (checkIt('icab')) browser = "iCab"
else if (checkIt('msie')) browser = "Internet Explorer"
else if (!checkIt('compatible'))
{
	browser = "Netscape Navigator"
	version = detect.charAt(8);
}
else browser = "An unknown browser";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "an unknown operating system";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

if (browser != "Internet Explorer")
{
var MENU_TPL = [
	{
		'width': 120,
		'height': 24,
		'hide_delay': 200,
		'expd_delay': 200,
		'opacity': 100,
		'vertical': true,
		'table': [0,1,0],
		'css': {
			'table': 'TM0t0',
			'outer': ['TM0o0','TM0o1'],
			'inner': ['TM0i0','TM0i1']
		},
		'block_left': 10,
		'block_top': 90
	},
	{
		'width': 150,
		'block_left': 100,
		'block_top': -100,
		'opacity': 85,
		'vertical': true,
		'css': {
			'table': 'TM1t0',
			'outer': ['TM1o0','TM1o1'],
			'inner': ['TM0i0','TM0i1']
		}
	}
];

}

if (browser == "Internet Explorer")
{
var MENU_TPL = [
	{
		'width': 120,
		'height': 24,
		'hide_delay': 200,
		'expd_delay': 200,
		'opacity': 100,
		'vertical': true,
		'table': [0,1,0],
		'css': {
			'table': 'TM0t0',
			'outer': ['TM0o0','TM0o1'],
			'inner': ['TM0i0','TM0i1']
		},
		'block_left': 10,
		'block_top': 100
	},
	{
		'width': 150,
		'block_left': 100,
		'block_top': 0,
		'opacity': 85,
		'vertical': true,
		'css': {
			'table': 'TM1t0',
			'outer': ['TM1o0','TM1o1'],
			'inner': ['TM0i0','TM0i1']
		}
	}
];
}
