//********************
// Flash Constructor *
//********************
function Flash()
{	
	// get id's
	this.filter			= document.getElementById('filter');
	this.map_img		= document.getElementById('map_img');
	this.map_swf		= document.getElementById('map_swf');
	this.content		= document.getElementById('content');
	
	// get tags
	this.map_a	= this.map_img.getElementsByTagName('a')[0];
	
	// set strings
	this.loc_flash	= 'www.verhoef-woningaanpassing.nl/html/swf/';
	this.hide_class	= 'hide';
	this.show_class	= 'show';
	
	// initialize event
	this.init();
}

//****************************
// Function initialize event *
//****************************
Flash.prototype.init = function()
{
	// set object as var
	var _this = this;
	
	// show flash
	this.map_a.onclick = function()
	{
		// create flash object
		var so = new SWFObject("www.verhoef-woningaanpassing.nl/html/swf/map.swf", "flash_movie", "1020", "560", "6", "#336699");
		so.addParam("wmode", "transparent");
		so.write("map_swf");
		
		//show  flash object 
		_this.map_img.className	= _this.hide_class;
		_this.filter.className	= _this.show_class;
		_this.map_swf.className	= _this.show_class;
		
		return false;
	}
}

//****************************
// Function hide flash movie *
//****************************
Flash.prototype.hide = function()
{
	this.map_img.className	= this.show_class;
	this.filter.className	= this.hide_class;
	this.map_swf.className	= this.hide_class;
	
	return false;
}

//************************
// Function hide content *
//************************
Flash.prototype.hideContent = function()
{
	if (!document.all)
	{
		this.content.className	= this.hide_class;
	}
	
	return false;
}

//************************
// Function show content *
//************************
Flash.prototype.showContent = function()
{
	if (!document.all)
	{
		this.content.className	= this.show_class;
	}
	
	return false;
}
