function checkPrint(){

	var outValue = true;
	var navVersion = navigator.appVersion;
	var pos = navVersion.indexOf('MSIE');
	if(pos >= 0){
		navVersion = parseFloat(navVersion.substring(pos + 4));
	}
	else{
		navVersion = parseFloat(navVersion);
	}
	/*
	make sure this isn't windows, it is microsoft IE AND version < 5.5
	*/
	if(navigator.platform.indexOf('Win') < 0 && navigator.appName.indexOf('Microsoft') == 0 && navVersion < 5.5){
		outValue = false;
	}
	
	return outValue;
}

function printGame(){
	var bottomFrame = parent.frames['libraryBottom'];
	
	if(checkPrint()){
		window.print();
	}
	else{
		alert('Use the built in print function of your browser');
	}
}

function printBottom(){
	var bottomFrame = parent.frames['content'];
	
	if(checkPrint()){
		bottomFrame.focus();
		bottomFrame.print();
	}
	else{
		alert('Use the built in print function of your browser');
	}
}
function printWin(){
	alert(checkPrint());
	if(checkPrint()){
		window.print();
	}
	else{
		alert('Use the built in print function of your browser');
	}
}	

