function newWindow(page) {
window.open(page,"hello","toolbar=no,location=no,scrollbars=yes,width=650,height=500,top=50,left=50,resizable=yes");
}



function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


/***********************************
*   http://javascripts.vbarsan.com/
*   This notice may not be removed 
***********************************/

//-- Begin Scroller's Parameters and message -->
//scroller width: change to your own;
var swidth=175;

//scroller height: change to your own;
var sheight=250;

//background color: change to your own; 
var sbcolor="";

//scroller's speed: change to your own;
var sspeed=4;
var restart=sspeed;
rspeed=sspeed;

//text: change to your own

wholemessage='<div align="center" ><a href="http://teamintraining.org/hm_tnt" target="_new"><img src="images/TNTlogo.gif"></a></div>'+'<p><div align="center" ><a href="http://usatriathlon.org" target="_new"><img src="images/usatLogo.gif"></a></div>'+'<p><div align="center" ><a href="http://snappletriteam.com/" target="_new"><img border="0" src="images/snappleTriLogoSm.gif"><br />Snapple Tri Team</a></div>'+'<p><div align="center" ><a href="http://highroadcycles.com" target="_new"><img border="0" src="images/HighRoadCycles-logo.png" width="150" hight="69"><br />High Road Cycles</a></div>'+'<p><div align="center" ><a href="http://www.thejhickey.com" target="_new"><img border="0" src="images/jHickeyLogo.jpg"><br />The J Hickey</a></div>';

//Or you may do a slide show running up any number of images too!
//Preload is recommended (no downloading check) - otherwise you may skip this:
//preload1 = new Image();
//preload1.src = "http://...";
//preload2 = new Image();
//preload2.src = "http://...";
//preload3 = new Image();
//preload3.src = "http://...";
// ...

//if no preloading, replace below '+ preload... +' with the actual Images path "..."

//wholemessage='<img src='+preload1.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload2.src+' width=... height=... alt="..."><br>'+
//'<img src='+preload3.src+' width=... height=... alt="..."><br>'+
//'<img ... >';

//-- end Parameters and message -->

//-- begin: Scroller's Algorithm -->
function goup(){if(sspeed!=rspeed*8){sspeed=sspeed*2;restart=sspeed;}}
function godown(){if(sspeed>rspeed){sspeed=sspeed/2;restart=sspeed;}}
function start(){if(document.getElementById)ns6marquee(document.getElementById('slider'));else if(document.all)iemarquee(slider);else if(document.layers)ns4marquee(document.slider1.document.slider2);}function iemarquee(whichdiv){iediv=eval(whichdiv);iediv.style.pixelTop=sheight;iediv.innerHTML=wholemessage;sizeup=iediv.offsetHeight;ieslide();}function ieslide(){if(iediv.style.pixelTop>=sizeup*(-1)){iediv.style.pixelTop-=sspeed;setTimeout("ieslide()",100);}else{iediv.style.pixelTop=sheight;ieslide();}}function ns4marquee(whichlayer){ns4layer=eval(whichlayer);ns4layer.top=sheight;ns4layer.document.write(wholemessage);ns4layer.document.close();sizeup=ns4layer.document.height;ns4slide();}function ns4slide(){if(ns4layer.top>=sizeup*(-1)){ns4layer.top-=sspeed;setTimeout("ns4slide()",100);}else{ns4layer.top=sheight;ns4slide();}}function ns6marquee(whichdiv){ns6div=eval(whichdiv);ns6div.style.top=sheight;ns6div.innerHTML=wholemessage;sizeup=ns6div.offsetHeight;ns6slide();}function ns6slide(){if(parseInt(ns6div.style.top)>=sizeup*(-1)){ns6div.style.top=parseInt(ns6div.style.top)-sspeed;setTimeout("ns6slide()",100);}else{ns6div.style.top=sheight;ns6slide();}}
//-- end Algorithm -->


function openChart(){
	window.open("trainChart.html","hello","toolbar=no,location=no,scrollbars=yes,width=600,height=400,top=100,left=100,resizable=yes");	
}

