//--------------------------------
// Do nothing (void function placeholder)
//--------------------------------
function doNothing() {
}

//--------------------------------
// Set global date variables for copyright notice.
//--------------------------------

var today = new Date()
var year = today.getYear()
if(year < 1000){
	year += 1900
}

var monthArray = new Array("January", "February", "March", 
                   "April", "May", "June", "July", "August",
                   "September", "October", "November", "December")

//--------------------------------
// Browser checker
//--------------------------------
var browserOK = false

function checkBrowser() {
  var verStr=navigator.appVersion, app=navigator.appName, version = parseFloat(verStr)

  if (app.indexOf('Netscape') != -1) {
    //  Netscape does not implement full CCS1 behaviors.
    //  if (version >= 4.0) browserOK = true
  } else if (app.indexOf('Microsoft') != -1) {
    if (version >= 4.0 || verStr.indexOf(4.0) != -1)
     browserOK = true
  }
}

//--------------------------------
// Login Window creator.
// syntax: launchLogin()
//--------------------------------

function launchLogin() {

var newLoginWindow

if (!newLoginWindow || newLoginWindow.closed) {
    // create the login window
    newLoginWindow = window.open("http://www.ripnoel.com/getlogin.asp","Login","status,menubars,width=375,height=260")

    // Create .opener property if necessary for old browsers.
    if (!newLoginWindow.opener) {
        newLoginWindow.opener = window
    }
} else {
    // window's already open; bring to front
    newLoginWindow.focus()
    }
}

//--------------------------------
// Masked email address code below (09/17/2004).
// Do nothing (void function placeholder)
//--------------------------------
function doNothing() {
}

//--------------------------------
// Display status bar message.
//--------------------------------
function showStatus(msg) {
	window.status = msg
	return true
}

// Set global variables. 
 
var emailProtocol = "mail" + "to:"
var Domain = "@ripnoel.com"

function eMail (masked,visible) {
    this.masked = masked
    this.visible = visible
}

// Associate each masked email address with its visible link text.
// Edit only the items in quotes. 

var emailAddrs = new Array ()
    emailAddrs[0] = new eMail(emailProtocol + "webmaster" + Domain,"WebMaster")
    emailAddrs[1] = new eMail(emailProtocol + "info" + Domain,"Studio Information")
    emailAddrs[2] = new eMail(emailProtocol + "info" + Domain,"e-mail")
    emailAddrs[3] = new eMail(emailProtocol + "rip" + Domain,"Rip")
    emailAddrs[4] = new eMail(emailProtocol + "sales" + Domain,"Sales")


function writeMaskedAddr (addrID,subject,style) {
// Write an email link onto the page. 
// Arguments: addrID  = array index of one of the address in the emailAddrs array defined above. 
//                     This identifies which address you want to send the email to.
//                     Example: writeMaskedAddr(0) sends email to the "webmaster" address.
//            subject = Optional quoted string variable for email Subject line. If omitted, no Subject
//                     is supplied for the email message. Users, of course, may add a subject manually.
//                     Example: writeMaskedAddr(2,'Sales inquiry from the web site')
//            style   = Optional CSS style for the link

	document.write("<a href=\"javascript:doNothing()\;\"");
	if (style != '') {
		document.write(" class='" + style + "' ");
	}
	document.write(" onMouseOver=\"return showStatus('Send email.')\" onMouseOut=\"return showStatus('')\"");
	document.write(" onClick=\"parent.location='");
	document.write(emailAddrs[addrID].masked);
	if (subject == '') {
		document.write("'\">");
	} else {
		document.write("?subject=" + subject + "'\">");
	}
	document.write(emailAddrs[addrID].visible);
	document.write("</a>");
}
