function LinkObject(href, text, target, title) {
this.href   = href;
this.text   = text;
this.target = target;
this.title  = title;
}
var linksArrayIndex = 0;
var linksArray = new Array(7);
linksArray[linksArrayIndex++] = new LinkObject('index.html', 
                               '&#1506&#1502&#1493&#1491 &#1492&#1489&#1497&#1514',
							   null);
linksArray[linksArrayIndex++] = new LinkObject('about.html',
                               '&#1502&#1497 &#1488&#1504&#1495&#1504&#1493',
							   null);
linksArray[linksArrayIndex++] = new LinkObject('change.html',
                               '&#1488&#1508&#1513&#1512 &#1500&#1513&#1504&#1493&#1514!',
							   null);
linksArray[linksArrayIndex++] = new LinkObject('http://community.webshots.com/album/70971701XVSirc',
                               '&#1488&#1500&#1489&#1493&#1501',
							   'blank');
linksArray[linksArrayIndex++] = new LinkObject('javascript:openWin(\'http://www.mycgiserver.com/~adamom/contact.html\')',
                               '&#1510&#1512&#1493 &#1511&#1513&#1512',
							   null);
linksArray[linksArrayIndex++] = new LinkObject('course.html', 
                               '&#1514&#1493&#1499&#1504&#1497&#1514 &#1492&#1511&#1493&#1512&#1505',
							   null);

linksArray[linksArrayIndex++] = new LinkObject("javascript:openForumWindow('http://www.activeboard.com/forum.spark?forumID=60809&subForumID=159025')",
                               '&#1508&#1493&#1512&#1493&#1501',
							   null);
//linksArray[linksArrayIndex++] = new LinkObject('xls/CALWYP13.zip',
//                               '&#1508&#1493&#1512&#1502&#1496  Excel',
//							   null,
//							   '&#1514&#1493&#1499&#1504&#1497&#1514 &#1492&#1511&#1493&#1512&#1505 &#1489&#1508&#1493&#1512&#1502&#1496 EXCEL');
linksArray[linksArrayIndex++] = new LinkObject('javascript:popupMap();',
                               '&#1502&#1508&#1492',
							   null);
linksArray[linksArrayIndex++] = new LinkObject('links.html',
                               '&#1511&#1497&#1513&#1493&#1512&#1497&#1501',
							   null);

linksArray[linksArrayIndex++] = new LinkObject('http://www.haaretz.co.il/hasite/pages/ShArt.jhtml?itemNo=355765&sw=%E0%E3%EE%E0%EE%E0',
                               "&#1502&#1488&#1502&#1512 &#1489'&#1492&#1488&#1512&#1509'",
							   'blank',
							   "&#1502&#1488&#1502&#1512 &#1489'&#1492&#1488&#1512&#1509'");


function Navigatior(layout, linksArray, tdStyle, linkStyle, delimiter, tdBackgroundImage ) {
	return Navigatior0(layout, linksArray, tdStyle, linkStyle, delimiter, tdBackgroundImage ,'640');
}
function Navigatior0(layout, linksArray, tdStyle, linkStyle, delimiter, tdBackgroundImage, w ) {
	var text = '';	
	if (!layout) 
	{
		text += '<br><table align=center cellpadding=0 cellspacing=0><tr><td><img src="images/tdbg.gif" width="'+w+'" height="1" border="0" alt=""></td></tr></table>';
	}
	text += '<table dir=rtl border=0 bgcolor="#ffffff">';
	text += '<tr>';
    text += '<td';
	if (tdStyle)
	{
		text += ' class="'+tdStyle+'"';
	}
	if (tdBackgroundImage)
	{
		text += ' background="'+tdBackgroundImage+'"'; 
	}
	text += '>';

	for (var i=0; i < linksArray.length; i++)
	{
		text += '<a href="'+linksArray[i].href+'" style="text-decoration: none"';
		if (linksArray[i].title)
		{
			text += 'title="'+linksArray[i].title+'" ';
		} else
		{
			text += 'title="'+linksArray[i].text+'" ';
		}
		if (linkStyle)
		{
			text += 'class="'+linkStyle +'" '; 
		}
		if (linksArray[i].target)
		{
			text += 'target='+linksArray[i].target; 
		}
		text += '>' + linksArray[i].text + '</a>';	
		
		if (linksArray.length > 8 && i == 6)
		{
			text += '</td>';			
			text += '</tr>';
			text += '<tr>';
			text += '<td align=center>';			
		}
		else if (delimiter && i < linksArray.length-1)
		{
			text += ' '+delimiter+' ';
		}
		
		if (layout == 'VERTICAL' && i < linksArray.length-1)
		{
			text += '</td>';
			
			text += '</tr>';
			text += '<tr>';
			text += '<td';
			if (tdStyle)
			{
				text += ' class="'+tdStyle+'"';
			}
			if (tdBackgroundImage)
			{
				text += ' background="'+tdBackgroundImage+'"'; 
			}
			text += '>';
			
		}
	}
	
	text += '</td>';
	text += '</tr>';
	text += '</table>';
	return text;
}