//Find the number of folder deep the current page is - NEEDED FOR ALL PAGES
var PageAddress = location.href.toLowerCase();
var NumberofFolders = PageAddress.split("/").length - 5;
var PathDefine = "";
for (i=0;i<NumberofFolders;i++)
{
PathDefine += "../";
}

var addpath=PathDefine;

//Check to see if CSS is enabled in browser - needed if CSS disabled but Javascript still working
function TestForCSS(){
var cssdisabled = false; // must be proven otherwise
var testcss = document.createElement('div');
testcss.style.position = 'absolute';
document.getElementsByTagName('body')[0].appendChild(testcss);
if (testcss.currentStyle) var currstyle = testcss.currentStyle['position'];
else if (window.getComputedStyle) var currstyle = document.defaultView.getComputedStyle(testcss, null).getPropertyValue('position');
cssdisabled = (currstyle == 'static') ? true : false;
document.getElementsByTagName('body')[0].removeChild(testcss);
return cssdisabled;
}


//Set functions for any browser that doesn't support 'document.all' OR 'document.layers' OR 'document.getElementById'. You get JS errors otherwise
function SetMACFonts(){}
function popdown(){}
function popup(){}
function navlinkon(){}
function TestForAjax(){}
function ElementChange(){}
function clearText(){}
function SetMainHeight(){}
function SwapImg(){}
function SwitchClass(){}
