
/*
 *
 * Copyright (c) 2002 NetXposure, Inc. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of 
 * NetXposure, Inc.  You shall not disclose such Confidential Information 
 * and shall use it only in accordance with the terms of the license 
 * agreement you entered into with NetXposure.
 *
 */

var mediaServer = '/';

appVer = parseInt(navigator.appVersion);
	
isIE = (navigator.appName.indexOf("Explorer") > -1) ? 1 : 0;
isNS = (navigator.appName.indexOf("Netscape") > -1) ? 1 : 0;
isMac = (navigator.userAgent.indexOf("Mac") > -1) ? 1 : 0;
isWin = (navigator.userAgent.indexOf("Win") > -1) ? 1 : 0;
isUnix = (navigator.userAgent.indexOf("Sun") > -1) ? 1 : 0;
isLinux = (navigator.userAgent.indexOf("Linux") > -1) ? 1 : 0;
isIE5Mac = (isMac && isIE && (navigator.appVersion.indexOf('MSIE 5')> -1)) ? 1 : 0;
isNS6 = (isNS && (appVer >= 5));
isDOM1 = document.getElementById;

function printStyleSheet() {	
	var fontSizeArr = new Array('xx-small', 'x-small', 'small', 'medium', 'large', 'x-large', 'xx-large');
	var baseFont = 0;
	var fontFam = 'sans-serif';
	var leading = 150;
	//Set Font Family per platform
	if (isWin) fontFam = 'Verdana,Arial,sans-serif';
	if (isMac) fontFam = 'Verdana,Helvetica,sans-serif';
	if (isUnix) fontFam = 'Verdana,Arial,Helvetica,sans-serif';
	//Set base font for browser
	//Do not change order
	if (isIE) baseFont = 0; //Win IE && Mac IE5 Sun IE
	if (isMac && isIE && (!isIE5Mac)) baseFont = 1; //Mac IE4x
	if ((isMac && isNS)) baseFont = 2; //Mac NS4
	if ((isWin && isNS) || (isMac && isNS6)) baseFont = 1; //Mac NS6 & Win NS4 & NS6
	if (isUnix && isNS) baseFont = 3;
	if (isLinux && isNS) baseFont = 3;
	//Set Text Leading
	if (isMac || (isWin && isNS) || (isLinux && isNS)) leading = 140;
	if (isWin && isNS6) leading = 154;
	if (isUnix && isNS) leading = 110;
	
	var xsmallFont = fontSizeArr[baseFont - 1];	
	var smallFont = fontSizeArr[baseFont];
	var mediumFont = fontSizeArr[baseFont + 1];
	var largeFont = fontSizeArr[baseFont + 2];
	var xLargeFont = fontSizeArr[baseFont + 3];
	if (isNS && (!isNS6)) xLargeFont = fontSizeArr[baseFont + 2];
	
	var str = '';
	
	str += '<style type="text/css">\n';
	str += 'A { color: #2E2E58; }\n';
	str += 'A:HOVER {color:#2E2E58}\n';
	str += 'A:VISITED { color: #2E2E58; }\n';
	str += 'A:LINK { color: #2E2E58; }\n';	
	str += '.bodytext { color:#000000; line-height:' + leading + '%; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.bodytextwhite { color:#ffffff; line-height:' + leading + '%; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.smallbody { color:#000000; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.xsmallbody { color:#000000; font-size:' + xsmallFont + '; font-family:' + fontFam + '; }\n';
	str += '.smallbodywhite { color:#ffffff; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.footerTextGray { color:#666666; font-size:' + smallFont + '; font-family:' + fontFam + '; line-height:' + leading + '%; }\n';
	str += '.error  { color:#cc0033; font-size:' + mediumFont + '; font-family:' + fontFam + '; }\n';
	str += '.label { color:#000000; font-weight: bold; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.data { color:#000000; font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.spacer { font-size:' + smallFont + '; font-family:' + fontFam + '; }\n';
	str += '.halfspace { font-size:' + xsmallFont + '; font-family:' + fontFam + '; }\n';
	str += '.Title { color:#2E2E58; font-weight: bold; font-size:' + largeFont + '; font-family:' + fontFam + '; }\n';
	str += '.smallTitle { color:#2E2E58; font-weight: bold; font-size:' + mediumFont + '; font-family:' + fontFam + '; }\n';
	str += '.whiteTitle { color:#FFFFFF; font-weight: bold; font-size:' + largeFont + '; font-family:' + fontFam + '; }\n';
	str += '</style>\n';



	
	//print in style sheet
	document.write(str);
	//Empty to release memory
	str = '';
}


/** ***************************************************************************
 * 	
 */

