// Browser & Platform Variables
var platform = navigator.platform.substr(0,3);
var browser = navigator.appName;
var shortVersion = navigator.appVersion.substr(0,1);
var longVersion = navigator.appVersion;


// Function to Print out Font Class Styles For All Browsers

function fontStyles() {
	document.write('<style type="text/css">\n')
	for (var i = 0; i < pageStyles.length; i++) {
		for (var j = 0; j < eval('pageStyles[' + i + '].length;'); j++) {
			if(pageStyles[i][j]) {
				if(j==0) {
					document.write('.' + pageStyles[i][j] + ' { ');
				} else if (j==1) {
					document.write('color : ' + pageStyles[i][j] + '; ');
				} else if(j==2) {
					var fontSize = pageStyles[i][j];
					newSize =Number(fontSize);
					if (platform == 'Mac') {
						if (((browser == 'Microsoft Internet Explorer') && (longVersion != '4.0 (compatible; MSIE 5.0; Macintosh; I; PPC)')) || ((browser == 'Netscape') && (shortVersion < 5))) {
							newSize = newSize + 3;
						} else if ((browser == 'Netscape') && (shortVersion < 7)) {
							newSize = newSize + 2;
						} 
					}
					document.write('font : ' + newSize + 'pt');
				} else if(j==3) {
					document.write('/' + pageStyles[i][j] + '');
				} else if(j==4) {
					document.write(' ' + pageStyles[i][j] + '');
				} else if(j==5) {
					document.write('; text-decoration : ' + pageStyles[i][j] + '; ');
				} else if(j==6) {
					document.write('font-weight : ' + pageStyles[i][j] + '; ');
				} else if(j==7) {
					document.write('background-color : ' + pageStyles[i][j] + '; ');
				} else if(j==8) {
					document.write('padding: ' + pageStyles[i][j] + '; ');
				}
			}
		}
		document.write('}\n\n');
	}
	document.write('</style>\n\n');
	return true;	
}



fontStyles();

// Function to Assign the relative path to images and links
if (whichLevel == 0) {
	var path = '';
} else if (whichLevel == 1) {
	var path = '../';
} else if (whichLevel == 2) {
	var path = '../../';
}




aboutOn = new Image();
aboutOn.src = "" + path +"images/about_on.gif";
aboutOff = new Image();
aboutOff.src = "" + path +"images/about_off.gif";

servicesOn = new Image();
servicesOn.src = "" + path +"images/services_on.gif";
servicesOff = new Image();
servicesOff.src = "" + path +"images/services_off.gif";

clientsOn = new Image();
clientsOn.src = "" + path +"images/clients_on.gif";
clientsOff = new Image();
clientsOff.src = "" + path +"images/clients_off.gif";

loginOn = new Image();
loginOn.src = "" + path +"images/login_on.gif";
loginOff = new Image();
loginOff.src = "" + path +"images/login_off.gif";


// Image replace On Function	
function on(pic) {
	if (document.images) { 
		if ((browser == 'Netscape') && (shortVersion < 5)) 
		{
			document.images[pic].src = eval(pic + 'On.src');
		}
		else
		{
			eval('document.images[pic].src = ' + pic + 'On.src');
		}
	}
}
        

// Image replace Off Function	
function off(pic) {     
	if(document.images) {
		if ((browser == 'Netscape') && (shortVersion < 5)) 
		{
			document.images[pic].src = eval(pic + 'Off.src');
		}
		else
		{
			eval('document.images[pic].src = ' + pic + 'Off.src');
		}
	}	
}




		