// JavaScript Document

// Example:
// simplePreload( '01.gif', '02.gif' ); 
function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}


vidclip1_on = new Image();
vidclip1_on.src = "images/index-video-sq-on.jpg"
vidclip1_off = new Image();
vidclip1_off.src = "images/index-video-sq.jpg"
vidclip2_on = new Image();
vidclip2_on.src = "images/index-video-sq-on.jpg"
vidclip2_off = new Image();
vidclip2_off.src = "images/index-video-sq.jpg"
vidclip3_on = new Image();
vidclip3_on.src = "images/index-video-sq-on.jpg"
vidclip3_off = new Image();
vidclip3_off.src = "images/index-video-sq.jpg"
vidclip4_on = new Image();
vidclip4_on.src = "images/index-video-sq-on.jpg"
vidclip4_off = new Image();
vidclip4_off.src = "images/index-video-sq.jpg"
vidclip5_on = new Image();
vidclip5_on.src = "images/index-video-sq-on.jpg"
vidclip5_off = new Image();
vidclip5_off.src = "images/index-video-sq.jpg"
vidclip6_on = new Image();
vidclip6_on.src = "images/index-video-sq-on.jpg"
vidclip6_off = new Image();
vidclip6_off.src = "images/index-video-sq.jpg"
vidclip7_on = new Image();
vidclip7_on.src = "images/index-video-sq-on.jpg"
vidclip7_off = new Image();
vidclip7_off.src = "images/index-video-sq.jpg"

function vidclip1ON(variable) {
document[variable].src = vidclip1_on.src;
}
function vidclip1OFF(variable) {
document[variable].src = vidclip1_off.src;
}
function vidclip2ON(variable) {
document[variable].src = vidclip2_on.src;
}
function vidclip2OFF(variable) {
document[variable].src = vidclip2_off.src;
}
function vidclip3ON(variable) {
document[variable].src = vidclip3_on.src;
}
function vidclip3OFF(variable) {
document[variable].src = vidclip3_off.src;
}
function vidclip4ON(variable) {
document[variable].src = vidclip4_on.src;
}
function vidclip4OFF(variable) {
document[variable].src = vidclip4_off.src;
}
function vidclip5ON(variable) {
document[variable].src = vidclip5_on.src;
}
function vidclip5OFF(variable) {
document[variable].src = vidclip5_off.src;
}
function vidclip6ON(variable) {
document[variable].src = vidclip6_on.src;
}
function vidclip6OFF(variable) {
document[variable].src = vidclip6_off.src;
}
function vidclip7ON(variable) {
document[variable].src = vidclip7_on.src;
}
function vidclip7OFF(variable) {
document[variable].src = vidclip7_off.src;
}



/*****NEW 2008 VIDEOS*********/

