var MENU_POS = eval(GetTplStr(5));

function getColumnWidth(numitems) {
	return parseInt(Math.floor(document.body.clientWidth)/(numitems));
}

function GetTplStr(numitems) {

	w = getColumnWidth(numitems);
	
	var txt = "";
	txt += "[{";
	txt += "'height': 20,";
	txt += "'width': " + w + ",";
	txt += "'block_top': 0,";  //99,
	txt += "'block_left': 0," ;  //287,
	txt += "'top': 0,";
	txt += "'left': " + w + ",";
	txt += "'hide_delay': 200,";
	txt += "'expd_delay': 200,";
	txt += "'css' : {";
	txt += "'outer': ['m0l0oout', 'm0l0oover'],";
	txt += "'inner': ['m0l0iout', 'm0l0iover']";
	txt += "}";
	txt += "},";
	txt += "{";
	txt += "'height': 20,";
	txt += "'width': " + w + ",";
	txt += "'block_top': 25,";
	txt += "'block_left': 0,";
	txt += "'top': 21,";
	txt += "'left': 0,";
	txt += "'css': {";
	txt += "'outer' : ['m0l1oout', 'm0l1oover'],";
	txt += "'inner' : ['m0l1iout', 'm0l1iover']";
	txt += "}";
	txt += "},";
	txt += "{";
	txt += "'block_top': 5,";
	txt += "'block_left': " + (w-2) + ",";
	txt += "'css': {";
	txt += "'outer': ['m0l2oout', 'm0l2oover'],";
	txt += "'inner': ['m0l1iout', 'm0l2iover']";
	txt += "}";
	txt += "}";
	txt += "]";

	return txt;
}
