// JavaScript Document
//3-state Highlight menu effect script: By Dynamicdrive.com
//For full source, Terms of service, and 100s DTHML scripts
//Visit http://www.dynamicdrive.com
// For Menu Vertical

function over_effect(e,state){
if (document.all)
source4=event.srcElement
else if (document.getElementById)
source4=e.target
if (source4.className=="menulines")
source4.style.borderStyle=state
else{
while(source4.tagName!="TABLE"){
source4=document.getElementById? source4.parentNode : source4.parentElement
if (source4.className=="menulines")
source4.style.borderStyle=state
}
}
}


function createWindow(cUrl,cName,cFeatures) {
var xWin = window.open(cUrl,cName,cFeatures)
}

/*
Script posted and featured on
JsMadeEasy.com
*/

function display_image(selectionname,PictureTitle,ImgWidth,ImgHeight) {

//RH added image height and width passed from HREF
//also left=" +(screen.width - ImgWidth)/2 to center window

PreView = window.open("", "", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,copyhistory=0,width=" + ImgWidth + ",height=" + ImgHeight +",top=20, left=" +(screen.width - ImgWidth)/2);
PreView.document.open();
PreView.document.write("<HTML><HEAD>");
PreView.document.write("<TITLE>" + PictureTitle +"</TITLE>");
PreView.document.write("</HEAD><BODY BGCOLOR=FFFFFF TEXT=000000>");
//RH Following line will close popup when lost focus
PreView.document.write("<BODY onBlur=window.close()>");
PreView.document.write("<FORM><CENTER><B><FONT SIZE=+1>" + PictureTitle + "</FONT></B><HR>");
PreView.document.write("<IMG HSPACE=0 VSPACE=0 " +
"SRC='" + selectionname + "'>");
PreView.document.write("<HR><FORM><INPUT TYPE='button' VALUE='Close' " +
"onClick='window.close()'></FORM>");
PreView.document.write("</CENTER>");
PreView.document.write("</BODY></HTML>");
PreView.document.close();
    }


//scramble email
function jscramble(k,f,b,j)
{
// each variable must be on a separate line for Netscape 4	
  var a
  var b
  var c
  var d
  var e
  var f
  var g
  var h
  var i
  var j
  var k	
 
 a='<a href=\"mai'
  c='\">'
 a+='lto:'
 b+='@'
 e='<\/a>'
  b+=j
 b+="."
 b+=k
 g='<img src=\"'
 h=''
 i='\" alt="Email" border="0">'
 if (f) d=f
 else if (h) d=g+h+i
 else d='Email'
 document.write(a+b+c+d+e)
}

//For single use
//<script type="text/javascript">jscramble('ext','realname','address','domain')<\/SCRIPT>&nbsp;



//email format
function who()
{
jscramble('ext','realname','address','domain')
}

function ray()
{
jscramble('org','Ray Hendess','Ray','cinnabartheater')
}

function elly()
{
jscramble('org','Elly Lichenstein','Elly','cinnabartheater')
}

function sheri()
{
jscramble('org','Kate Magill','Kate','cinnabartheater')
}

function brian()
{
jscramble('org','Kate Magill','Kate','cinnabartheater')
}

function comments()
{
jscramble('org?subject=Comments&amp;cc=Kate','Kate Magill','comments','cinnabartheater')
}

function kate()
{
jscramble('org','Kate Magill','Kate','cinnabartheater')
}


function media()
{
jscramble('org','Juliet Pokorny','Juliet','cinnabartheater')
}

function juliet()
{
jscramble('org','Juliet Pokorny','Juliet','cinnabartheater')
}


function boxoffice()
{
jscramble('org','Madeleine Ashe','boxoffice','cinnabartheater')
}

function sharlyn()
{
jscramble('net','Sharlyn Klein','scristenk','comcast')
}


function snailmail()
{
jscramble('org?subject=Mailing List&amp;body=I would like to receive your announcements.  My name and address are','Mailing List','Mailing List','cinnabartheater')
}
function info()
{
jscramble('org','Email','info','cinnabartheater')
}

function subscribe()
{
jscramble('org?subject=subscribe','subscribe','subscribe','cinnabartheater')
}

function volunteers()
{
jscramble('org','Contact','volunteers','cinnabartheater')
}