function flash(w, h, path)
{

document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+w+'" height="'+h+'">\n'
+'<param name="movie" value="'+path+'" />\n'
+'<param name="quality" value="high" />\n'
+'<param name="menu" value="0" />\n'
+'<param name="wmode" value="transparent" />\n'
+'<embed src="'+path+'" width="'+w+'" height="'+h+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" menu="0" wmode="transparent"></embed>\n'
+'</object>');

}

var rollOver = function ( type )
{
	var trs = document.getElementsByTagName ( type );
	
	for ( var i = 0; i < trs.length; i ++ )
	{
		if ( trs[i].className == 'rollOver' )
		{
			trs[i].onmouseover = function ()
			{
				this.style.backgroundColor = '#f0f0f0';
			}
			
			trs[i].onmouseout = function ()
			{
				this.style.backgroundColor = '#fff';
			}
		}
	}
}

var search = function ()
{
	var li = document.getElementById( 'search_type' ).getElementsByTagName('A');
	for ( var i = 0; i < li.length; i ++ )
	{
		li[i].onclick = function ()
		{
			for ( var j = 0; j < li.length; j ++ )
			{
				li[j].className = '';
			}
			this.className = 'on';
			
			document.getElementById('type').value = this.id;
		}
	}
}

var removeFocus = function ()
{
	var a = document.getElementsByTagName ( 'A' );
	for ( var i = 0; i < a.length; i ++ )
	{
		a[i].onfocus = function ()
		{
			this.blur();
		}
	}
}

var getNextSibling = function ( startBrother )
{
	var endBrother=startBrother.nextSibling;
	
	while ( endBrother.nodeType != 1 )
	{
		endBrother = endBrother.nextSibling;
	}
	
	return endBrother;
} 

var treeSelector = function ( id )
{
	var inputs = document.getElementById( id ).getElementsByTagName ( 'INPUT' );
	
	for ( var i = 0; i < inputs.length; i ++ )
	{
		inputs[i].onclick = function ()
		{
			var next = getNextSibling ( this.parentNode.parentNode );
			if ( next.className == 'box' )
			{
				var chb = next.getElementsByTagName ( 'INPUT' );
				
				for ( var j = 0; j < chb.length; j ++ )
				{
					chb[j].checked = this.checked;
				}
			}
		}
	}
}

var os = function ()
{
    initTitles();
    rollOver( 'TR' );
    rollOver( 'DIV' );
    search ();
    removeFocus();
}