/** 
 * Javascript Document
 *
 * main.js
 * 
 * Copyright Fusionary Media, 2004
 */ 

/* 
CALL TO CYCLE IS IN JQUERY.CYCLE.JS
*/

function toggleDiv(id)
{
	var disp = document.getElementById(id).style.display;
	var style = 'none'
	if (disp == 'none') 
	{
		style = 'block';
	}
	document.getElementById(id).style.display = style;
}



function spawn(where, width, height, scroll)
{

	/*if ( window.spawnWindow ) {
		window.spawnWindow.close();
	}*/	
	if( window.screen ) {
			spawnWindow = window.open( where, "spawn", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=1,copyhistory=0,width=" + width + " ,height=" + height + " ,top=" + ( (screen.availHeight / 2) -  (height / 2) ) + ",left=" + ( (screen.availWidth / 2) - (width / 2) ) );
			} else {                        
			spawnWindow = window.open( where, "spawn", "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars="+scroll+",resizable=1,copyhistory=0,width=" + width + " ,height=" + height);
	}
	if( window.focus ) {
			while( !spawnWindow.focus ) {}  
			spawnWindow.focus();
	}
}