/**
 * ...
 * @author Nicola Gasco - Vergani&Gasco s.r.l.
 */

function trace(target) {
	
	try {
		console.log(target);
	}
	catch (e) {
		alert(target);
	}
	
}

//var stage = stage || {};
//stage.__defineGetter__("stageWidth", function() { return window.innerWidth; });
//stage.__defineGetter__("stageHeight", function() { return window.innerHeight; });







var VG = VG || {};
VG.utils = VG.utils || {};


VG.utils.pageWidth = function() {

	var w;
	if (window.innerWidth) {	
		w = window.innerWidth;
	}
	else {
		w = document.documentElement.clientWidth;
	}
	return w;
}

VG.utils.pageHeight = function() {
	
	var h;
	if (window.innerHeight) {
		h = window.innerHeight;
	}
	else {
		h = document.documentElement.clientHeight;
	}
	return h;
}

