<!-- Copyright (C) 2002-2006 Dan Heuston -->
<!-- All rights reserved            -->

/* Global variables */ 

 var picDir = "images"
 var browser_ver = new String
 var gCount =  0;
 var serArray = new Array(
  "<span class=\"rolltext1\"><\/span>",
  "<span class=\"rolltext1\">\"Displays high qualities as a piece of musical theatre\"<\/span><br><span class=\"rolltext2\">Paul Taylor - Samuel French Limited<\/span>",
/*  "<span class=\"rolltext1\"><img src=\"images/caods4Musk.jpg\"<\/span>",*/
  "<span class=\"rolltext1\">\"A powerful love story, creatively told through the emotive music and words of a talented and emerging writing team\"<\/span><br><span class=\"rolltext2\">Kyle Brooks - Out There Enterprises Ltd.<\/span>",
  "<span class=\"rolltext1\">\"The music has tremendous vitality and power\"<\/span><br><span class=\"rolltext2\">Sir Cameron Mackintosh<\/span>"
 );


 if(document.images) {
  a4o1 = new Image
  a4o2 = new Image
  
  a4o1.src = "images/A4O_logo.jpg"
  a4o2.src = "images/caods4Musk.jpg"  
 }
 else
 {
  a4o1 = ""
  a4o2 = ""
  document.a4o = ""
 }

function browserDetection() {

 if(navigator.appName == "Netscape") {
  browser_ver = "Netscape"
 }
 else if(navigator.appName == "Microsoft Internet Explorer") {
  browser_ver = "IE"
 }
}
 

function getParam(thisURL) {

  param = new String
  
  pos = thisURL.indexOf('?')

  if(pos != -1)
   param = thisURL.substring(pos+1, thisURL.length)

  return param
}



function getCookie(cookieName) {

 buffer = ""
 
 if(document.cookie != "") {
  buffer = cookieVal(cookieName)
 }

 return buffer
}



function cookieVal(cookieName) {

  thisCookie = document.cookie.split("; ")
  for(i=0;i<thisCookie.length;i++) {
   if(cookieName==thisCookie[i].split("=")[0]) {
    return thisCookie[i].split("=")[1]
   }
  }
  return ""
}



function setCookie(cookieName, buffer, duration) {
 expireDate = new Date
 
 if(duration == "short")
  expireDate.setHours(expireDate.getHours()+2) 

 if(duration == "long")
  expireDate.setMonth(expireDate.getMonth()+3) 
     
 document.cookie = cookieName + "=" + buffer + ";expires=" + expireDate.toGMTString()
}



function deleteCookies() {

 if(document.cookie != "") {

  expireDate = new Date
  expireDate.setDate(expireDate.getDate()-1) 
  thisCookie = document.cookie.split("; ")
  
  for(i=0;i<thisCookie.length;i++) {
   cookieName = thisCookie[i].split("=")[0]
   document.cookie = cookieName + "=;expires=" + expireDate.toGMTString()
  }
  
  alert(thisCookie.length + " deleted.")
 }
}



function navbar() {

 colour = "#FFFFF0"
 document.writeln("<table border=0 align='top' width='100%' bgcolor=" + colour + " cellspacing=0 cellpadding=0>")
/* document.writeln("<tr><td align=left>&nbsp;<b><img src='" + picDir + "\/OTE_logo.gif' alt='[out there logo]' title='' width=100 height=20 align=middle border=0><\/b><\/td>") */
 document.writeln("<tr>") 

 menuitems = new Array("home", "about us", "our philosophy")
 pagenames = new Array("index.html", "biogs.htm", "philosophy.htm")

 for(i=0; i < menuitems.length; i++) {
   document.writeln("<td align=center><a class='nav' href='" + pagenames[i] + "'>" + menuitems[i] + "<\/a><\/td>")
 }
  
 document.writeln("<\/tr><\/table>")
}




function openTandC() {

 winWidth  = 600
 winHeight = 400
 winparams = "scrollbars=yes, menubar=no, width=" + winWidth + ", height=" + winHeight + ", resizable=yes, left=0, top=0, status=no"

 tcWin = window.open("hiretandc.htm", "tandcWin", winparams)
 tcWin.focus()
}



function copyright() {
 document.writeln("<p class=\"copyright\">")
 document.writeln("&copy; Copyright 2002 Out There Enterprises Ltd. All rights reserved.")
 document.writeln("<\/p>")
}



function popUp(evt,currElem) {

  stdBrowser = (document.getElementById) ? true : false 
  
  popUpWin = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
  if (document.all) {
   popUpWin.pixelTop = parseInt(evt.y)-100
   popUpWin.pixelLeft = Math.max(2,parseInt(evt.x))
  }
  else {
   if (stdBrowser) {
    popUpWin.top = parseInt(evt.pageY)-100 + "px"
    popUpWin.left = Math.max(2,parseInt(evt.pageX)) + "px"
   }
   else {
    popUpWin.top = parseInt(evt.pageY)-100
    popUpWin.left = Math.max(2,parseInt(evt.pageX))
   }
  }

  popUpWin.visibility = "visible"
}
 
 
 
