/*
!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){document.getElementById('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 = '';
 }
function openvideo(src,w,h){
 openpopup('<div id="flashvideocontainer" style="text-align:center;"><a href="http://www.adobe.com/products/flashplayer/" target="_new" id="noflashbanner"><img src="../Images/Video/118tvads-noflash.png" style="margin:40px 0px;" /></a></div>');
 getElem("popupmsg").style.width = w+'px';
 embedflv("flashvideocontainer",src,w,h);
 }
function embedflv(dest,src,w,h){
 var flashvars = {};
 flashvars.videoPath = src;
 flashvars.imagePath = "../gfx/cc0000.gif";
 flashvars.autoStart = "true";
 flashvars.volAudio = "100";
 flashvars.newWidth = w;
 flashvars.newHeight = h;
 flashvars.disableMiddleButton = "true";
 flashvars.playSounds = "false";
 flashvars.soundBarColor = "0x666666";
 flashvars.barColor = "0x666666";
 flashvars.barShadowColor = "0xAAAAAA";
 flashvars.subbarColor = "0xFFFFFF";

 var params = {};
 params.wmode = "transparent";
 params.allowFullScreen = "true";
 params.allowScriptAccess = "sameDomain";
 
 var attributes = {};

 swfobject.embedSWF("../flvPlayer.swf", dest, w, h, "9.0.0", "", flashvars, params, attributes);
 
 }
function embedswf(dest,src,w,h){

 var flashvars = {};

 var params = {};
 params.wmode = "transparent";
 params.allowScriptAccess = "sameDomain";
 
 var attributes = {};

 swfobject.embedSWF(src, dest, w, h, "9.0.0", "", flashvars, params, attributes);
 
 }
/*#########################################################################*/
//REQUIRED FOR IE6
function hideselectboxes(){
 var selectboxes = document.getElementsByTagName('select');
 for(e in selectboxes){
  e.style.visibility = 'hidden';
  }
 }
function showselectboxes(){
 var selectboxes = document.getElementsByTagName('select');
 for(e in selectboxes){
  e.style.visibility = 'visible';
  }
 }


