
function createProxyLink() {
	var d = document;
	var url,link,linkimage;
	if(d.location.href.search("offcampus")>0) {
		linkimage = '<img src="/library/images/proxy/proxy-unlocked.gif" border=0 alt="off-campus access (logged in)">';
		link = '<a title="You are logged in to the proxy server.">' + linkimage + '</a>';
	} else {
		url = "http://offcampus.lib.washington.edu/login?url=" + d.location.href;
		linkimage = '<img src="/library/images/proxy/proxy-locked.gif" border=0 alt="off-campus access (log in)">';
		link = '<a title="Provides current UW students, faculty, and staff access to UW restricted content." href="' + url + '">' + linkimage + '</a>';
	}
	d.write(link);
}



