	function sexinit () {
		var s = document.getElementById('sexlink');
		s.onmouseover = sexmouseover;
		s.onmouseout = sexmouseout;
		s.onclick = sexonclick;
		}
		
	function sexmouseover () {
		window.status='Sexuality sites for grownups';
		return true;
		}
		
	function sexmouseout () {
		window.status = '';
		return true;
		}
	
	function sexonclick () {
		var a = document.getElementById('sexlink')
		var anc = a.getAttribute('anc');
		if (anc) {					
			var newloc = 'sexuality.html#' + anc; 
			} else { 
			var newloc = "sexuality.html";
			}	
		sexConfirm = "<form><table width='100%'><tr><td style='text-align: center'> <h3>Are you: <ul><LI>Old enough to view sexual material where you live, <LI><i>And</i> mature enough to appreciate sexual instruction and erotica <LI style='list-style: none; font-size: large'>?</li></ul></h3></td></tr><tr><td style='text-align: center'><input type='button' value='Yes, I am old enough and mature enough' onClick='opener.location.href=\"" + newloc + "\";window.close()'></input></td></tr><tr><td style='text-align: center'><input type='button' value='No, I am too young or immature' onClick='window.close()'></input></td></tr></table></form>"
		sexWin = window.open("","","width=500,height=350");
		sexWin.document.write(sexConfirm);
		sexWin.document.close();
		}
		
	addEventSimple(window,'load',sexinit);
		
	function addEventSimple(obj,evt,fn) {
		if (obj.addEventListener) 
			obj.addEventListener(evt,fn,false);
		else if (obj.attachEvent) 
			obj.attachEvent ('on'+evt,fn);
		}	
		
	// window.onload = sexinit;
