Howdo i setup a toggle button in this code?

// Function to open/close the minimap.
function toggleMinimap() {
if(!mapOpen) {
// Set the camera to use the entire screen.
camera.rect = Rect (0,0,1,1);
// Update the global so other scripts can know.
mapOpen = true;
// Unlock the cursor for proper point/click navigation.
Screen.lockCursor = false;
// Update the relevant PlayerPref key, could be useful for persistence.
PlayerPrefs.SetInt(“mapOpen”,1);
}

http://unity3d.com/support/documentation/ScriptReference/GUI.Toggle.html

mapOpen = GUI.Toggle( location as Rect, mapOpen, “Minimap”)