function consoleDebug(message){
	if(window.console && window.console.debug) {
		window.console.debug(message);
	}
};

function consoleInfo(message){
	if(window.console && window.console.info) {
		window.console.info(message);
	}
};

function consoleWarn(message){
	if(window.console && window.console.warn) {
		window.console.warn(message);
	}
};

function consoleError(message){
	if(window.console && window.console.error) {
		window.console.error(message);
	}
};

function getStageHeight(){
	var height = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		height = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		height = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		height = document.body.clientHeight;
	}
	
	return height;

}

function getStageWidth(){
	var width = 0;
	
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		width = window.innerWidth;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		width = document.documentElement.clientWidth;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		width = document.body.clientWidth;
	}
	
	return width;

}