vidclip1_new_on = new Image();
vidclip1_new_on.src = "images/index-video-sq-on.jpg"
vidclip1_new_off = new Image();
vidclip1_new_off.src = "images/index-video-sq.jpg"
vidclip2_new_on = new Image();
vidclip2_new_on.src = "images/index-video-sq-on.jpg"
vidclip2_new_off = new Image();
vidclip2_new_off.src = "images/index-video-sq.jpg"
vidclip3_new_on = new Image();
vidclip3_new_on.src = "images/index-video-sq-on.jpg"
vidclip3_new_off = new Image();
vidclip3_new_off.src = "images/index-video-sq.jpg"
vidclip4_new_on = new Image();
vidclip4_new_on.src = "images/index-video-sq-on.jpg"
vidclip4_new_off = new Image();
vidclip4_new_off.src = "images/index-video-sq.jpg"
vidclip5_new_on = new Image();
vidclip5_new_on.src = "images/index-video-sq-on.jpg"
vidclip5_new_off = new Image();
vidclip5_new_off.src = "images/index-video-sq.jpg"
vidclip6_new_on = new Image();
vidclip6_new_on.src = "images/index-video-sq-on.jpg"
vidclip6_new_off = new Image();
vidclip6_new_off.src = "images/index-video-sq.jpg"
vidclip7_new_on = new Image();
vidclip7_new_on.src = "images/index-video-sq-on.jpg"
vidclip7_new_off = new Image();
vidclip7_new_off.src = "images/index-video-sq.jpg"
vidclip8_new_on = new Image();
vidclip8_new_on.src = "images/index-video-sq-on.jpg"
vidclip8_new_off = new Image();
vidclip8_new_off.src = "images/index-video-sq.jpg"
vidclip9_new_on = new Image();
vidclip9_new_on.src = "images/index-video-sq-on.jpg"
vidclip9_new_off = new Image();
vidclip9_new_off.src = "images/index-video-sq.jpg"
vidclip10_new_on = new Image();
vidclip10_new_on.src = "images/index-video-sq-on.jpg"
vidclip10_new_off = new Image();
vidclip10_new_off.src = "images/index-video-sq.jpg"
vidclip11_new_on = new Image();
vidclip11_new_on.src = "images/index-video-sq-on.jpg"
vidclip11_new_off = new Image();
vidclip11_new_off.src = "images/index-video-sq.jpg"
vidclip12_new_on = new Image();
vidclip12_new_on.src = "images/index-video-sq-on.jpg"
vidclip12_new_off = new Image();
vidclip12_new_off.src = "images/index-video-sq.jpg"
vidclip13_new_on = new Image();
vidclip13_new_on.src = "images/index-video-sq-on.jpg"
vidclip13_new_off = new Image();
vidclip13_new_off.src = "images/index-video-sq.jpg"
vidclip14_new_on = new Image();
vidclip14_new_on.src = "images/index-video-sq-on.jpg"
vidclip14_new_off = new Image();
vidclip14_new_off.src = "images/index-video-sq.jpg"
vidclip15_new_on = new Image();
vidclip15_new_on.src = "images/index-video-sq-on.jpg"
vidclip15_new_off = new Image();
vidclip15_new_off.src = "images/index-video-sq.jpg"
vidclip16_new_on = new Image();
vidclip16_new_on.src = "images/index-video-sq-on.jpg"
vidclip16_new_off = new Image();
vidclip16_new_off.src = "images/index-video-sq.jpg"
vidclip17_new_on = new Image();
vidclip17_new_on.src = "images/index-video-sq-on.jpg"
vidclip17_new_off = new Image();
vidclip17_new_off.src = "images/index-video-sq.jpg"
vidclip18_new_on = new Image();
vidclip18_new_on.src = "images/index-video-sq-on.jpg"
vidclip18_new_off = new Image();
vidclip18_new_off.src = "images/index-video-sq.jpg"
vidclip19_new_on = new Image();
vidclip19_new_on.src = "images/index-video-sq-on.jpg"
vidclip19_new_off = new Image();
vidclip19_new_off.src = "images/index-video-sq.jpg"
vidclip20_new_on = new Image();
vidclip20_new_on.src = "images/index-video-sq-on.jpg"
vidclip20_new_off = new Image();
vidclip20_new_off.src = "images/index-video-sq.jpg"
vidclip21_new_on = new Image();
vidclip21_new_on.src = "images/index-video-sq-on.jpg"
vidclip21_new_off = new Image();
vidclip21_new_off.src = "images/index-video-sq.jpg"
vidclip22_new_on = new Image();
vidclip22_new_on.src = "images/index-video-sq-on.jpg"
vidclip22_new_off = new Image();
vidclip22_new_off.src = "images/index-video-sq.jpg"
vidclip23_new_on = new Image();
vidclip23_new_on.src = "images/index-video-sq-on.jpg"
vidclip23_new_off = new Image();
vidclip23_new_off.src = "images/index-video-sq.jpg"
vidclip24_new_on = new Image();
vidclip24_new_on.src = "images/index-video-sq-on.jpg"
vidclip24_new_off = new Image();
vidclip24_new_off.src = "images/index-video-sq.jpg"

