// WAI-ARIA Skiptarget javaascript
//
// put following Javascript after the page has finished loading (by using jQuery or using a <script> tag at the bottom of the page before </body>. 
// This is to ensure webkit based browsers will go to the proper tabbing point.
//
//<![CDATA[
var is_webkit = navigator.userAgent.toLowerCase().indexOf('webkit') > -1;
var is_opera = navigator.userAgent.toLowerCase().indexOf('opera') > -1;
if(is_webkit || is_opera) 
{
 var target = document.getElementById('skiptarget');
 target.href="#skiptarget";
 target.innerText="Start of main content";
 target.setAttribute("tabindex" , "0");
 document.getElementById('skiplink').setAttribute("onclick" , "document.getElementById('skiptarget').focus();");
 
 var navtarget = document.getElementById('skipnavtarget');
 navtarget.href="#skipnavtarget";
 navtarget.innerText="";
 navtarget.setAttribute("tabindex" , "0");
 document.getElementById('skipnavlink').setAttribute("onclick" , "document.getElementById('skipnavtarget').focus();");
}
//
