/*************************************************************************
Functions

1  fnMail(sDomain, bProtocol, sName)
2  whichBrowser()
3  checkthis(site)
4  add2Fav()
5  loadVideo(clip, width, align, loop)
6  playVideo(newVideo)
7  stopVideo(newVideo)
8  VideoInsert(ID, Player7video, Player6video, UIMODE, WIDTH, HEIGHT, BASEURL)
9  Modified for opening video on popup window
   VideoInsert(ID, Player7video, Player6video, Player6mode, UIMODE, WIDTH, HEIGHT, BASEURL){
10 scaleMe()
11 popMe( path,w,h,i,title)
12 jumpto(Item,FormName)
13 onTop()
14 Minimize()
15 Maximize() 
16 doRain()
17 handleResponse(im1,im2)
18 buildQueryString(Form)
19 callToServer(qstr)
20 loadIframe(iframeName, url)
21 popUP(mypage, myname, w, h, scroll, titlebar)

**************************************************************************/

var curpath="";
var i=1;
var x=0;
var y=0;
var pic;
var butt;
var Pic;
var trans;         //used by popMe function
var uL=-1;          //used with addMoreFile function on Menu page
var fn = "";
var fv = "init";         
var ofileName = "";
var UpoF = "";
var UpF = "";
var firstTime = 1;   //used by menu.php
var ratio = 0;
var pFn = "";
var UpFn = "";

//var newIMG="";

//Following function should be in stylesheet.css 
//<STYLE>@media all { IE\:CLIENTCAPS { behavior:url(#default#clientCaps)} }</STYLE>
//Following function should be in HEADER
//<HTML xmlns:IE>
//<IE:CLIENTCAPS ID="oClientCaps" />
//<PRE id="oPre"></PRE>
/*
function window.onload()
{
  sTempStr = "availHeight    = " + oClientCaps.availHeight    + "\n" + 
             "availWidth     = " + oClientCaps.availWidth     + "\n" + 
             "bufferDepth    = " + oClientCaps.bufferDepth    + "\n" +
             "colorDepth     = " + oClientCaps.colorDepth     + "\n" +
             "connectionType = " + oClientCaps.connectionType + "\n" +
             "cookieEnabled  = " + oClientCaps.cookieEnabled  + "\n" +  
             "cpuClass       = " + oClientCaps.cpuClass       + "\n" + 
             "height         = " + oClientCaps.height         + "\n" + 
             "javaEnabled    = " + oClientCaps.javaEnabled    + "\n" + 
             "platform       = " + oClientCaps.platform       + "\n" + 
             "systemLanguage = " + oClientCaps.systemLanguage + "\n" + 
             "userLanguage   = " + oClientCaps.userLanguage   + "\n" + 
             "width          = " + oClientCaps.width          + "\n" ;

  //oPre.innerText = sTempStr;          
}   */

function fnMail(sDomain, bProtocol, sName)
  {
    var r = (bProtocol) ? "lto" : '';
    var s = sName + "@" + sDomain;

    if (bProtocol) r = "mai"+r+':';
    return r+s;
  }

	
	
	
	
//Browser detection  useage:  if(browser=="IE" && version > 5)  dosomething;
//Operating system detection  useage:  if(OS=="Mac" && version > 9)  dosomething;	
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

if (checkIt('konqueror'))
{
	browser = "Konqueror";
	OS = "Linux";
}
else if (checkIt('safari'))  browser = "Safari"
else if (checkIt('omniweb')) browser = "OmniWeb"
else if (checkIt('opera'))   browser = "Opera"
else if (checkIt('webtv'))   browser = "WebTV";
else if (checkIt('icab'))    browser = "iCab"
else if (checkIt('msie'))    browser = "IE"
else if (!checkIt('compatible'))
{
	if(navigator.appName == "Netscape") browser = "NS";
	else browser = "unknown";
	version = detect.charAt(8);
}
else browser = "unknown";

if (!version) version = detect.charAt(place + thestring.length);