function vidclip1_newON(variable) {
document[variable].src = vidclip1_new_on.src;
}
function vidclip1_newOFF(variable) {
document[variable].src = vidclip1_new_off.src;
}
function vidclip2_newON(variable) {
document[variable].src = vidclip2_new_on.src;
}
function vidclip2_newOFF(variable) {
document[variable].src = vidclip2_new_off.src;
}
function vidclip3_newON(variable) {
document[variable].src = vidclip3_new_on.src;
}
function vidclip3_newOFF(variable) {
document[variable].src = vidclip3_new_off.src;
}
function vidclip4_newON(variable) {
document[variable].src = vidclip4_new_on.src;
}
function vidclip4_newOFF(variable) {
document[variable].src = vidclip4_new_off.src;
}
function vidclip5_newON(variable) {
document[variable].src = vidclip5_new_on.src;
}
function vidclip5_newOFF(variable) {
document[variable].src = vidclip5_new_off.src;
}
function vidclip6_newON(variable) {
document[variable].src = vidclip6_new_on.src;
}
function vidclip6_newOFF(variable) {
document[variable].src = vidclip6_new_off.src;
}
function vidclip7_newON(variable) {
document[variable].src = vidclip7_new_on.src;
}
function vidclip7_newOFF(variable) {
document[variable].src = vidclip7_new_off.src;
}
function vidclip8_newON(variable) {
document[variable].src = vidclip8_new_on.src;
}
function vidclip8_newOFF(variable) {
document[variable].src = vidclip8_new_off.src;
}
function vidclip9_newON(variable) {
document[variable].src = vidclip9_new_on.src;
}
function vidclip9_newOFF(variable) {
document[variable].src = vidclip9_new_off.src;
}
function vidclip10_newON(variable) {
document[variable].src = vidclip10_new_on.src;
}
function vidclip10_newOFF(variable) {
document[variable].src = vidclip10_new_off.src;
}
function vidclip11_newON(variable) {
document[variable].src = vidclip11_new_on.src;
}
function vidclip11_newOFF(variable) {
document[variable].src = vidclip11_new_off.src;
}
function vidclip12_newON(variable) {
document[variable].src = vidclip12_new_on.src;
}
function vidclip12_newOFF(variable) {
document[variable].src = vidclip12_new_off.src;
}
function vidclip13_newON(variable) {
document[variable].src = vidclip13_new_on.src;
}
function vidclip13_newOFF(variable) {
document[variable].src = vidclip13_new_off.src;
}
function vidclip14_newON(variable) {
document[variable].src = vidclip14_new_on.src;
}
function vidclip14_newOFF(variable) {
document[variable].src = vidclip14_new_off.src;
}
function vidclip15_newON(variable) {
document[variable].src = vidclip15_new_on.src;
}
function vidclip15_newOFF(variable) {
document[variable].src = vidclip15_new_off.src;
}
function vidclip16_newON(variable) {
document[variable].src = vidclip16_new_on.src;
}
function vidclip16_newOFF(variable) {
document[variable].src = vidclip16_new_off.src;
}
function vidclip17_newON(variable) {
document[variable].src = vidclip17_new_on.src;
}
function vidclip17_newOFF(variable) {
document[variable].src = vidclip17_new_off.src;
}
function vidclip18_newON(variable) {
document[variable].src = vidclip18_new_on.src;
}
function vidclip18_newOFF(variable) {
document[variable].src = vidclip18_new_off.src;
}
function vidclip19_newON(variable) {
document[variable].src = vidclip19_new_on.src;
}
function vidclip19_newOFF(variable) {
document[variable].src = vidclip19_new_off.src;
}
function vidclip20_newON(variable) {
document[variable].src = vidclip20_new_on.src;
}
function vidclip20_newOFF(variable) {
document[variable].src = vidclip20_new_off.src;
}
function vidclip21_newON(variable) {
document[variable].src = vidclip21_new_on.src;
}
function vidclip21_newOFF(variable) {
document[variable].src = vidclip21_new_off.src;
}
function vidclip22_newON(variable) {
document[variable].src = vidclip22_new_on.src;
}
function vidclip22_newOFF(variable) {
document[variable].src = vidclip22_new_off.src;
}
function vidclip23_newON(variable) {
document[variable].src = vidclip23_new_on.src;
}
function vidclip23_newOFF(variable) {
document[variable].src = vidclip23_new_off.src;
}
function vidclip24_newON(variable) {
document[variable].src = vidclip24_new_on.src;
}
function vidclip24_newOFF(variable) {
document[variable].src = vidclip24_new_off.src;
}

/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  Permission granted to use this code 
  as long as this entire notice is included.
*************************************************************************/
function changeContent(id,shtml) {
   if (document.getElementById || document.all) {
      var el = document.getElementById? document.getElementById(id): document.all[id];
      if (el && typeof el.innerHTML != "undefined") el.innerHTML = shtml;
   }
}

var vid7 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video1"><param name="movie" value="movies/svtoa.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/svtoa.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid6 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video1"><param name="movie" value="movies/2005-roush-driver-x.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/2005-roush-driver-x.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid5 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video5"><param name="movie" value="movies/2003-nascar-this-morning.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/2003-nascar-this-morning.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid4 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video4"><param name="movie" value="movies/2003-discovery-performance.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/2003-discovery-performance.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid3 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video3"><param name="movie" value="movies/2001-fiteam-pwr-hwr.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/2001-fiteam-pwr-hwr.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid2 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video2"><param name="movie" value="movies/2000-nascar-2000.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/2000-nascar-2000.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

