b=function(v){alert(String(v))}

appendFlashNode = function( parentNode, path, width, height, transparent) {
	newTree = document.createElement('object')

	p = document.createElement( 'param' ) // for IE
	p.setAttribute('name', "movie" )
	p.setAttribute('value', path )
	newTree.appendChild( p )

	parentNode.appendChild( newTree )

	newTree.setAttribute('width', width )
	newTree.setAttribute('height', height )
	newTree.setAttribute('data', path )




	newTree.setAttribute('type', "application/x-shockwave-flash" )


	if( transparent ) {
		param = document.createElement('param')
		param.setAttribute('name', "wmode" )
		param.setAttribute('value', "transparent")
		newTree.appendChild( param )
	}

	return newTree
}


coverField = function( parentNode, width, height, top, left ) {

	parentNode.appendChild(
		iframe = document.createElement( 'iframe' )
	)

	iframe.style.display = 'block';
	iframe.style.position = 'absolute';


}



drawFlash = function( path, width, height, transparent ){
	transparent = transparent || false;

	document.writeln('<object type="application/x-shockwave-flash" data="'+path+'" width="'+width+'" height="'+height+'">');
	document.writeln('	<param name="movie" value="'+path+'" />');
	if( transparent )
		document.writeln('	<param name="wmode" value="transparent"/>');
	document.writeln('</object>');
}