if (!OS)
{
	if (checkIt('linux')) OS = "Linux";
	else if (checkIt('x11')) OS = "Unix";
	else if (checkIt('mac')) OS = "Mac"
	else if (checkIt('win')) OS = "Windows"
	else OS = "unknown";
}

function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}
//End of Browser detection/////////////////////////////////////////////////////
	
	
//Does not allow right mouse click////////////////////////////////////////////	
var message = "Right click is disabled.\n\n"; 

function click(e) {
  if (browser=="IE") {
    if (event.button == 2) {
      alert(message);
      return false;
    }
  }
//It does not work in these browsers well
//  if (browser=="NS" || browser=="Opera") {
//    if (e.which == 3) {
//      alert(message);
//      return false;
//    }
//  }

}//End of function

//if (browser=="NS") {
//  document.captureEvents(Event.MOUSEDOWN);
//}
document.onmousedown=click;
//////////////////////////////////////////////////////////////////////////////
	
	
	function whichBrowser(){		
		var ms = navigator.appVersion.indexOf("MSIE")
		var macness = navigator.appVersion.indexOf("Macintosh")
		ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
		if(ie4){ ns6 = false; return 1; }
    if(!ie4){
					 if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0, 1)) >= 5))
			         {
							    ns6=true;
                  return 0;				
			         }
			     else if((navigator.appName == "Netscape") && (parseInt(navigator.appVersion.substring(0, 1)) == 4))
			         {
				          other=true;
                  return 0; 
			         }
		 }
	}

///////////////////////////////////////////////////////////////////////////////
function checkthis(site)
{
    if (oInputBox.checked == true && site=="www")
    {
      window.target="WORKING";   
    }
    else window.target="_blank";

}


function add2Fav(){
  if ((navigator.appVersion.indexOf("MSIE") > 0)
     && (parseInt(navigator.appVersion) >= 4)) {
    var sText = "<U><SPAN STYLE='cursor:hand;'";
    sText += "onclick='window.external.AddFavorite(location.href,";
    sText += "document.title);'>Add this page to your favorites</SPAN></U>";
    document.write(sText);
  }
}


function loadVideo(clip, width, align, loop) {    

var newVideo = document.createElement("IMG");        
       
       //newVideo.src = 'images/PCS-2000Logo.gif';
       newVideo.dynsrc = clip;       
       newVideo.width= width;
       newVideo.align= align;
       newVideo.loop= loop;
       newVideo.loopdelay='0';
       
       return newVideo;
}

function playVideo(newVideo) {    
   try
   {
      
      //Video=document.body.insertBefore(newVideo);      
     document.body.appendChild(newVideo); 
   }
     
  catch(x)
  {
    //newVideo=document.body.insertBefore('http://solcor.no-ip.com/images/pcs2000.asf');
    //document.location.reload();
  } 
      newVideo.start="fileopen";  
      //newVideo.start="mouseover";              
      newVideo.dynsrc = newVideo.dynsrc; // reload video 
      return 0;
       
}


function stopVideo(newVideo) {        
 try
  {
     document.body.removeChild(newVideo); 
     
  }
  catch(x)
  {
    
    document.location.reload();
  } 
     return 0; 
}



