	function setSizeFlash(nHeight){
		if (nHeight == 491){
			window.setTimeout("document.getElementById('flashcontent').style.height = " + 510 + "+'px';",250)
		}
		else {
			window.setTimeout("document.getElementById('flashcontent').style.height = " + 431 + "+'px';",250)
		}
		
	}

// setup a controlled popup window
function popup(url, popup, options){
/*
url, required: the url to open, eg 'http://jimmont.com' or '/resrc/'
popup, optional: the name or target for the window to open, eg 'my_popup' or 'portfolioWindow'
options, optional: if present are using instead of the defaults
*/
	if(!url) return;
	var mypopup;
	// setup a place to save a list of opened windows
	if(!arguments.callee.popups) arguments.callee.popups = {};
	// if you previously opened this window-name re-use the window
	if(popup && arguments.callee.popups[popup]) mypopup = arguments.callee.popups[popup];
	// popup window chrome details: 0 is same as no/false, 1 is same as yes/true
	var details = (typeof options == 'string' && /=/.test(options))? options : 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=1,width=830,height=630,top=200,left=500';
	// create the popup, or redirect an existing one to this place
	if(typeof mypopup != 'undefined' && !mypopup.closed) mypopup.location = url;
	else mypopup = window.open(url,(typeof popup == 'string' ? popup :''),details);
	if(typeof popup != 'undefined' && !arguments.callee.popups[popup]) arguments.callee.popups[popup] = mypopup;
	// bring the popup window into the foreground
	if(mypopup && mypopup.focus) mypopup.focus();
};
