function google_adsense() {
google_ad_client = "pub-2506416544986565";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "000000";
google_color_bg = "C0C0C0";
google_color_link = "000000";
google_color_url = "0000FF";
google_color_text = "006699";
}

function modify_date() {

var days = new Array(8);
days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";
var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";
var dateObj = new Date(document.lastModified)
var wday = days[dateObj.getDay() + 1]
var lmonth = months[dateObj.getMonth() + 1]
var date = dateObj.getDate()
var fyear = dateObj.getYear()
if (fyear < 2000) 
fyear = fyear + 1900
document.write(lmonth + " " + date + ", " + fyear)
}

function mailme() {
  var tag1 = "mail";
  var tag2 = "to:";
  var at = "@";
  var email1 = "%20admin";
  var email2 = "lexjansen";
  var email3 = ".com";
  var subject = "My Subject";
  var mail = tag1 + tag2 + email1 + at + email2 + email3;
  window.location = mail;
}

function show_jpg(jpeg, title, width, height, jp_width, jp_height) {
    rm=open("","india",'width='+width+',height='+height+',toolbar=no,location=no,menubar=no,status=no,scrollbars=no,resizable=no,directories=no');
    rm.document.write('<html><title>'+title+'</title><body bgcolor="#C0C0C0">');
    rm.document.write('<center><img src="'+jpeg+'" border="0" width="'+jp_width+'" height="'+jp_height+'" alt="'+title+'" /><br />');
    rm.document.write('<a href="#" onClick="self.close()"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">');
    rm.document.write('<br><b>close window</b></font></a></center></body></html>');
}

function loadPhoto(photo, title) {
  var newPhoto = "<html>\n<head>\n<title></title>\n";
  newPhoto+= '<link rel="stylesheet" type="text/css" href="../stylesheet/pictures.css" />\n';
  newPhoto+= '<link rel="stylesheet" type="text/css" href="../stylesheet/style.css" />\n';
  newPhoto+= "</head>\n";
  newPhoto+= '<body class="photo">\n';
  newPhoto+= "<span class=" + '"' + "title_photo" + '"' + ">" + title + "</span><br />\n";
  newPhoto+= "<img src='image/" + photo + "'\n";
  newPhoto+= "     alt='" + title + "' />\n";
  newPhoto+= "</body>\n</html>";
  parent.upright.document.write(newPhoto);
  parent.upright.document.close();
  self.status=title;
}

function add_menu_item(ref, target, title, height, width) {
  document.write('<tr height="' + height + '">');
  if (ref != "")
      document.write('  <td class=menugrey height="' + height + '" width="' + width + '" onMouseover="this.style.background='+"'url(image/grey_over.gif)'"+'" onMouseout="this.style.background='+"'url(image/grey.gif)'"+'">');
  else 
      document.write('  <td class=grey height="' + height + '" width="' + width + '">');
  if (ref != "") {
     document.write(' <a class=menu href="' + ref + '" target="' + target + '">');
     }
  document.write(title);
  if (ref != "") document.write(' </a>');
  document.write('  </td>');
  document.write('</tr>');
}

function book(num) {
    var w=screen.availWidth-10;
    var h=screen.availHeight-10;
    rm=open("../book/"+num+".htm","book","left=0,top=0,width="+w+",height="+h+
            ",toolbar=no,location=no,menubar=no,status=no,scrollbars=yes,"+
            "resizable=yes,directories=no,fullscreen=yes");
}

function OpenWin(ref, title, width, height, left, top) {
    rm=open(ref, title,"width=" + width + ",height=" + height + 
                       ",left=" + left +", top=" + top + ",toolbar=no,location=no,"+
                       "menubar=no,status=no,scrollbars=no,resizable=no,directories=no");
}    

function nolan() {
    rm=open("../../fortune/rm/mindover.htm","Fortune","Width=420, Height=450, screenX=150, screenY=200");
}

