
/* AJAX Functions */
jx={getHTTPObject:function(){var A=false;if(typeof ActiveXObject!="undefined"){try{A=new ActiveXObject("Msxml2.XMLHTTP")}catch(C){try{A=new ActiveXObject("Microsoft.XMLHTTP")}catch(B){A=false}}}else{if(window.XMLHttpRequest){try{A=new XMLHttpRequest()}catch(C){A=false}}}return A},load:function(url,callback,format){var http=this.init();if(!http||!url){return }if(http.overrideMimeType){http.overrideMimeType("text/xml")}if(!format){var format="text"}format=format.toLowerCase();var now="uid="+new Date().getTime();url+=(url.indexOf("?")+1)?"&":"?";url+=now;http.open("GET",url,true);http.onreadystatechange=function(){if(http.readyState==4){if(http.status==200){var result="";if(http.responseText){result=http.responseText}if(format.charAt(0)=="j"){result=result.replace(/[\n\r]/g,"");result=eval("("+result+")")}if(callback){callback(result)}}else{if(error){error(http.status)}}}};http.send(null)},init:function(){return this.getHTTPObject()}}

/* Badge HTML */
var badgeHtml = '<div id="hawksbanner"><a href="http://www.oncourtonline.com" target="_blank"><img border="0" src="http://my.oncourtonline.com/assets/hawks_banner_logo.jpg"/></a></div><p class="headline">Skills2Score<sup>sm</sup> Team Systems</p><br /><br /><div id="nav_box2"><a href="http://my.oncourtonline.com/register-team.php?orderType=Silver" >Silver Sign-up</a>&nbsp;|&nbsp;<a href="http://my.oncourtonline.com/register-team.php?orderType=Gold" >Gold Sign-up</a>&nbsp;|&nbsp;<a href="http://my.oncourtonline.com/account/login.html" >Login</a></div><div id="nav_box"><a name="navigation" id="myHeader1" class="nav" href="javascript:showonlyone(1); javascript:livetab(1);" >Overview</a>&nbsp;|&nbsp;<a name="navigation" id="myHeader2" class="nav" href="javascript:showonlyone(2); javascript:livetab(2);" >Features</a>&nbsp;|&nbsp;<a name="navigation" id="myHeader3" class="nav" href="javascript:showonlyone(3); javascript:livetab(3);" >FAQs</a>&nbsp;|&nbsp;<a name="navigation" id="myHeader4" class="nav" href="javascript:showonlyone(4); javascript:livetab(4);" >Samples</a></div><br /><div name="newboxes" id="box1">	<div id="main_box">        <div id="vt_pic"><img border="0" src="http://my.oncourtonline.com/assets/packages.png" usemap="#packages" class="package_image" />			<map name="packages">                <area shape="rect" coords="7,8,157,191" href="http://my.oncourtonline.com/register-team.php?orderType=Silver" />                <area shape="rect" coords="174,8,324,191" href="http://my.oncourtonline.com/register-team.php?orderType=Gold" />                <area shape="rect" coords="342,8,492,191" href="http://www.oncourtonline.com/organizations/skills2score-league" />			</map>		</div>        <div id="thumb"><img border="0" src="http://my.oncourtonline.com/assets/website_thumb.png" width="300"/></div>        <div id="main_box_text">        	<ul class="main_box_list">            	<li>Accelerate Player Development - Get Better Faster</li>                <li>Online video library of drills</li>                <li>Effective for all skill levels</li>                <li>Proven with thousands of players over the past decade</li>            </ul>        </div>    </div>    <div id="secondary_box">        <div id="text2">            <ul class="secondary_box_list">                <li class="text_line1">					<div class="image1"></div>					Cutting Edge<br />					<p class="sub_text">Don&#39t just teach your players plays this year; teach them how to play - Great Footwork - More Body Control - Better Balance. This is an international approach to improving player&#39s skills</p>				</li>                <li class="text_line2">					<div class="image2"></div>					Easy to use and accessible<br />					<p class="sub_text">Instantly available online video-based instruction puts our coaching staff at your team&#39s fingertips! Even access practice plans on your mobile device</p>				</li>                <li class="text_line3">					<div class="image3"></div>					Get organized. Stay consistent<br />					<p class="sub_text">Build a common development philosophy amongst your coaching staff. Consistently reinforce how to improve with all your players</p>				</li>            </ul>        </div>        <div id="video">            <center><object width="320" height="275"><param name="movie" value="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=d5c964e2f8caa737b1706b01987939da&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1&autoplay=0"></param><param name="allowScriptAccess" value="always"></param><param name="allowNetworking" value="all"></param><param name="allowFullScreen" value="true"></param><embed src="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=d5c964e2f8caa737b1706b01987939da&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1&autoplay=0" type="application/x-shockwave-flash" allowscriptaccess="always" allownetworking="all" allowfullscreen="true" width="320" height="275"></embed></object>            </center>        </div>    </div></div><div name="newboxes" id="box2"><!-- XXXXXXXXXXXXXXXXXX CHART START XXXXXXXXXXXXXXXXXXXXXXX --><div id="container" style="background-color:transparent;">    <table class="newpricingtable" cellpadding="0" cellspacing="0">        <tr>            <th class="col3">              <div class="colheadpricing">Silver<span class="permonth"><sup> <a href="#" class="tooltip">(?)<span>Parks &amp; Rec - Middle School - League - Church - YMCA - CYO - JCCs - PAL</span></a></sup></span><br /><br /><span class="price">$45/Team</span>            </th>            <th class="col4 highlightrowtop">                <div class="feature">&nbsp;</div>			</th>            <th class="col5">                <div class="colheadpricing">Gold<span class="permonth"><sup> <a href="#" class="tooltip">(?)<span>High-School - Travel - Club</span></a></sup></span><br /><br /><span class="price">$125/Team</span>            </th>        </tr>        <tr>          <td height="35" class="pricingtop2 check_left">&nbsp;</td>          <td class="highlightcol highlightrowmid big_header">Coaches Access<br><br>		  <span class="highlightcol highlightrowmid main_header">Coaches Online Training Courses</span>		  </td>          <td height="35" class="pricingtop2 check_left">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom"><span class="greentext col4right "><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></span></td>          <td class="highlightcol highlightrowbottom">Grade specific Coach Training Course (1.5 hours)</td>          <td class="greentext col4right "><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>            <td class="col2bottom">&nbsp;</td>          <td class="highlightcol highlightrowbottom">Advanced Skills &amp; Fundamentals Coach Training Course (3.5 hours)</td>            <td class="greentext col4right "><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>      </tr>        <tr>            <td class="pricingtop2 check_left">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header">Virtual Trainer Access</td>            <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>            <td class="col2bottom"><span class="pricingtop2"><center>4 months</center></span></td>          <td class="highlightcol highlightrowbottom">Duration</td>            <td class="col4right"><span class="pricingtop2"><center>6 months</center></span></td>      </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left">&nbsp;</span></td>          <td class="highlightcol highlightrowbottom">Complete video library</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left">&nbsp;</span></td>          <td class="highlightcol highlightrowbottom">Daily workouts and practice plans</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header">On Court Coach Manual</td>          <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          <td class="highlightcol highlightrowbottom">Grade specific Coach Manual</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="col2bottom">&nbsp;</td>          <td class="highlightcol highlightrowbottom">Gold coach manual</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          <td class="highlightcol highlightrowbottom">Mobile access to practice plans and drill videos</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header">Coaches&#39 Hot Line<a href="#" class="tooltip">(?)<span>Talk directly with Kevin Cantwell, former Georgia Tech Assistant Head Coach about methods and techniques of using the Virtual Trainer, coaching philosophy, and more.</span></a></td>          <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom">&nbsp;</td>          <td class="highlightcol highlightrowbottom">Speak directly with an On Court Coach</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>		<tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header"></td>          <td class="pricingtop col4right">&nbsp;</td>		</tr>        <tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid big_header">Players Access<br /><br />          <span class="highlightcol highlightrowmid main_header">Virtual Trainer Access</span></td>          <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2"><center>4 months</center></span></td>          <td class="highlightcol highlightrowbottom">Duration</td>          <td class="col4right"><span class="pricingtop2"><center>6 months</center></span></td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2"></span></td>          <td class="highlightcol highlightrowbottom">Complete video library</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="col2bottom">&nbsp;</td>          <td class="highlightcol highlightrowbottom">Daily workouts and practice plans</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          </tr>        <tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header">"In The Paint"</td>          <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          <td class="highlightcol highlightrowbottom">Monthly Digital Magazine</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="pricingtop2">&nbsp;</td>          <td class="highlightcol highlightrowmid main_header">Parent Information</td>          <td class="pricingtop col4right">&nbsp;</td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          <td class="highlightcol highlightrowbottom">Parent guide to youth basketball</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>        <tr>          <td class="col2bottom"><span class="pricingtop2 check_left"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>          <td class="highlightcol highlightrowbottom">Parent orientation video</td>          <td class="col4right"><span class="pricingtop2 check_right"><img src="http://my.oncourtonline.com/assets/check.gif" border="0" /></span></td>        </tr>      	<tr>   		 <td class="col2end">&nbsp;</td>		 <td class="highlightrowend col2end">&nbsp;</td>		 <td class="col2end">&nbsp;</td>		</tr>	</table></div><!-- XXXXXXXXXXXXXXXXXX CHART END XXXXXXXXXXXXXXXXXXXXXXX --></div><div name="newboxes" id="box3"><p class="bodycopy"><h3>Frequently Asked Questions:</h3><ul style="list-style:none;">	<li class="question">Q: What is the standard duration for the Skills2Score<sup>sm</sup> Gold Team System:</li>	<li class="answer"><strong>A: </strong>Both players and coaches have access to all of the tools for 6 months.</li>	<li>&nbsp;</li>	<li class="question">Q: What is the standard duration for the Skills2Score<sup>sm</sup> Silver Team System:</li>	<li class="answer"><strong>A: </strong>Both players and coaches have access to all of the tools for 4 months.</li>	<li>&nbsp;</li>	<li class="question">Q: How many coaches can access the Skills2Score<sup>sm</sup> Gold or Silver Team System?</li>	<li class="answer"><strong>A: </strong>2 coaches.</li>	<li>&nbsp;</li>	<li class="question">Q: How many players can access the Skills2Score<sup>sm</sup> Gold or Silver Team System?</li>	<li class="answer"><strong>A: </strong>15 players.</li>	<li>&nbsp;</li>	<li class="question">Q: If I have any questions about the basketball curriculum, is there someone available to help me?</li>	<li class="answer"><strong>A: </strong>Yes, the Skills2Score<sup>sm</sup> Gold curriculum is different from what most coaches know about teaching the fundamentals.  Kevin Cantwell, former Associate Head Coach at Georgia Tech, will be happy to answer questions and offer advice for how you can use our program to get your team better.</li>	<li>&nbsp;</li>	<li class="question">Q: Do you ever provide hands-on clinics for our teams or coaches?</li>	<li class="answer"><strong>A: </strong>Yes, we have a special clinic format we conduct for either players or coaches. Contact us for details: <a href="mailto:ralacqua@oncourtonline.com">ralacqua@oncourtonline.com</a>.</li>	<li>&nbsp;</li>	<li class="question">Q: Can I keep my Virtual Trainer subscription going after the season?</li>	<li class="answer"><strong>A: </strong>Yes, once your team subscription ends you always have the option of purchasing a virtual trainer subscription individually. Please login to your account page and scroll to the bottom to view available packages for purchase.</li>	<li>&nbsp;</li>	<li class="question">Q: What if I have more than 2 coaches or 15 players on my team?</li>	<li class="answer"><strong>A: </strong>If you want to add more than 2 coaches or 15 players to a team, you will have to purchase an additional team system.</li>	<li>&nbsp;</li>	<li class="question">Q: Can I use the curriculum to run a camp?</li>	<li class="answer"><strong>A: </strong>Absolutely!  We have even put together an entire 4 day camp curriculum and instruction manual. Campers can even view the camp curriculum before camp even begins. Contact us for details: <a href="mailto:ralacqua@oncourtonline.com">ralacqua@oncourtonline.com</a>.</li></ul></div><div name="newboxes" id="box4"><div style="width:99%;" id="extra_text"><p class="bodycopy"><div id="samples_box">	<div id="video1">		<span class="samples_text">Virtual Trainer Preview Video</span><br>		<object width="320" height="275"><param name="movie" value="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=f7880bd0c1aa78b3274c0c22d7ad8e6f&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowNetworking" value="all"></param><param name="allowFullScreen" value="true"></param><embed src="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=f7880bd0c1aa78b3274c0c22d7ad8e6f&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1" type="application/x-shockwave-flash" allowscriptaccess="always" allownetworking="all" allowfullscreen="true" width="320" height="275"></embed></object>	</div>	<div id="video2">		<span class="samples_text">Coach Certification Tutorial</span><br><object width="320" height="275"><param name="movie" value="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=f91c6d9570c89c02ffe7f59310a3be1e&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1"></param><param name="allowScriptAccess" value="always"></param><param name="allowNetworking" value="all"></param><param name="allowFullScreen" value="true"></param><embed src="http://admin.endavomedia.com/embed/type=2&hash=b1ca23d6da983d656432ba5cd1a1a7ee&exactlocation=1&mediahash=f91c6d9570c89c02ffe7f59310a3be1e&basecolor=000000&fontcolor=FFFFFF&width=320&height=275&aspectratio=1" type="application/x-shockwave-flash" allowscriptaccess="always" allownetworking="all" allowfullscreen="true" width="320" height="275"></embed></object>	</div></div><br><br><div id="samples_box">	<div id="in_the_paint">		<span class="samples_text">September "In the Paint"</span><br>		<a href="http://my.oncourtonline.com/DigitalDocs/ITP-Sept09/pageflip.html" target="_blank"><img src="http://my.oncourtonline.com/assets/in_the_paint_thumb.png" border="0"></a>	</div>	<div id="manuals">		<span class="samples_text">Library of Guides &amp; Manuals (Excerpts)</span><br>		<a href="http://my.oncourtonline.com/DigitalDocs/ManualExerpts/pageflip.html" target="_blank"><img src="http://my.oncourtonline.com/assets/manuals.png" border="0"></a>	</div></div></p></div></div></div></div>';