//Modified for opening video on popup window
function PopupVideo(ID, Player7video, Player6video, Player6mode, UIMODE, WIDTH, HEIGHT, BASEURL){
var IEplayer = null;
var NSplayer = null;
var WMPVer = null;
var IEplayer;
var NSplayer;
var Operaplayer;

try 
{
  if(window.parent.frames.ActiveXObject )
  {
    IEplayer = new window.parent.frames.ActiveXObject("WMPlayer.OCX.7");
		if(Player6mode) IEplayer=NULL;
  }
  else if (window.opener.parent.frames.GeckoActiveXObject)
  {
    NSplayer = new window.opener.parent.frames.GeckoActiveXObject("WMPlayer.OCX.7");
		if(Player6mode) NSplayer=NULL;
		//window.alert("It detects Gecko");
  }
	else
  {
    Operaplayer = new window.parent.frames.ActiveXObject("WMPlayer.OCX.7");
		if(Player6mode) Operaplayer=NULL;
		//window.alert("It detects Gecko");
  }

}
catch(e)
{
  // no WMP 7 or 9 control
  // Use WMP 6.4 also if necessary, but this is legacy software nowadays
	
    if (window.parent.frames.ActiveXObject)
     {
				try 
         {	
				 	//window.alert("IE MPlayer 6.4" );
					document.writeln('<object id=');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 5,715" TYPE="application/x-oleobject">');
					document.writeln(' < param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="FileName" value= ');
					document.writeln( Player6video );
					document.writeln(' >');
			    if (UIMODE=="invisible")
				   {
						 document.writeln('<param name="AutoRewind" value="false">');
						 document.writeln('<param name="ShowControls" value="false">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="false">');
						 document.writeln('<param name="TransparentAtStart" value="true">');
				   }		 
			    if (UIMODE=="none") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
						 document.writeln('<param name="ShowControls" value="false">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="false">');
           } 
          if (UIMODE=="mini") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
				     document.writeln('<param name="ShowControls" value="true">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="true">');
           }  
          if (UIMODE=="full") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
				     document.writeln('<param name="ShowControls" value="true">');
				     document.writeln('<param name="ShowTracker" value="true">');
				     document.writeln('<param name="EnableTracker" value="true">');
				     document.writeln('<param name="ShowPositionControls" value="true">');
				     document.writeln('<param name="EnablePositionControls" value="true">');
				     document.writeln('<param name="ShowStatusBar" value="true">');
           }
				     document.writeln('</OBJECT>');
		    }//TRY
			catch(e)
			  {
				   document.writeln('<A HREF="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/wmp10/Download_88x31_ani.gif" WIDTH="88" HEIGHT="31" BORDER="0" VSPACE="7">Download Windows MediaPlayer 10</A>');
				}
		}//IF MSIE		 
	
     else if(window.opener.parent.frames.GeckoActiveXObject)
      {
				try 
         {
				 		  //window.alert("CATCH NS 6.4   Netscape ");
					document.writeln('<OBJECT id=');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 TYPE="application/x-oleobject">');
					document.writeln(' <param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="Filename" value=');
					document.writeln( Player6video );
					document.writeln(' > ');
			    if (UIMODE=="invisible")
				   {
						 document.writeln('<param name="AutoRewind" value="false">');
						 document.writeln('<param name="ShowControls" value="false">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="false">');
				     document.writeln('<param name="TransparentAtStart" value="true">');
				   }		 
			    if (UIMODE=="none") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
				     document.writeln('<param name="ShowControls" value="false">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="false">');
           } 
          if (UIMODE=="mini") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
				     document.writeln('<param name="ShowControls" value="true">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="true">');
           }  
          if (UIMODE=="full") 
           {
				     if (Player6mode) 
						 document.writeln('<param name="AutoRewind" value="false">');
				     document.writeln('<param name="ShowControls" value="true">');
				     document.writeln('<param name="ShowTracker" value="true">');
				     document.writeln('<param name="EnableTracker" value="true">');
				     document.writeln('<param name="ShowPositionControls" value="true">');
				     document.writeln('<param name="EnablePositionControls" value="true">');
				     document.writeln('<param name="ShowStatusBar" value="true">');
           }
					document.writeln(' <EMBED Name= ');
					document.writeln( ID  );
					document.writeln(' Src= ');
					document.writeln( Player6video );
					document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');
		    }//TRY
			 catch(e)
			  {
				   document.writeln('<A HREF="http://www.microsoft.com/windows/windowsmedia/player/download/"><IMG ALT="Get Windows Media Player" SRC="http://www.microsoft.com/windows/windowsmedia/images/logos/wmp10/Download_88x31_ani.gif" WIDTH="88" HEIGHT="31" BORDER="0" VSPACE="7">Download Windows MediaPlayer 10</A>');
				}
			}//IF NS NAVIGATOR	 				
      else { //This works with Opera
		      document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value=" ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');
		}
  return 0;  //IF Version 6.4
}//CATCH

