﻿//SetupNamespaces("AdventureH.myPop");
   
 //AdventureH.myPop =
 myPop =
 {
 
modalfunctions: function()
{
var private =
{
 square : null ,
 overdiv : null ,
 span1: null,
 linkdiv: null
 };
 //};
 

var public =
{
 popOut:
 function(path)
 {        //filter:alpha(opacity=25);-moz-opacity:.25;opacity:.25;  

 var dropbox = document.getElementById("dropbox1");   
  
 private.overdiv = document.createElement("div");        
 private.overdiv.className = "overdiv";    
 
 
 private.square = document.createElement("div");        
 private.square.className = "square";        
 //square.Code = this;                

//this.overdiv.onclick = eventHandler.prototype.ShowAlert;

private.overdiv.setAttribute("id","overdiv1");
private.square.setAttribute("id","square1");
 
     private.span1 = document.createElement("span");
     //private.span1.className = "wrapper";
     private.span1.innerHTML = "<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" width=\"640\" height=\"540\" id=\"player\" align=\"middle\">" + 
        "<param name=\"allowScriptAccess\" value=\"sameDomain\" />" + 
        "<param name=\"allowFullScreen\" value=\"false\" />" + 
        "<param name=\"movie\" value=\"/flash/player.swf?source=/fiji/Qamea.flv&autoPlay=true&skin=/flash/SkinUnderPlayStopSeekMuteVol.swf&skinBackgroundColor=CCCCCC&width=640px&height=480px\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#ffffff\" />" + 
        "<embed src=\"/flash/player.swf?source="+ path + "&autoPlay=true&skin=/flash/SkinUnderPlayStopSeekMuteVol.swf&skinBackgroundColor=CCCCCC&width=640px&height=480px\" quality=\"high\" bgcolor=\"#ffffff\" width=\"640\" height=\"540\" name=\"player\" align=\"middle\" allowScriptAccess=\"sameDomain\" allowFullScreen=\"false\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" />" + 
        "</object>";
     private.square.appendChild(private.span1);
     private.overdiv.onclick = function()
                                {
                                public.popIn();
                                };
                                //creating link div
 
     dropbox.appendChild(private.overdiv);        
     dropbox.appendChild(private.square);
      },
     
     
     
     popIn : function() 
     {   
     var dropbox =   document.getElementById("dropbox1");   
              // var overdiv = GetElement("overdiv1");
               //var square = GetElement("square1");
               
               try
               {
               
               private.square.removeChild(private.span1);
               private.span1=null;
       dropbox.removeChild(private.overdiv);
       dropbox.removeChild(private.square);
       }
       catch(e)
       {
       
       }
       dropbox=null;
       
       } 
       
       
  };  
  return public;          
   }
};


 
      
 

