var hasIE_phone_home = 1;// This function does the actual browser detectionfunction hasIE_hasIE() {  var ua = navigator.userAgent.toLowerCase();  return ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) &&           (ua.indexOf('webtv') == -1) &&          (location.href.indexOf('seenIEPage') == -1));}function hasIE_showOnlyLayer(whichLayer){  if (document.getElementById)    {      var style2 = document.getElementById(whichLayer);    }  else if (document.all)    {      var style2 = document.all[whichLayer];    }  else if (document.layers)    {      var style2 = document.layers[whichLayer];    }  var body = document.getElementsByTagName('body');  body[0].innerHTML = style2.innerHTML;}function hasIE_showLayer(whichLayer){  if (document.getElementById)    {      var style2 = document.getElementById(whichLayer).style;      style2.display = "block";    }  else if (document.all)    {      var style2 = document.all[whichLayer].style;      style2.display = "block";    }  else if (document.layers)    {      var style2 = document.layers[whichLayer].style;      style2.display = "block";    }}function hasIE_moveAd(adid) {  if (document.getElementById)    {      var ad = document.getElementById('hasIE_ad');      var adloc = document.getElementById(adid);    }  else if (document.all)    {      var ad = document.all['hasIE_ad'];      var adloc = document.all[adid];    }  else if (document.layers)    {      var ad = document.layers['hasIE_ad'];      var adloc = document.layers[adid];    }  adloc.innerHTML = ad.innerHTML;}// Hides and shows sections of the page based on whether or not it's// running in IEfunction hasIE_hideAndShow() {  if (hasIE_hasIE()) {    hasIE_showOnlyLayer("hasIE_level3");          if (hasIE_phone_home == 1)            hasIE_phoneHome('getIE_pingimage3');  } else {    if (hasIE_phone_home == 1)      hasIE_phoneHome('getIE_pingimage0');  }}function hasIE_phoneHome(image) {  if (document.getElementById)    {      var img = document.getElementById(image);    }  else if (document.all)    {      var img = document.all[image];    }  else if (document.layers)    {      var img = document.layers[image];    }  img.setAttribute('src','http://getunder50.com/ping.php?host='+location.host);}function hasIE_ContinueWithoutFF() {    if (location.href.indexOf('?') != -1)        location.href += '&seenIEPage=1';    else        location.href += '?seenIEPage=1';}function age() {	var d=new Date();	var day=d.getDate();	var month=d.getMonth();	var year=d.getFullYear();	var age=0;		if (month < 11){		age=year-1982;	}	else if (month >= 11){		if (day < 8){			age=year-1982;		}		else {			age=year-1981;		}	}	document.write(age);}function emailme() {	document.write('<a title="Click here to send me an e-mail. ^_~" href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;'+'&#118;&#103;&#122;@'+'&#109;&#97;&#99;&#46;&#99;&#111;&#109;&#63;subject=[VGZ:AFD]'+'">' + '<img class="lighticon" src="images/contactlight.png"><img class="darkicon" src="images/contactdark.png">' +'</a>');}function news(section,title,date,content) {	document.write('<div class="container"><ul class="newshead"><li class="left"><img class="mid" src="images/' + section + 'iconsmall.png" alt="icon"> ' + title + '</li><li class="right">' + date + '</li></ul><div class="newscontent">' + content + '</div></div>');}function switchTheme() {	if (getActiveStyleSheet() == 'light') {		setActiveStyleSheet('dark');	}	else if (getActiveStyleSheet() == 'dark') {		setActiveStyleSheet('light');	}}function checkOS() {  	if(navigator.userAgent.indexOf('Mac') != -1) {		var OpSys = "Mac";	}  	else if(navigator.userAgent.indexOf('Win') != -1) {		var OpSys = "Win";	}  	else {		var OpSys = "Mac";	}  	return OpSys;}function download(file) {	var filename = "http://homepage.mac.com/vgz/files/VGZs" + file + checkOS() + ".zip";	document.location.href = filename;}function setActiveStyleSheet(title) {  var i, a, main;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {      a.disabled = true;      if(a.getAttribute("title") == title) a.disabled = false;    }  }}function getActiveStyleSheet() {  var i, a;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");  }  return null;}function getPreferredStyleSheet() {  var i, a;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1       && a.getAttribute("rel").indexOf("alt") == -1       && a.getAttribute("title")       ) return a.getAttribute("title");  }  return null;}function createCookie(name,value,days) {  if (days) {    var date = new Date();    date.setTime(date.getTime()+(days*24*60*60*1000));    var expires = "; expires="+date.toGMTString();  }  else expires = "";  document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {  var nameEQ = name + "=";  var ca = document.cookie.split(';');  for(var i=0;i < ca.length;i++) {    var c = ca[i];    while (c.charAt(0)==' ') c = c.substring(1,c.length);    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);  }  return null;}window.onload = function(e) {  var cookie = readCookie("style");  var title = cookie ? cookie : getPreferredStyleSheet();  setActiveStyleSheet(title);  hasIE_hideAndShow();}window.onunload = function(e) {  var title = getActiveStyleSheet();  createCookie("style", title, 365);}var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);hasIE_hideAndShow();function review(ficid, chap) {	document.write('<a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;'+'&#118;&#103;&#122;@'+'&#109;&#97;&#99;&#46;&#99;&#111;&#109;&#63;subject=[VGZ:AFD][Fic: '+ ficid + '][Chapter: ' + chap + '][Review]">');	document.write('Review this Chapter'+'</a>');}function showPreview(iconSet){	var style2 = document.getElementById(iconSet).style;	style2.display = style2.display? "":"block";}