DOM = (document.getElementById) ? true : false;
NS4 = (document.layers) ? true : false;
IE = (document.all) ? true : false;
IE4 = IE && !DOM;
Mac = (navigator.appVersion.indexOf("Mac") != -1);
IE4M = IE4 && Mac;
IsFullCSS = (DOM || (IE4 && !IE4M));

function pageLoad(){
  status='Pigskin.com'
  //shared javascript
}
  
//opens a scrollable, non-resizable window for news article. All subsequent news articles will be opened in same window
function newsWindow(queryStr) {
  var windowID = window.open('/News/NewsWindow.asp?' + queryStr,'NewsWindow','width=550,height=500,scrollbars=yes,address=no,location=no,toolbars=no,resize=yes');
  windowID.focus();
}

//open little logon window
function logonWindow(){
  window.open('/Logon/Logon.asp','Logon_Window','width=250,height=300,directories=no,menubar=no,status=no,scrollbars=no,toolbar=no,location=no,resizable=no');
}
  
//open the PigPoints in a new window
function pigpointsWindow() {
  var windowID = window.open('/ContentIncludes/PigPoints.asp','PigPointsWindow','width=400,height=500,scrollbars=yes,address=no,location=no,toolbars=no,resize=yes');
  windowID.focus();
}

//refresh parent page if logon window has been submitted successfully
function logonRefresh(){
  document.location.reload();
  return true;
}
  
//change page location and return true so little logon window can close
function getURL(path){
  document.location = path;
  return true;
}

//quick link to different week schedules
function QuickLink(form){
  location.href = form.ChangeWeek.options[form.ChangeWeek.selectedIndex].value;
}

//open window to email friends
function emailFriends(){
  window.open('/ContentIncludes/EmailFriends.asp','Email_Friends','width=550,height=400,directories=no,menubar=no,status=no,scrollbars=no,toolbar=no,location=no,resizable=no');
}

function dn(){}
