
var navURLs = new Array('index.htm', 'andre_sculptor/index.htm', 'andre_pipemaker/index.htm', 'orderinf/ordering.htm', 'links/index_main.html', 'mailto:Andre@myartworkonline.com');
var linkText = new Array('Home', 'Sculptures', 'Pipes', 'Ordering Info', 'Links', 'Contact');
var titleText = new Array('Home of MyArtWorkOnline', 'Sculptures', 'Pipes', 'Ordering Information', 'Links', 'Contact Email Address');
var theline ="";

function navBar(whichType,skipWhich,deep) {
	var theType = whichType;
	var skip = skipWhich;
	var pre = "";
	var NN = (document.layers ? true : false);
	if (deep>0) {
		for (i=0; i<deep; i++) {
			pre = pre + '../';
		}
	}
	if (whichType == undefined) { theType = 'table'; }
	for (i=0; i < navURLs.length; i++) {
		if (theType == "table") {
			if (navURLs[i]=='CurCalendar') {
				theline+='<td width="14%" align="center"><a href="javascript:CurCalendar();" title="' + titleText[i] + '" target="_parent">'  + linkText[i] +'</a></td>';
			} else if (skip != linkText[i] ) {
		  		theline += '<td width="14%" align="center"><a href="' + pre + navURLs[i] + '" title="' + titleText[i] + '" target="_parent">' + linkText[i] + '</a></td>';
			}
		} else {
			if (navURLs[i]=='CurCalendar') {
				theline+='| <a href="javascript:CurCalendar();" title="'
				+ titleText[i] + '" target="_parent">'  + linkText[i] +'</a>| ';
			} else if (skip != linkText[i]) {
		  		theline += '| <a href="' + pre + navURLs[i] + '" title="' +
				titleText[i] + '" target="_parent">' + linkText[i] + '</a>|';
			}
		
		}
	}
	if (theType != 'table') {
		theline = '<td colspan="7" align="left">' + theline + '</td>';
	}
	document.write(theline);
}
function navBarTable(whichType,skipWhich,prefix) {
	var theType = whichType;
	var skip = skipWhich;
	var pre = prefix;
	var NN = (document.layers ? true : false);
	if (NN) {
		theline = '<LAYER NAME="nav_table" LEFT=50 TOP=65 z-Index=1>'
	}
	else {
		theline = '<DIV ID="nav_table" STYLE="position:absolute; overflow:none; left:50px; top:65px; z-Index=1;">';
	}
	theline += '<div align="center"><table width="600" border="0" cellspacing="2" cellpadding="2"><tr>';
	if (whichType == undefined) { theType = 'table'; }
	for (i=0; i < navURLs.length; i++) {
		if (theType == "table") {
			if (navURLs[i]=='CurCalendar') {
				theline+='<td width="14%" align="center"><a href="javascript:CurCalendar();" title="' + titleText[i] + '" target="_parent">'  + linkText[i] +'</a></td>';
			} else if (skip != linkText[i] ) {
		  		theline += '<td width="20%" align="center"><a href="' + pre + navURLs[i] + '" title="' + titleText[i] + '" target="_parent">' + linkText[i] + '</a></td>';
			}
		} else {
			if (navURLs[i]=='CurCalendar') {
				theline+='| <a href="javascript:CurCalendar();" title="'
				+ titleText[i] + '" target="_parent">'  + linkText[i] +'</a>| ';
			} else if (skip != linkText[i]) {
		  		theline += '| <a href="' + pre + navURLs[i] + '" title="' +
				titleText[i] + '" target="_parent">' + linkText[i] + '</a>|';
			}
		}
	}
	if (theType != 'table') {
		theline = '<td colspan="7" align="left">' + theline + '</td>';
	}
	theline += '</tr></table></div>';
	if (NN) { theline += '</layer>'; } else { theline += '</div>'; }
	document.write(theline);
}
function CurCalendar() {
    var pup,fn,year,month;
 	x = new Date();
	y = new String();
	year=x.getYear();
	year=((year<1000)?((year<70)?2000:1900):0)+year;
	y=year.toString();
	y=y.substring(2,4);
	month=x.getMonth();
	month=month+1; 
	month=((month<10)?'0':'')+month;
	//window.alert(y+month);
    //fn = 'calendar/'+'0309.html';
	fn = '../calendar/' + y + month + '.html';
	parent.location.href = fn;
    //pup = window.open(fn,'',"resizable=yes");
	//	return (fn);
}
function newpage(fn) {
  parent.location.href = fn;
}

function DoEmail(name,domain) {
     return ( name + '@' + domain);
}