function getSWFObj(_objName) 
{
   if (navigator.appName.indexOf("Microsoft") != -1) 
   {
	   return window[_objName];
   } 
   else 
   {
	   return document[_objName];
   }
}
 
function getSWF(width, height)
{
   var swfo = new SWFObject("/include/common/VideoPlayer/VideoCast_start_Image.swf", "VideoCast_Image", width, height, "9", "#000000");
   swfo.addParam("quality", "high");
   swfo.addParam("allowScriptAccess", "always");
   swfo.addParam("scale", "noscale");
   swfo.addParam("salign", "TL");
   swfo.addVariable("VideoCast", "http://www.tobit.com/test/flux.flv");
}
 
function changeSize(theVAR) 
{
   var flashContainer = document.getElementById("mrdFLVPlayer");
   var flvPlaceholder = document.getElementById("mrdFLVPlaceholder");
   flvPlaceholder.style.width = "284px"
   flvPlaceholder.style.height = "183px"

   if (theVAR == "small") 
   {
      if(navigator.userAgent.indexOf("Firefox") > 0) 
      {
         flashContainer.style.right = "0px";				
      }
      document.getElementById("darkGlass").style.display = "none";
      flashContainer.className = "flashContainer";
      flvPlaceholder.style.display = "none";
      getSWFObj("VideoCast_Image").width = 285;
      getSWFObj("VideoCast_Image").height = 183;
   } 
   else 
   {
      if(navigator.userAgent.indexOf("Firefox") == -1) 
      {
         document.getElementById("darkGlass").style.display = "block";
         flvPlaceholder.style.display = "block";
         flashContainer.className = "flashContainerMax";
      }
      else
      {
         flashContainer.style.right = "-17px";
      }
      getSWFObj("VideoCast_Image").width = 640;
      getSWFObj("VideoCast_Image").height = 380;
   }
}


