/*
javascripts
*/
function doMail(m)
{
	e = str_replace(' [at] ', '@', m);
	e = str_replace(' [dot] ', '.', e);
	
	document.location.href='mailto:'+e;
}

function str_replace(search, replace, subject) {
	return subject.split(search).join(replace);
}

function trim(s)
{
    while (s.substring(0,1) == ' ')
    {
        s = s.substring(1,s.length);
    }
    while (s.substring(s.length-1,s.length) == ' ') {
        s = s.substring(0,s.length-1);
    }
    return s;
}

/*
function showMap()
{
	url = 'map.php?studio='+arguments[0];
	w = screen.availWidth;
	h = screen.availHeight;

	fw = w-200;
	fh = h-200;

	f = 'height='+fh+',';
	f+= 'width='+fw+',';
	f+= 'top=100,';
	f+= 'left=100,';
	f+= 'resizable=no,';
	f+= 'scrollBar=no';
	
	pop = open(url, 'Loading', f);
	pop.focus();
}
*/

function launchFlash()
{

	url = 'flash.php';


	w = screen.availWidth;
	h = screen.availHeight;


	f = 'height='+h+',';
	f+= 'width='+w+',';
	f+= 'top=0,';
	f+= 'left=0,';
	f+= 'resizable=no,';
	f+= 'scrollBar=no';
	
	pop = open(url, 'Loading', f);
	pop.focus();

}