function set_ads() {
google_ad_client = "pub-7182965054910252";
google_ad_width = 728;
xgoogle_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
//2007-07-16: GN Alumni
google_ad_channel = "7728712116";
};
set_ads();

var site, school, title, dims, page, subtitle;
function gen_navbar() {
	var links = new Array (
"/index.html",		"Home",
"/alumni_index.html",	"Directory",
"/reunion.html",	"Reunion News",
"/letters.html",	"Letters",
"/inmemorium.html",	"In Memoriam",
"/photos.html",		"Photos",
"/links.html",		"Links"
	);
	var currentDoc = document.location.pathname;

	if(page == 'home' ) {
		document.write("<div class=pagetitle>\n");
		document.write(title);
		document.write('<br><img src="/school.jpg" ' + dims + ' alt="A picture of Great Neck ' + school + '"><br>');
		document.write("</div><br>\n");
	} else {
		document.write("<table><tr>");
		document.write('<td><a href="/"><img src="/school_sm.jpg" ' + smdims + ' alt="A picture of Great Neck ' + school + '"></a></td>');
		document.write("<td><div class=subpagetitle>\n");
		document.write(title);
		if(subtitle != null && subtitle != '') {
			document.write("<br><br>");
			document.write(subtitle);
		}
		document.write("</div></td>");
		document.write("</tr></table><br>\n");
	}
	document.write("<div class=navbar>\n");
	document.write("<table width=\"100%\" class=navbar><tr><td class=navbar>\n");

	dte = new Date()
	date = ((dte.getYear()*100) + (dte.getMonth()+ 1))*100 + dte.getDate();
	time = ((dte.getHours()*100) + dte.getMinutes())*100 + dte.getSeconds();

	if(page == 'home') {
		links[0] = "/about.html";
		links[1] = "About";
	}
	links[2] = "/alumni_index.html?" + date + "_" + time;

	for(link = 0; link < links.length; link++)  {
		if(site == 'gnalumni' && link == 2) {
			link += 1;
			continue;
		}
		var l = links[link];
		link += 1;
		if(link > 1) document.write("&nbsp;&nbsp;|&nbsp;&nbsp;");
		if(l == currentDoc) {
			document.write("<b>");
			document.write(links[link]);
			document.write("</b>");
		} else {
			document.write("<a href=");
			document.write(l);
			document.write(">");
			document.write(links[link]);
			document.write("</a>");
		}
	}
	document.write("</td></tr></table></div>\n");
	// document.write("<hr>\n");
}

// unframe ourselves
if (top != self) {
	top.location=self.location;
}

school = '';
site='gnalumni';
title='Great Neck Public Schools Alumni';
dims='width="330" height="461"';
smdims='width="165" height="230"';
if(document.URL.indexOf('gns') >= 0) {
	school = 'South';
	site='gnsalumni';
	title='Great Neck South Alumni';
	dims='width="512" height="272"';
	smdims='width="256" height="137"';
} else if(document.URL.indexOf('gnn') >= 0) {
	school = 'North';
	site='gnnalumni';
	title='Great Neck North Alumni';
	dims='width="449" height="292"';
	smdims='width="224" height="146"';
} else if(document.URL.indexOf('vs') >= 0) {
	school = 'Village School';
	site='vsalumni';
	title='Great Neck Village School Alumni';
	dims='width="400" height="233"';
	smdims='width="215" height="116"';
};
gen_navbar();