if (IEplayer || NSplayer)
if (!Player6mode)
{
  // Windows Media Player control exists and it is version 7 or 9
  // Can use WMP 7 or 9 API -- call versionInfo property, only in 7 and 9
            
 try
 {	
   if (IEplayer)
    {
			 WMPVer=parseInt(  IEplayer.versionInfo);
		   //window.alert("if(IEplayer)   IE  MediaPlayer-" + WMPVer);
			 if( WMPVer >= 10 );
	 		 if( WMPVer >= 9 );
			 if( WMPVer >= 8 );
			 if( WMPVer >= 7 ){ 					
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					//document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					//document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ></OBJECT>');
					}

     }//if MSIE
    else if(NSplayer)
     {
 		   //It works with latest Netscape detecting WMPlayer version
			 if(WMPVer=parseInt(NSplayer.versionInfo)){
			 //window.alert("if(NSplayer) Netscape  MediaPlayer Version - " + WMPVer);
			 if( WMPVer >= 10 );
	 		 if( WMPVer >= 9 );
			 if( WMPVer >= 8 );
			 if( WMPVer >= 7 ){					
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( WIDTH );
					document.writeln('height= ');
					document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					//document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					//document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln(  Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');		
				}//if( WMPVer >= 7 )
				}//if(WMPVer=parseInt(NSplayer.versionInfo))
				else {
          //alert("It works with Mozilla-not detecting MVPlayer version\nProbably has its own version");
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value=" ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');				
				}//else
		 }//ELSEIF if(NSplayer)
    else if(navigator.mimeTypes)
     {
       // Plugin architecture, such as in Netscape 4x - 7.02 and Opera browsers
		   //window.alert("if(navigator.mimeTypes) Netscape  MediaPlayer-" + WMPVer);
			 IEplayer = navigator.mimeTypes["application/x-mplayer2"].enabledPlugin;
			 		document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln(  Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' <param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');
	   }
    else 
		 {
		   //window.alert("else   Netscape  MediaPlayer-" + WMPVer);
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ></OBJECT>');
      }
}//TRY
catch(e)
{
 ;
}
          					
       return 1;    //IF Version 7 or higher
}//IF (IE or NS) PLAYER
                     
}//functionEND 




