/*
var Page = function(){
	this.currentPage = getPage(location);	
}

var myPage = new Page();
var timer = setTimeout("checkPage()", 500);
var isie = (typeof document.all != 'undefined' && typeof window.opera == 'undefined' && typeof navigator.vendor != 'KDE');

function checkPage(){	
	var newPage = getPage(location);
	
	if (myPage.currentPage != newPage){	
		getFlashMovie("flash-content").sendToAS(newPage);		
	} else {
		
	}
	
	timer = setTimeout("checkPage()", 500);
}

function getPage(src){
	if (isie){
		//window.location.hash = "value";
		//window.location.replace("value")
		//trace(location.hash);	
		//document.location.href = document.location.href.replace('/#.* /, '');
	}
	
	var hash = src.hash;
	var page = hash.substring(1, hash.length);
	
	return page.toLowerCase();
}

function getFlashMovie(movieName) {
  var isIE = navigator.appName.indexOf("Microsoft") != -1;
  return (isIE) ? window[movieName] : document[movieName];
}

// calling from actionscript
function sendToJS(page){
	location.hash = page;
	myPage.currentPage = page;
}

function traceWithJS(msg){
	trace(msg);	
}


function trace(msg){
	if (window.console && window.console.log)
	window.console.log(msg);
};

$(document).ready(function(){
	
	var $anchors = $('body a');
	$anchors.each(function(){
		var $a = $(this);
		$a.click(function(){
			var newPage = getPage(this);
			getFlashMovie("flash-content").sendToAS(newPage);
		});		
	});		
});

*/

// calling from actionscript
function sendToJS(page){
	location.hash = page;
	myPage.currentPage = page;
}

function traceWithJS(msg){
	trace(msg);	
}


function trace(msg){
	if (window.console && window.console.log)
	window.console.log(msg);
};