var vid1 = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="133" title="video1"><param name="movie" value="movies/1996-espn-rpm.swf"><param name="quality" value="high"><param name="bgcolor" value="#EBEBEB"><embed src="movies/1996-espn-rpm.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="170" height="133" bgcolor="#EBEBEB" animationatStart="true"></embed></object></span>';

/*************************/

var vid24_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video24"><param name="movie" value="movies/Tom Sutherland.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Tom Sutherland.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid23_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video23"><param name="movie" value="movies/Russell Smith.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Russell Smith.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid22_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video22"><param name="movie" value="movies/Remi Lanteigne.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Remi Lanteigne.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid21_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video21"><param name="movie" value="movies/Peter Von Moltke_0.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Peter Von Moltke_0.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid20_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video20"><param name="movie" value="movies/Ian Baas.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Ian Baas.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid19_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video19"><param name="movie" value="movies/Dion Von Moltke.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Dion Von Moltke.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid18_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video18"><param name="movie" value="movies/Charles Espenlaub.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Charles Espenlaub.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid17_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video17"><param name="movie" value="movies/Brian Frisselle.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Brian Frisselle.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid16_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video16"><param name="movie" value="movies/Brad Frisselle_0.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Brad Frisselle_0.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid15_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video15"><param name="movie" value="movies/Johannes Van Overbeek.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Johannes Van Overbeek.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid14_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video14"><param name="movie" value="movies/Craig Stanton Interview.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Craig Stanton Interview.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid13_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video13"><param name="movie" value="movies/Charlie Putman Interview.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Charlie Putman Interview.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid12_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video12"><param name="movie" value="movies/Andy Pilgrim Interview.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Andy Pilgrim Interview.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid11_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video11"><param name="movie" value="movies/Mark Webber Interview.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Mark Webber Interview.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid10_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video10"><param name="movie" value="movies/Steve Washburn Interview - HDV.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Steve Washburn Interview - HDV.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid9_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video9"><param name="movie" value="movies/Ron Fellows Interview.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Ron Fellows Interview.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid8_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video8"><param name="movie" value="movies/Harsha Sen.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Harsha Sen.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid7_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video7"><param name="movie" value="movies/Helio Castroneves Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Helio Castroneves Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid6_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video6"><param name="movie" value="movies/Patrick Long Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Patrick Long Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid5_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video5"><param name="movie" value="movies/Jack Yovanov Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Jack Yovanov Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid4_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video4"><param name="movie" value="movies/John Walko Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/John Walko Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid3_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video3"><param name="movie" value="movies/Dino Loles Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Dino Loles Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid2_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video2"><param name="movie" value="movies/Rick Skelton Interview Final.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Rick Skelton Interview Final.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';

var vid1_new = '<span><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="180" height="132" title="video1"><param name="movie" value="movies/Brad Jaeger Interview Final_3.swf"><param name="quality" value="high"><param name="bgcolor" value="#000000"><param name="play" value="true"><param name="autoplay" value="true"><param name="autostart" value="true"><param name="animationatStart" value="true"><embed src="movies/Brad Jaeger Interview Final_3.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="180" height="132" bgcolor="#000000" play="true" autoplay="true" autostart="true" animationatStart="true"></embed></object></span>';



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];}
}

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 nospam (a1,a2,a3,display) {
   var URL= 'mailto:' + a1 + '@' + a2 + '.' + a3;
   if (!display) window.location.href = URL;
   else return URL;
}

function echeck(str) {

		var at="@"
		var dot="."
		var lat=str.indexOf(at)
		var lstr=str.length
		var ldot=str.indexOf(dot)
		if (str.indexOf(at)==-1){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		   return false
		}

		if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		   return false
		}

		if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		    return false
		}

		 if (str.indexOf(at,(lat+1))!=-1){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		    return false
		 }

		 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		    return false
		 }

		 if (str.indexOf(dot,(lat+2))==-1){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		    return false
		 }
		
		 if (str.indexOf(" ")!=-1){
		   alert("Your email address appears incorrect. Please enter it in the format 'abc@xyz.com'")
		    return false
		 }

 		 return true					
	}

