function startList()
{
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("menuAertel");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function setPager(val)
{
	var  p = val.indexOf("-");
	if(p > 0 && !isNaN(parseInt(val.substr(p))))
	{
		page.value = val.substr(p);
	}
}

function GoTo(val)
{
	var re = /(\d{3})(-(\d{1,2}))?/;

	if(re.test(val))
	{
		re.exec(val);
		var p = parseInt(RegExp.$1, 10);
		var s = parseInt(RegExp.$3, 10);
		
		if(s == "" || s == "0" || isNaN(s))
		{
			s = 1;
		}
		
		if(p >= 100 && p <800 && s < 100)
		{
			location.href = p + "-" + (s < 10 ? "0" : "") + s + ".html";
		}
	}
}

function WriteRandom(val)
{
	var a = new Array();

	if(val != null)
		var a = val.split(",");
	
	if(a == null || a.length < 6)
	{
		a = new Array(103, 200, 130, 300, 170, 250);
	}
	
	//randomize
	for(i=0;i<a.length;i++)
	{
		j = Math.floor((a.length - i + 1) * Math.random() + i);

		if(j < a.length)
		{
			tmp = a[i];
			a[i] = a[j];
			a[j] = tmp;
		}
	}

	document.write("<ul class=\"iconList\">");
	for(i=0;i<6;i++)
		document.write("<li><a href=\"/aertel/" + parseInt(a[i]) + "-01.html\"><img src=\"/aertel/images/icon_p" + parseInt(a[i]) + ".jpg\" alt=\"Page " + parseInt(a[i]) + "103\" /></a></li>");
	document.write("</ul>");
}