Error on menu script.. watch video first

WATCH VIDEO FIRST Hey guys I am trying to make a title screen that links to the level (1) and it will not work. Also can you explain the error that shows up every time that I press play. Im not totally sure what it is that is wrong. This is the script I’m using:

var isQuitButton = false;
function OnMouseEnter()
{
renderer.material.color = Color.green;
}
function OnMouseExit()
{
renderer.material.color = Color.black;
}
function.OnMouseDown()
{
if(isQuitButton)
{
Application.Quit();
}
else
{
Application.LoadLevel(1);
}
}

Also are there any level changers were you basically have your character run into a collider and it loads a new level. If so can you post the code/instructions on what do do for it. Thank you.

using UnityEngine;
using System.Collections;

public class LevelMaster : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}
	
	void OnTriggerEnter(Collider other)
	{
		Debug.Log(other.gameObject.tag + "  " + Application.loadedLevelName);
		switch(Application.loadedLevelName)
		{
			case "Scene1":
			Application.LoadLevel("Scene2");
			break;
			case "Scene2":
			Application.LoadLevel("Scene1");
			break;
		}
	}
}

It is a simple typo. you have:

function.OnMouseDown()

When it should be:

function OnMouseDown()