function appendScript(t,ty,n,s){
  var sc=document.createElement('script');
  sc.type='text/javascript';
  sc.id=n;
  if(ty=='remote'){
    sc.src=s;
    (document.getElementsByTagName(t)[0]).appendChild(sc);
  }
  if(ty=='inline'){
    (document.getElementsByTagName(t)[0]).appendChild(sc);
    sc.innerHTML=s;
  }
}
function initScripts(){
  /*@cc_on @*/
  /*@if (@_win32)
  appendScript('body','remote','loader','http://assets.slate.wvu.edu/resources/295/1261502176.js');
  return
  /*@end @*/
  appendScript('head','inline','loader','detectJsLib();appendEventTracking();')
}
function detectJsLib(){
  try {
    if (typeof jQuery.fn.jquery != 'undefined') {
      jquery=true;
    }
  }
  catch(e){
    jquery=false;
  }
  if (!jquery){
    appendScript('head','remote','jQmin','http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js')
  }
}
function appendEventTracking(){
  appendScript('head','remote','gaEvent','http://assets.slate.wvu.edu/resources/295/1262703130.js')
}
function load(a){for(var i in a){eval(a[i])}}
try{window.addEventListener('load',initScripts,false)}
catch(err){window.attachEvent('onload',initScripts)}

