function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}

function closeFlashStory() 
{
     getFlashMovie("flash").showNav();
}   
   
   // Ajax popup script
   function openInline(o, xPos, yPos){
      if (vidPaneID.style.visibility=='visible') {
		 vidPaneID.innerHTML='';
         vidPaneID.style.visibility='hidden';        
         closeFlashStory();
         
      } else {
         vidPaneID.style.visibility='visible';
         vidPaneID.style.left = xPos+'px';
         vidPaneID.style.top = yPos+'px';
         vidPaneID.innerHTML='<A HREF="javascript:openInline()">close</A><div id="storycontainer"></div>';
		 var storyContID;
		 storyContID = document.getElementById('storycontainer'); 
         var iframe ='<iframe name="inlineframe" id="inlineframe" src='+o+' width="990" height="600" frameborder="0" scrolling="no">  <p>Your browser does not support iframes.</p></iframe>';
         storyContID.innerHTML=iframe;	
      }
   }
     function moveHandler(e){
      if (e == null) { e = window.event } 
      if (e.button<=1&&dragOK){
         savedTarget.style.left=e.clientX-dragXoffset+'px';
         savedTarget.style.top=e.clientY-dragYoffset+'px';
         return false;
      }
   }

   function cleanup(e) {
      document.onmousemove=null;
      document.onmouseup=null;
      savedTarget.style.cursor=orgCursor;
      dragOK=false;
   }

 
   
