  
  // global javascript ... 
  
  
  var condenetads_ord = Math.random()*10000000000000000; 
  
  
  // magnetClass 
  function magnetClass() { 
    
    this.emailFriendsHeight=500; 
    this.emailFriendsWidth=470; 
    this.emailFriendsPath="/site/emailfriends/"; 

  } // end 
  
  // instance of magnet class ... 
  
  var magnet=new magnetClass(); 
  
  


  // emailFriends 
  function printThisPage() { 
    if(window.print) { window.print(); } 
  } // end    
  magnetClass.prototype.printThisPage=printThisPage;   
  



  // emailFriends 
  function emailFriends() {
    var href=this.emailFriendsPath;
    var name="emailFriends"; 
    var options="height="+this.emailFriendsHeight; 
    options+=",width="+this.emailFriendsWidth;  
    options+=",resizable=yes,scrollbars=yes";   
    options+=",top="+(screen.height/2-this.emailFriendsHeight/2); 
    options+=",left="+(screen.width/2-this.emailFriendsWidth/2); 
    this.popPage(href,name,options); 
  } // end    
  magnetClass.prototype.emailFriends=emailFriends; 
  
  


  // makeThisYourHomePage 
  function makeThisYourHomePage(page) { 
    var homePageHref="http://"+location.host+"/main/start/"; 
    if( document.all && navigator.userAgent.indexOf("Mac")<0 ) { 
      page.style.behavior='url(#default#homepage)'; 
      page.setHomePage(homePageHref); 
    } 
    else { 
      alert(" Select PREFERENCES from the EDIT menu \n " + 
    	"and under HOME PAGE select USE CURRENT PAGE."); 
    } 
  } // end 
  magnetClass.prototype.makeThisYourHomePage=makeThisYourHomePage; 


  

  // clear input ... 
  function clearInput() { return arguments[0].value="";  } // end 
  magnetClass.prototype.clearInput=clearInput; 




  // load pages ... 
  function loadPage() { 
    window.location=arguments[0]; 
  } // end 
  magnetClass.prototype.loadPage=loadPage; 


  

  // pop window ... 
  function popPage(href,name,options) { 
    if(href) { 
      if(options==null) { 
        options="location=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes,toolbar=yes"; 
      } 
      if(name==null) { name="popper"; } 
      var poppedWindow=window.open(href,name,options); 
      poppedWindow.focus(); // in case it's already opened 
    } 
  } // end 
  magnetClass.prototype.popPage=popPage; 

  // legecy ... 
  function popWindow(href,name,options) { 
    popPage(href,name,options); 
  } // end 
  magnetClass.prototype.popWindow=popPage; 


  

  // update opener ... 
  function updateOpener(href,close) { 
    if(window.opener) { 
      window.opener.location=href; 
      window.opener.focus(); 
    } 
    else { 
      var popper=window.open(href,"new","scrollbars=yes,status=yes,resizable=yes"); 
      popper.focus(); 
    } 
    if(close) { window.self.close(); } 
  } // end 
  magnetClass.prototype.updateOpener=updateOpener; 



  
  // load pages from option fields ... 
  function loadSelected(hf) { 
    if(hf.options[hf.selectedIndex].value) { 
      location=hf.options[hf.selectedIndex].value; 
    } 
  } // end 
  magnetClass.prototype.loadSelected=loadSelected; 



  
  // pop window from option fields ... 
  function openSelected(href,name,options) { 
    href=href.options[href.selectedIndex].value; 
    if(href) { 
      if(options==null) { 
        options="location=yes,menubar=yes,resizable=yes,status=yes,scrollbars=yes,toolbar=yes"; 
      } 
      if(name==null) { 
        name="popWindow2"; 
      } 
      var poppedWindow=window.open(href,name,options); 
      href.selectedIndex=null; 
      poppedWindow.focus(); } 
  } // end 
  magnetClass.prototype.openSelected=openSelected; 
  
  
  
  
  // insert flash into page ... 
  function insertFlash(path,height,width,background) { 
    
    var name="insert"; 
    
    var color="ffffff"; // defaults to white 
    if(background) { color=background; } 
    
    document.write('' + 
    '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" ' + 
    'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ' + 
    'name="' + name + '" ' + 
    'id="' + name + '" ' + 
    'width="' + width + '" ' +
    'height="' + height + '"> ' +
    '<param name="movie" value="' + path + '"> ' + 
    '<param name="play" value="'+ name + '"> ' + 
    '<param name="menu" value="false"> ' + 
    '<param name="quality" value="high"> ' + 
    '<param name="bgcolor" value="' + color + '"> ' + 
    '<embed ' + 
    'src="' + path +'" ' + 
    'play="true" ' + 
    'menu="false" ' + 
    'quality="high" ' + 
    'bgcolor="' + color + '" ' + 
    'width="' + width + '" ' + 
    'height="' + height + '" ' + 
    'swLiveConnect="true" ' + 
    'name="' + name + '" ' + 
    'type="application/x-shockwave-flash" ' + 
    'pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash">' + 
    '</embed> ' + 
    '</object> ' + 
    '' 
    ); 
    
  } // end 
  magnetClass.prototype.insert=insertFlash; 
  
  
  
  
  
  
  
  
  
  