
//
// +---------------------------------------------------------------------+
// | FROOMER.COM                                                         |
// +---------------------------------------------------------------------+
// | fpl.js                                                              |
// | main javascript functions                                           |
// |                                                                     |
// | Dtek Digital Media, dtek.net                                        |
// | 2005.05.31                                                          |
// |                                                                     |
// +---------------------------------------------------------------------+
//

//
// rollovers
//

if (document.images)
{

	m_home_o = new Image;		m_home_o.src = "img/m_home_o.gif";
	m_color_o = new Image;		m_color_o.src = "img/m_color_o.gif";
	m_bw_o = new Image;			m_bw_o.src = "img/m_bw_o.gif";
	m_cars_o = new Image;		m_cars_o.src = "img/m_cars_o.gif";
	m_film_o = new Image;		m_film_o.src = "img/m_film_o.gif";
	m_bio_o = new Image;		m_bio_o.src = "img/m_bio_o.gif";
	m_contact_o = new Image;	m_contact_o.src = "img/m_contact_o.gif";

	m_home = new Image;			m_home.src = "img/m_home.gif";
	m_color = new Image;		m_color.src = "img/m_color.gif";
	m_bw = new Image;			m_bw.src = "img/m_bw.gif";
	m_cars = new Image;			m_cars.src = "img/m_cars.gif";
	m_film = new Image;			m_film.src = "img/m_film.gif";
	m_bio = new Image;			m_bio.src = "img/m_bio.gif";
	m_contact = new Image;		m_contact.src = "img/m_contact.gif";

	film_o = new Image;			film_o.src = "pho/sample3.jpg";
	film = new Image;			film.src = "pho/sample.jpg";

	function rollover(imageName)
	{
		document[imageName].src = eval(imageName + "_o.src");
	}

	function rollout(imageName)
	{
		document[imageName].src = eval(imageName + ".src");
	}


	r_stoner = new Image;		r_stoner.src = "pho/film_stoner.jpg";
	r_rickshaw = new Image;		r_rickshaw.src = "pho/film_rickshaw.jpg";
	r_oxford = new Image;		r_oxford.src = "pho/film_oxford.jpg";
	r_uw = new Image;			r_uw.src = "pho/film_uw.jpg";

	function swapreel(imageName)
	{
		parent.menu.document['reel'].src = eval(imageName + ".src");
	}
}


//
// pop-up page
//

function pop_media(type,handle,width,height)
{
	winname = type + handle;
	
	width = parseInt(width) + 4; // add width for padding around movie (see fpl.css)
	height = parseInt(height) + 48; // add height for header and footer (see fpl.css)
	
	popwin = window.open("pop.php?framed=0&type=" + type + "&vh=" + handle,winname,"toolbar=0,status=1,menubar=0,scrollbars=auto,resizable=1,width=" + width + ",height=" + height);
// 	alert("type=" + type + "&vh=" + handle + "&width=" + width + "&height=" + height);

	if (window.popwin)  popwin.focus();
}

