

function getPlatform() {
	var MACINTOSH = false;
	if (navigator.appVersion.indexOf("Mac",0) != -1 && !document.getElementById) MACINTOSH = true;
	return MACINTOSH;
}

function getStyleSheet() {
	var styleSheet = "common";
	if (getPlatform()) styleSheet = "macClassic";
	return styleSheet;
}

function locationTranslator(uri,targetFrame) {
	var tF = "";
	if (targetFrame) tF = targetFrame;
	else tF = top;
	if (uri != "") tF.location.href = window.location.protocol + "//" + window.location.host + uri;
}

var initWindowWidth = window.innerWidth;
var initWindowHeight = window.innerHeight;
function refreshRendering() {
	if (document.layers) {
		if (initWindowWidth != window.innerWidth || initWindowHeight != window.innerHeight) location.reload();
	}
}		

var layerId = false;
function getLayerId(objet) { //ver.1.3.1
	if (layerId[objet] && document.layers) return eval("document.layers[\""+ layerId[objet] +"\"]");
	else return false;
}

var imgsrc = false;
var imgObjet = false;
function imageSwap(objet,status) { //ver.1.3
	if (!!imgsrc && !!imgObjet) {
		if (!getLayerId(objet)) document.images[objet].src = imgObjet[objet][status].src;
		else  getLayerId(objet).document.images[objet].src = imgObjet[objet][status].src;
	}
}

var clock = null;
function setTimmer() {
	clock = setInterval("gearBox()", 10);
}

function releaseTimmer() {
	clearInterval(clock);
}

function quartz(gear) {
	this.set = setTimmer;
	this.release = releaseTimmer;
}

function timeLine(engine,counter) {
	this.engine = engine;
	this.counter = counter;
}
