function DetectBrowser()
{
	

		if (!document.all || window.opera) 
		{
			var cssFolder = './css/';
		}
		else 
		{
			var rv = -1;
			var ua = navigator.userAgent;
			var re = new RegExp ("MSIE ([0-9]{1,}[\.0-9]{0,})");
			
			if (re.exec(ua) != null ) rv = parseFloat(RegExp.$1 );
			//alert(rv);
			if (rv < 8 ) 
			{
				document.writeln('<link rel="stylesheet" type="text/css" href="./css/ie6compat/main.css" />');	
			}

		}
	
		
}
function sendButtonInfo(on0,os0,hosted_button_id)
{

	var newWin = window.open();
	newWin.document.writeln('<html>');
	newWin.document.writeln('<head>');
	newWin.document.writeln('<title>PayPal - Another Level Coaching</title>');
	newWin.document.writeln('<body>');
	newWin.document.writeln('<form name="pay" id="pay" action="https://www.paypal.com/cgi-bin/webscr" method="post">');
	newWin.document.writeln('<input type="hidden" name="on0" value="' + on0 + '" />');
	newWin.document.writeln('<input type="hidden" name="cmd" value="_s-xclick">');
	newWin.document.writeln('<input type="hidden" name="hosted_button_id" value="' + hosted_button_id + '">');

	newWin.document.writeln('<input type="hidden" name="os0" value="' + os0 + '" />');
	newWin.document.writeln('<input type="hidden" name="currency_code" value="USD" />');
	newWin.document.writeln('</form>');
	newWin.document.writeln('</body>');
	newWin.document.writeln('<html>');
	newWin.document.forms["pay"].submit();
	newWin.focus();
	
}

function info(url)
{
	var win = window.open('./info/' + url,'info','width=800,height=600,location=0,scrollbars=1,menubar=0,status=0,resizable=0');
	win.focus();
}

DetectBrowser();