function VideoInsert(ID, Player7video, Player6video, UIMODE, WIDTH, HEIGHT, BASEURL){
var IEplayer = null;
var NSplayer = null;
var WMPVer = null;
var IEplayer;
var NSplayer;
var Operaplayer;
var Unknownplayer;

try
{
 /*
  if( window.parent.frames.ActiveXObject )
  {
    IEplayer = new window.parent.frames.ActiveXObject("WMPlayer.OCX.7");
	  alert("IEplayer");
	}
 
	else if (window.parent.frames.GeckoActiveXObject)
  {
		NSplayer = new window.parent.frames.GeckoActiveXObject("WMPlayer.OCX.7");
    alert("NSplayer");
	}	
	else
  {
		//Operaplayer = window.parent.frames.ActiveXObject("WMPlayer.OCX.7");
    alert("Operaplayer");
	}
	*/
	//whichBrowser() ? IEplayer = new document.frames.ActiveXObject("WMPlayer.OCX.7") : NSplayer = window.frames.GeckoActiveXObject("WMPlayer.OCX.7");
		
		if(browser=="NS" && version > 4 )  
		  if(this.window.name=="RSIFrame" && navigator.userAgent.indexOf("Netscape") > -1){NSplayer =  GeckoActiveXObject("WMPlayer.OCX.7"); }
		  else if(this.window.name=="RSIFrame" && navigator.userAgent.indexOf("Netscape")== -1){NSplayer =  GeckoActiveXObject; }
		  else { NSplayer = window.parent.frames.GeckoActiveXObject("WMPlayer.OCX.7");}
		if(browser=="IE" &&  version > 5) {IEplayer = new document.frames.ActiveXObject("WMPlayer.OCX.7");}
    if(browser=="Opera" &&  version > 6)  { document.writeln("Sorry, this page is not tuned to Opera"); Operaplayer = window.parent.frames.ActiveXObject("WMPlayer.OCX.7");}
		if(browser=="unknown")   { Unknownplayer = window.parent.frames.ActiveXObject("WMPlayer.OCX.7"); }

}
catch(e)
{
	// no WMP 7 or 9 control
  // Use WMP 6.4 also if necessary, but this is legacy software nowadays
	//alert("In Catch" );
    if (window.parent.frames.ActiveXObject) // To work in IFRAME leave as it i
     {	 
				//alert("IE MPlayer 6.4 -1" );
					document.writeln('<object id=');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( 320 );
					document.writeln(' height= ');
					document.writeln( 240 );
					document.writeln(' classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95 5,715" TYPE="application/x-oleobject">');
					document.writeln(' < param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="FileName" value= ');
					document.writeln( Player6video );
					document.writeln(' >');
			    if (UIMODE=="invisible")
				   {
				     document.writeln('<param name="TransparentAtStart" value="true">');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln('<param name="ShowControls" value="false">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="false">');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln('<param name="ShowControls" value="true">');
				     document.writeln('<param name="ShowTracker" value="false">');
				     document.writeln('<param name="EnableTracker" value="false">');
				     document.writeln('<param name="ShowPositionControls" value="false">');
				     document.writeln('<param name="EnablePositionControls" value="false">');
				     document.writeln('<param name="ShowStatusBar" value="true">');
           }  
          if (UIMODE=="full") 
           {
						 document.writeln('<param name="ShowControls" value=1>');
				     document.writeln('<param name="ShowTracker" value=1>');
				     document.writeln('<param name="EnableTracker" value=1>');
				     document.writeln('<param name="ShowPositionControls" value=1>');
				     document.writeln('<param name="EnablePositionControls" value=1>');
				     document.writeln('<param name="ShowStatusBar" value=1>');
           }
				     document.writeln('</OBJECT>');

		}//IF MSIE		 
	
    else if(window.parent.frames.GeckoActiveXObject)
      {
				//alert("It detects Gecko - not using 'new' for older Mozilla\nNSplayer = window.parent.frames.GeckoActiveXObject; ");
	      NSplayer = window.parent.frames.GeckoActiveXObject;
			}//IF NS NAVIGATOR
		//else	if(browser=="NS" && version > 4 ) { NSplayer = new GeckoActiveXObject("WMPlayer.OCX.7"); }
		else { //This works with Opera
		      //alert("catch - Opera");
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value=" ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');
		}
}//CATCH

if (IEplayer || NSplayer)
{
 
  // Windows Media Player control exists and it is version 7 or 9
  // Can use WMP 7 or 9 API -- call versionInfo property, only in 7 and 9               
 try
 {	
   if (IEplayer)
    {
			 WMPVer=parseInt(  IEplayer.versionInfo);
		   //window.alert("if(IEplayer)   IE  MediaPlayer - " + WMPVer);
			 if( WMPVer >= 10 );
	 		 if( WMPVer >= 9 );
			 if( WMPVer >= 8 );
			 if( WMPVer >= 7 ){ 					
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( WIDTH );
					document.writeln(' height= ');
					document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					//document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					//document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ></OBJECT>');								 
				}

     }//if MSIE
    else if(NSplayer)
     {
 		   //It works with latest Netscape detecting WMPlayer version
			 if(WMPVer=parseInt(NSplayer.versionInfo)){
			 //window.alert("if(NSplayer) Netscape  MediaPlayer Version - " + WMPVer);
			 if( WMPVer >= 10 );
	 		 if( WMPVer >= 9 );
			 if( WMPVer >= 8 );
			 if( WMPVer >= 7 ){					
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( WIDTH );
					document.writeln('height= ');
					document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					//document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					//document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln(  Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');		
				}//if( WMPVer >= 7 )
				}//if(WMPVer=parseInt(NSplayer.versionInfo))
				else {
          //alert("It works with Mozilla-not detecting MVPlayer version\nProbably has its own version");
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value=" ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					//document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay = 0 ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=1');
					document.writeln(' AutoStart = 1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=0');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');				
				}//else
     }//ELSEIF NS Navigator
    else if(navigator.mimeTypes)
     {
       // Plugin architecture, such as in Netscape 4x - 7.02 and Opera browsers
		   window.alert("if(navigator.mimeTypes) Netscape  MediaPlayer-7" + WMPVer);
			 IEplayer = navigator.mimeTypes["application/x-mplayer2"].enabledPlugin;
			 		document.writeln('<OBJECT id= ');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( WIDTH );
					document.writeln('height= ');
					document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln(  Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' <param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					//document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay=0  ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=false');
					document.writeln(' AutoStart=1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=1');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=1');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');	   }
    else 
		 {
		   //window.alert("else   Netscape  MediaPlayer-8" + WMPVer);
					document.writeln('<OBJECT id= ');
					document.writeln( ID );
					document.writeln(' width= ');
					document.writeln( WIDTH );
					document.writeln(' height= ');
					document.writeln( HEIGHT );
					document.writeln(' classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6');
					document.writeln(' CODEBASE="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=7,0,0,1954"');
					document.writeln(' standby="Loading Microsoft Windows Media Player components..."');
					document.writeln(' TYPE="application/x-oleobject">');
					document.writeln('<param name="URL" value= ');
					document.writeln( Player7video );
					document.writeln(' >< param name="BaseURL" value= ');
					document.writeln( BASEURL );
					document.writeln(' ><param name="uiMode" value= ');
					document.writeln( UIMODE );
					document.writeln(' ><EMBED Name= ');
					document.writeln(  ID );
					document.writeln(' Src= ');
					document.writeln(  Player7video );
					document.writeln(' PLUGINSPAGE="http://microsoft.com/windows/mediaplayer/en/download/"');
					//document.writeln(' PLUGINSPAGE="http://www.microsoft.com/windows95/downloads/contents/wurecommended/s_wufeatured/mediaplayer/default.asp"');
					document.writeln(' ShowDisplay=0  ');
					document.writeln(' stretchToFit = 0');
					document.writeln(' enableContextMenu=false');
					document.writeln(' AutoStart=1  ');
					document.writeln(' AutoSize= 0  ');
          if(WIDTH!="") document.writeln(' width= ');
					if(WIDTH!="") document.writeln( WIDTH );
					if(HEIGHT!="") document.writeln(' height= ');
					if(HEIGHT!="") document.writeln( HEIGHT );			    
					if (UIMODE=="invisible")
				   {
				     document.writeln(' TransparentAtStart=1');
				   }		 
			    if (UIMODE=="none") 
           {
				     document.writeln(' ShowControls=0');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=0');
           } 
          if (UIMODE=="mini") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=0');
				     document.writeln(' EnableTracker=0');
				     document.writeln(' ShowPositionControls=0');
				     document.writeln(' EnablePositionControls=0');
				     document.writeln(' ShowStatusBar=1');
           }  
          if (UIMODE=="full") 
           {
				     document.writeln(' ShowControls=1');
				     document.writeln(' ShowTracker=1');
				     document.writeln(' EnableTracker=1');
				     document.writeln(' ShowPositionControls=1');
				     document.writeln(' EnablePositionControls=1');
				     document.writeln(' ShowStatusBar=1');
           }
					document.writeln(' TYPE="application/x-mplayer2"></EMBED></OBJECT>');      }
}//TRY
catch(e)
{
;
}
         
				 return ID;  
}//IF (IE or NS) PLAYER

                                       
}//functionEND   




