/*	flash.js
 *	------------------------------------------------------------ *
 *	@desc: utils accessible to the flash / swf files of the site
 *	------------------------------------------------------------ */
 	var onLoadStack = new Array();
	
	function onLoad()
	{
		this.focus();
	}
	
	function setDocumentTitle(t){
		document.title = t;
	}
	function resize(w,h){
		window.moveTo(0,0);
		var x = (screen.width-w)/2;
		var y = (screen.height-h)/2;
		window.resizeTo(x,y);
	}
	function popWindow( location, pname, w, h, scrollbars )
	{
		var width	= w;
		var height 	= h;
		var leftPos	= (screen.width-width)/2;
		var topPos 	= (screen.height-height)/2;
		var scrollbars_default = "no";
		
		if( !scrollbars ) scrollbars = scrollbars_default;
		
		FlashWindow = window.open(location,pname,'toolbars=false, scroll='+scrollbars+', left='+leftPos+',top='+topPos+', width='+width+', height='+height);
		FlashWindow.focus();
	}
	
	function gotoURL( url )
	{
		document.location = url;	
	}