  
  
  /* VERSION 4.20041228 */ 
  
  
  var condenetads_ord = Math.random()*10000000000000000; 
  
  
  // magnetClass 
  function magnetClass() { 
    
	this.flashInstalled=false; 
	this.flatSuffix="_flat"; 
	this.flatExtension="gif"; 
	this.skipFlashDetection=false; 
	
    this.turnOnMacintoshAdjustment=false; 
    this.macintoshStylesheet="/stylesheets/adjustment.css"; 
	
    this.audiosHeight=500; 
    this.audiosWidth=470; 
    this.audiosParameters="resizable=yes,scrollbars=yes"; 
	
    this.contestsHeight=500; 
    this.contestsWidth=470; 
    this.contestsParameters="resizable=yes,scrollbars=yes"; 
    
    this.emailsHeight=500; 
    this.emailsWidth=470; 
    this.emailsParameters="resizable=yes,scrollbars=yes"; 
    
    this.friendsHeight=500; 
    this.friendsWidth=470; 
    this.friendsParameters="resizable=yes,scrollbars=yes"; 
    this.friendsPath="/services/contact/friends"; 
    
    this.newslettersHeight=500; 
    this.newslettersWidth=555; 
    this.newslettersParameters="resizable=yes,scrollbars=yes"; 
    this.newslettersPath="ADJUST THIS PATH IN VARIABLE JS"; 
    
    this.pollsHeight=500; 
    this.pollsWidth=470; 
    this.pollsParameters="resizable=yes,scrollbars=yes"; 
    
    this.slideshowsHeight=500; 
    this.slideshowsWidth=470; 
    this.slideshowsParameters="resizable=yes,scrollbars=yes"; 
    
    this.standardHeight=500; 
    this.standardWidth=470; 
    this.standardParameters="resizable=yes,scrollbars=yes"; 
    
    this.surveysHeight=500; 
    this.surveysWidth=470; 
    this.surveysParameters="resizable=yes,scrollbars=yes"; 
    
    this.tipsHeight=500; 
    this.tipsWidth=470; 
    this.tipsParameters="resizable=yes,scrollbars=yes"; 
    
    this.videosHeight=500; 
    this.videosWidth=470; 
    this.videosParameters="resizable=yes,scrollbars=yes"; 

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

  
  
  
  
  // macintosh styles adjustment ... 
  function macintoshStylesAdjustment() { 
    if(this.turnOnMacintoshAdjustment == false) { return; } 
    if(navigator.platform && navigator.platform.indexOf('Mac') != -1) { 
      document.write('<link type="text/css" rel="stylesheet" href="'+this.macintoshStylesheet+'">'); 
    } 
  } // end 
  magnetClass.prototype.macintoshStylesAdjustment=macintoshStylesAdjustment; 
  
  
  

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



  // standard pops 
  function generalPops(page,name,height,width,parameters,center) {
    var defaults="height="+height; 
    defaults+=",width="+width;  
    if(parameters) { defaults+=","+parameters; } 
	if(center != false) { 
      defaults+=",top="+(screen.height/2-height/2); 
      defaults+=",left="+(screen.width/2-width/2); 
	} 
    this.popPage(page,name,defaults); 
  } // end    
  magnetClass.prototype.generalPops=generalPops; 


  // pop audios 
  function popAudios(page,name,center) { 
    if(name == null) { name="audios"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.audiosHeight,this.audiosWidth,this.audiosParameters,center); 
  } // end    
  magnetClass.prototype.audiosPage=popAudios; 
  

  // POP NESLETTERS 
  function popNewsletters() {
    this.generalPops(this.newslettersPath,"newsletters",this.newslettersHeight,this.newslettersWidth,this.newslettersParameters,true); 
  } // end    
  magnetClass.prototype.newslettersPage=popNewsletters; 
  magnetClass.prototype.bulletinsPage=popNewsletters; 


  // pop contests 
  function popContests(page,name,center) { 
    if(name == null) { name="contests"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.contestsHeight,this.contestsWidth,this.contestsParameters,center); 
  } // end    
  magnetClass.prototype.contestsPage=popContests; 


  // pop emails 
  function popEmails(page,name,center) { 
    if(name == null) { name="emails"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.emailsHeight,this.emailsWidth,this.emailsParameters,center); 
  } // end    
  magnetClass.prototype.emailsPage=popEmails; 
  

  // POP FRIENDS
  function popFriends() { 
    var page=this.friendsPath + "?thread=" + document.location; 
    this.generalPops(page,"emailFriends",this.friendsHeight,this.friendsWidth,this.friendsParameters,true); 
  } // end    
  magnetClass.prototype.friendsPage=popFriends; 
  magnetClass.prototype.emailFriends=popFriends; 
  magnetClass.prototype.friendsPop=popFriends; 
  

  // pop polls 
  function popPolls(page,name,center) { 
    if(name == null) { name="polls"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.pollsHeight,this.pollsWidth,this.pollsParameters,center); 
  } // end    
  magnetClass.prototype.pollsPage=popPolls; 
  

  // pop surveys 
  function popSurveys(page,name,center) { 
    if(name == null) { name="surveys"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.surveysHeight,this.surveysWidth,this.surveysParameters,center); 
  } // end    
  magnetClass.prototype.surveysPage=popSurveys; 
  

  // pop tips 
  function popTips(page,name,center) { 
    if(name == null) { name="tips"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.tipsHeight,this.tipsWidth,this.tipsParameters,center); 
  } // end    
  magnetClass.prototype.tipsPage=popTips; 
  

  // pop slideshows 
  function popSlideshows(page,name,center) { 
    //slideshows.launch(page); 
    if(name == null) { name="tips"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.slideshowsHeight,this.slideshowsWidth,this.slideshowsParameters,center); 
  } // end    
  magnetClass.prototype.slideshowsPage=popSlideshows; 
  

  // pop videos 
  function popVideos(page,name,center) { 
    if(name == null) { name="videos"; } 
    if(center == null) { center=true; } 
    this.generalPops(page,name,this.videosHeight,this.videosWidth,this.videosParameters,center); 
  } // end    
  magnetClass.prototype.videosPage=popVideos; 


  

  // update opener window ... 
  function updateOpener(href,close) { 
	if(href.indexOf('gasl') > 9) { href=href.substring(0,href.indexOf('gasl'))+"so"; } 
    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; 
  
  


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


  // make this your home page ... 
  function makeThisYourHomePage(page) { 
    var homePageHref="http://"+location.host+"/"; 
    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; 
  
  


  // bookmark this page ... 
  function bookmarkThisPage(page,title) { 
    if(page == null) { page="http://"+location; } 
    if(title == null) { if(document.title) { title=document.title; } } 
    if( document.all && navigator.userAgent.indexOf("Mac")<0 ) { external.AddFavorite(page,title); } 
    else { alert(" You can bookmark this page by selecting CONTROL-D"); } 
  } // end    
  magnetClass.prototype.bookmarkThisPage=bookmarkThisPage;  
  
   

  // 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; 



  
  // 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; 
  
  
  
  /* flash dectective */   
  function flashDetective() { 
    if(this.skipFlashDetection != false) { return; } 
    if (navigator.plugins && navigator.plugins.length) { 
      for (x=0; x < navigator.plugins.length; x++) { 
        if (navigator.plugins[x].name.indexOf('Shockwave Flash') != -1) { 
          this.flashInstalled = true; 
          break; 
        } 
      } 
    } 
    else if (window.ActiveXObject) { 
      for (x = 2; x <= 20; x++) { 
	    try { 
          oFlash = eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash." + x + "');"); 
          if(oFlash) { this.flashInstalled = true; } 
        } 
        catch(e) {} 
      } 
    } 
  } // end 
  magnetClass.prototype.detectFlash=flashDetective; 
  
  
  
  
  
  // insert flash into page ... 
  function insertFlash(path,height,width,background) { 
    
	this.detectFlash(); 
    
	if(this.flashInstalled == false) { 
	  
	  var graphic=path.substring(0,path.indexOf('.swf'))+this.flatSuffix+"."+this.flatExtension; 
	  
      document.write('' + 
      '<img src="'+graphic+'">' + 
      '<br>' + 
      '' ); 
	  
	} 
	
	else { 
	  
      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.flash=insertFlash; 
  
  
  
  
  
  
  
  
  
  