function scaleMe(){


		 for(y=0; y <= screen.availHeight; y += 30){
          x = y*ratio;
					Pic.width = x;
					Pic.height = y;
				trans.resizeTo(x, y);
	   }

   /* 
		   x=1.25*Pic.width;
			 y=1.25*Pic.height;
   	   trans.resizeTo(x+35, y+100);
	
     trans.document.body.style.borderWidth = 5;
	   Pic.height=1.25*Pic.height;
		 Pic.width=1.25*Pic.width;
		 trans.document.body.appendChild(Pic);
		 trans.document.body.style.backgroundColor ='#30659F';  */

}

function popMe( path,w,h,i,title){
			   //if(Pic && trans!="")  trans.close(); 
	       Pic="Pic_" + i;
	       trans="trans_" + i;
	       trans = window.open("", "trans", "width="+w+", height="+h+",left=0,top=0,titlebar=no,statusbar=no,menubar=no,scrollbars=yes",false);
				 trans.document.write("<html><title>"+title+"-Foto-"+i+"</title><body onUnload='this.document.body.removeChild(Pic); trans.close();'></body  ></html>");
			   trans.document.body.leftMargin=0;
				 trans.document.body.topMargin=0;
				 trans.focus();
	       //div=trans.document.createElement("DIV");
	       //div.align="center";
	       //trans.document.body.appendChild(div);
         
	
				 Pic=trans.document.createElement("IMG");
	       Pic.src=path;
	       //Pic.align="center";
	       Pic.width=Pic.width;
	       Pic.height=Pic.height;
				 //Pic.style.cursor="url('images/MAGNIFY.CUR')";
	       
				 
				 
				 trans.document.body.appendChild(Pic);
         ratio = Pic.width / Pic.height;
				 Pic.height = screen.availHeight / 2;
				 Pic.width = ratio * screen.availHeight / 2;
	       //var wth = (screen.availWidth - w) / 2;
         //var hth = (screen.availHeight - h) / 2;
				 
				 
				 trans.resizeTo(Pic.width,Pic.height+60);
         //trans.document.body.style.backgroundColor ='#30659F';
	       Pic.onclick = scaleMe;	 	 

        //butt =trans.document.createElement("BUTTON");
	      //var buttext = trans.document.createTextNode("Zoom In");
	      //trans.document.body.appendChild(butt);
	      //butt.appendChild(buttext);
	      //butt.onclick = scaleMe;

				return trans;
}

         




