<!--Hide from JS-Impaired Browsers
// This function creates the array; do not modify
function initArray() {
 for (var i = 0; i < initArray.arguments.length; i++)
  this[i] = initArray.arguments[i];
 this.length = initArray.arguments.length;
}

// This is the array for the chrome variations. You may
// modify or add to these options. The fourth entry, "",
// is for no chrome.
var chrome = new initArray(
 "menubar",
 "menubar,toolbar",
 "menubar,status,resizable,scrollbars",
 "");

var popUpWin

// This function makes the pop up window. Modify the
// tall and side variables as needed. See the script
// explanation on the Cut and Paste JavaScript site for
// a detailed explanation of this function:
// http://www.infohiway.com/javascript/popup/index.htm
function makePopUpWin(pic,high,wide,text,features) {
 var tall = high + 0  // adjust for spacing to border above and below picture
 var side = wide + 0 // adjust for spacing to border on sides of picture
 var describeIt = text
 var picture = eval("pic")
 var winFeatures = features
 if (!popUpWin || popUpWin.closed) {
   popUpWin = eval("window.open('','','"+chrome[winFeatures]+",height="+tall+",width="+side+"')")
   if (!popUpWin.opener) {
     popUpWin.opener = window
   }
   // Content for the popup window is defined here.
   // It is contained in the popUpContent variable.
   // You may change any element of this content to
   // suit your purposes. The variable describeIt
   // contains the content from the href tag, and
   // the variable picture contains the image url.
   var popUpContent = "<html><head><title>Window for Broadcast Stream</title></head>"
   popUpContent += "<body><center><strong>" + describeIt + "</strong><br>" 
   popUpContent += "<a href="+picture+">To Start the Broadcast, Click Here</a>" 
   popUpContent += "<br>To Stop the Broadcast, Close this Window" 
   popUpContent += "</body></html>"
   popUpWin.document.write(popUpContent) // writes the window content
   popUpWin.document.close() // closes the output stream
 } else {
   popUpWin.focus()
 }
}

// This function closes the pop up window.
function closePopUpWin() {
 if (popUpWin && !popUpWin.closed)
  popUpWin.close();
}
// -->
