/*
!THIS FILE USES FUNCTIONS FOUND IN OBLONGTECH.JS VERSION 1.2+
!THE EMBED FLV AND SWF FUNCTIONS REQUIRE SWFOBJECT21.JS AND FLVPLAYER.SWF

USAGE AND REQUIREMENTS:
import/link the '../css/popup.css' file
include the following script tag at end of page just before body close tag </body>
<script type="text/javascript" src="../js/popup.js"></script>

<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="../css/ie6.css" media="screen,tv,projection,handheld,print">
<script type="text/javascript" defer="defer">addEvent(window,'scroll',function(evt){$('popup').style.top = getScrollY();});</script>
<![endif]-->

*/

html = ''
+'<div id="popup" style="visibility:visible;display:none;top:0px;">'
+'<div id="popupbgnd" onclick="closepopup();"></div>'
+'<table><tr><td>'
+'<div id="popupmsg"></div>'
+'</td></tr></table>'
+'</div>';
document.write(html);

function openpopup(injectcode){
 getElem('popup').style.display = 'block';
 if(typeof injectcode != 'undefined'){
  getElem('popupmsg').innerHTML = injectcode;
  }
 }
function closepopup(){
 getElem('popup').style.display = 'none';
 getElem('popupmsg').innerHTML = '';
 }
cancelpopup = closepopup;

function closepopup_delay(){ setTimeout('closepopup()',50); }

if(/msie|MSIE 6/.test(navigator.userAgent)){
 addEvent(window,'scroll',function(event){
  $('popup').style.top = document.body.scrollTop!=0 ? document.body.scrollTop : (window.pageYOffset || (document.body.parentElement ? document.body.parentElement.scrollTop : 0 ));
  });
 }