function jumpto(Item,FormName) { 
        //parent.frames[0].document.close(); 
				//window.parent.frames.document.close(); 
				document.close(); 
        window.open(Item,"_self");
        FormName.style.backgroundColor="BLACK";
		    FormName.style.color="red";
}

function popUP(mypage, myname, w, h, scroll, titlebar)
{

	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
	win = window.open(mypage, myname, winprops);
	if (parseInt(navigator.appVersion) >= 4) {
		win.window.focus();
	}
}

function loadIframe(iframeName, url) {
  if ( window.frames[iframeName] ) {
    window.frames[iframeName].location = url;   
    return false;
  }
  else return true;
}

function doRain(){
if (document.all){
   drop = new Array(); 
	 xx = new Array(); 
	 yy = new Array(); 
	 mv = new Array();
   ly = "document.all[\'"; 
	 st = "\'].style";
   for(make = 0; make < drops; make++){
      document.write('<div id="drop'+make+'" class=drop>'+sym+'</div>');
      drop[make] = eval(ly+'drop'+make+st);
      maxx = document.body.clientWidth-40;
      maxy = document.body.clientHeight-40;
      xx[make] = Math.random()*maxx;
      yy[make] = -100-Math.random()*maxy;
      drop[make].left = xx[make];
      drop[make].top = yy[make];
      mv[make] = (Math.random()*5)+speed/4;
      drop[make].fontSize = (Math.random()*10)+20;
      if(snow){col = 'white'} else{col = 'blue'}
      drop[make].color = col;
    }
  //window.onload=moverain;
 }
}