function ValidateForm(){
	var emailID=document.theForm.email
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter your email address")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	return true
 }
 
 function Validate_cForm(){
	var emailID=document.cForm.EmailAddress
	var nameID=document.cForm.Name
	var commentID=document.cForm.Comment
	
	if ((emailID.value==null)||(emailID.value=="")){
		alert("Please enter your email address")
		emailID.focus()
		return false
	}
	if (echeck(emailID.value)==false){
		emailID.value=""
		emailID.focus()
		return false
	}
	
	if ((nameID.value==null)||(nameID.value=="")){
		alert("Please enter your name")
		nameID.focus()
		return false
	}
	
	if ((commentID.value==null)||(commentID.value=="")){
		alert("Please enter your comment")
		commentID.focus()
		return false
	}
	return true
 }
 
 
function setCookie(cookieName, cookieValue, cookiePath,  
	cookieExpires)  
	{

	cookieValue = escape(cookieValue);  
	if (cookieExpires == "")  
	{  
	var nowDate = new Date();  
	nowDate.setMonth(nowDate.getMonth() + 6);  
	cookieExpires = nowDate.toGMTString();  
	}  
	 if (cookiePath != "")  
	{  
	cookiePath = ";Path=" + cookiePath;  
	}  

	document.cookie = cookieName + "=" + cookieValue +  
	";expires=" + cookieExpires + cookiePath;
	}

function getCookie(name)  
	{
	var cookieString = document.cookie;  
	var index = cookieString.indexOf(name + "=");  

	if (index == -1)
	{
	return null;  
	}

	index = cookieString.indexOf("=", index) + 1;  
	var endstr = cookieString.indexOf(";", index);  

	if (endstr == -1)
	{
	endstr = cookieString.length;  
	}

	return unescape(cookieString.substring(index, endstr));
	}	
	
function doPopup()
{
 var ezine = getCookie('PPrimePop');
 setCookie('PPrimePop', 'true', '', '');

// if(ezine == '')
// { // Show the popup window
   window.open('subscribe.htm', 'ezineWin', 'width=500,height=400');
// }
}




function Validate(){
 	
	var elem;
	var valid=true;

		
		document.getElementById("ErrorMessage").innerHTML="";
		
		elem=document.getElementById("txtFirstName");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage").innerHTML="Please Enter Your Name.";
			valid=false;
		}
		
		elem=document.getElementById("txtEmail");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage").innerHTML+="<br>Please Enter Email Address.";
			valid=false;
		}else if(!validateEmail(elem.value)) {
			elem.focus();
			document.getElementById("ErrorMessage").innerHTML+="<br>Invalid Email Address, Please Recheck.";
			valid=false;
		}
	
	
	elem=document.getElementById("txtCaptcha");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage").innerHTML+="<br>Please Enter Security Code.";
			valid=false;		
		}
	return valid;
	
 }
 
 function Validate_pop(){
 	
	var elem;
	var valid=true;

		
		document.getElementById("ErrorMessage_pop").innerHTML="";
		
		elem=document.getElementById("txtFirstName_pop");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage_pop").innerHTML="Please Enter Your Name.";
			valid=false;
		}
		
		elem=document.getElementById("txtEmail_pop");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage_pop").innerHTML+="<br>Please Enter Email Address.";
			valid=false;
		}else if(!validateEmail(elem.value)) {
			elem.focus();
			document.getElementById("ErrorMessage_pop").innerHTML+="<br>Invalid Email Address, Please Recheck.";
			valid=false;
		}
	
	
	elem=document.getElementById("txtCaptcha_pop");
		if(elem.value=="") {
			elem.focus();
			document.getElementById("ErrorMessage_pop").innerHTML+="<br>Please Enter Security Code.";
			valid=false;		
		}
	return valid;
	
 }
 
 function validateEmail( strValue) {
 	strValue=trimAll(strValue);
	var objRegExp  = /(^[a-z]([a-z0-9_\.]*)@([a-z_\.]*)([.][a-z]{3})$)|(^[a-z]([a-z0-9_\.]*)@([a-z_\.]*)(\.[a-z]{2,3})(\.[a-z]{2})*$)/i;
  return objRegExp.test(strValue);
}

function trimAll( strValue ) {
	var objRegExp = /^(\s*)$/;
	
		//check for all spaces
		if(objRegExp.test(strValue)) {
		   strValue = strValue.replace(objRegExp, '');
		   if( strValue.length == 0)
			  return strValue;
		}
	
	   //check for leading & trailing spaces
	   objRegExp = /^(\s*)([\W\w]*)(\b\s*$)/;
	   if(objRegExp.test(strValue)) {
		   //remove leading and trailing whitespace characters
		   strValue = strValue.replace(objRegExp, '$2');
		}
	  return strValue;
}