function renderBadge(id){

	// Load CSS
	stylesheet = document.createElement("link");
	stylesheet.rel = "stylesheet";
	stylesheet.type = "text/css";
	stylesheet.href = "http://my.oncourtonline.com/api/css/" + id + ".css";
	stylesheet.media = "all";
	document.lastChild.firstChild.appendChild(stylesheet);	

	document.getElementById("oco_badge").innerHTML = badgeHtml;

}

function showonlyone(thechosenone) {
      var newboxes = document.getElementsByTagName("div");
            for(var x=0; x<newboxes.length; x++) {
                  name = newboxes[x].getAttribute("name");
                  if (name == 'newboxes') {
                        if (newboxes[x].id == 'box'+thechosenone) {
                        newboxes[x].style.display = 'block';
                  }
                  else {
                        newboxes[x].style.display = 'none';
                  }
            }
      }
}
function livetab(thechosenone) {
    var navigation = document.getElementsByTagName("a");
          for(var x=0; x<navigation.length; x++) {
                name = navigation[x].getAttribute("name");
                if (name == 'navigation') {
                      if (navigation[x].id == 'myHeader'+thechosenone) {
                      navigation[x].style.color = '#333333';
                }
                else {
                      navigation[x].style.color = '';
                }
          }
    }
}