function popDown(currElem) {
  stdBrowser = (document.getElementById) ? true : false
  popUpWin = (stdBrowser) ? document.getElementById(currElem).style : eval("document." + currElem)
  popUpWin.visibility = "hidden"
}



function sidePanel(logo) {

 if(logo) {
  document.writeln("<a href=\"index.html\"><img src=\"images/OTE_logo.jpg\" width=\"150\" height=\"123\" align=left border=1><br clear=left><\/a>")
  document.writeln("<p class=\"established\">est. 2000<\/p>")
 }
 
 document.writeln("   <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"2\" class=\"navpanel\">")
 document.writeln("   <tr class=\"navhdr\"><td>Show Portfolio<\/td><\/tr>")
 document.writeln("   <tr class=\"centered\"><td>")
 document.writeln("	   <br><p><a class=\"nav\" href=\"all4one.htm\">All 4 One<\/a><\/p>")
 document.writeln("        <p><a class=\"nav\" href=\"slave.htm\">A Slave to Love<\/a><\/p>")
 document.writeln("        <p><a class=\"nav\" href=\"hunch.htm\">The Hunchback of Notre Dame<\/a><\/p>")
 document.writeln("        <p><a class=\"nav\" href=\"photos.htm\">Photo Gallery<\/a><br><br><\/p>") 
 document.writeln("   <\/td><\/tr>")
 
 document.writeln("   <tr class=\"navhdr\"><td>Company Info<\/td></tr>")
 document.writeln("   <tr class=\"centered\"><td>")
 document.writeln("	   <br><p><a class=\"nav\" href=\"philosophy.htm\">Our Philosophy<\/a></p>")
 document.writeln("	       <p><a class=\"nav\" href=\"biogs.htm\">About us<\/a><br><br><\/p>")
/* document.writeln("         <p><a class=\"nav\" href=\"shop.htm\">Merchandise<\/a><br><br><\/p>")*/
 document.writeln("   </td></tr>")
 
 document.writeln("   <tr class=\"navhdr\"><td>Contact us<\/td><\/tr>")
 document.writeln("   <tr class=\"centered\"><td>")
 document.writeln("	   <br>")
 document.writeln("	   <p><a class=\"nav\" href=\"contactus.htm\">contact us<\/a><br><br><\/p>")
 document.writeln("    <form action=\"http://pub17.bravenet.com/emailfwd/senddata.php\" method=\"post\" enctype=\"multipart/form-data\">")
 document.writeln("    <input type=\"hidden\" name=\"usernum\" value=\"1382732357\" />")
 document.writeln("    <input type=\"hidden\" name=\"cpv\" value=\"1\" />    <input type=\"hidden\" name=\"subject\" value=\"Out There: add me to your mailing list\">")
 document.writeln("    <input type=\"hidden\" name=\"thankyou\" value=\"http://www.outthere-enterprises.com/\">")
 document.writeln("    <input type=\"hidden\" name=\"carboncopy\" value=\"enquiries@dantrac.com\">")	
 document.writeln("    <input type=\"hidden\" name=\"Enquiry\" value=\"Add to Mailing List\">")
 document.writeln("    <p class=\"xsmalltxt\" style=\"text-align: center\">Enter your email address here to join our mailing list:<br>")
 document.writeln("    <input type=\"hidden\" name=\"MailingList\" value=\"Yes\">")
 document.writeln("    <input type=\"text\" name=\"Email\" size=\"15\" maxlength=\"100\">")
 document.writeln("    <input type=\"submit\" name=\"Submit\" value=\"Go\"><\/p>")
 document.writeln("   <\/form>")	
 document.writeln("	 <br><br>")
 document.writeln("   <\/td><\/tr>   ")
 document.writeln("   <\/table>")

}




function mainHeader() {

 document.writeln("<table cellspacing='0' cellpadding='0' class='header'>")
 document.writeln("<tr align='center'>")
/* document.writeln("<td width=160><img src=\"images/OTE_logo.gif\" width=\"150\" height=\"123\" align=left border=0><br clear=\"left\"><p class=\"established\">est. 2000<\/p><\/td>")*/
 document.writeln(" <td align=right>")
 document.writeln("  <h1 style=\"text-align: right\"></p>musical theatre for the new millenium <\/h1>")
/* document.writeln("  <h2 style=\"text-align: right\">unique musical theatre for professionals and non-professionals<\/h2>")*/
 document.writeln("  <h2 style=\"text-align: right\"><span style=\"color: blue\">Out There Enterprises Limited<\/span> present <\/h2>")
 document.writeln(" <\/td>")
 document.writeln("<\/tr>")
 document.writeln("<\/table>")
<!-- End Header -->
}



function updateText(gCount) {

	document.all.services.innerHTML = serArray[gCount];
}


function forceoutofframe() {

 if(top.location != self.location)
  top.location = self.location
  
}