function swf(name,w,h){
    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');
    document.write('<param name="movie" value="'+name+'.swf" />\n');
    document.write('<param name="quality" value="high" />\n');
	document.write('<param name="menu" value="false" />\n');
	document.write('<param name="wmode" value="transparent" />\n');
	document.write('<embed src="'+name+'.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+w+'" height="'+h+'" menu="false" wmode="transparent" />\n');
    document.write('</embed>\n');
	document.write('</object>\n');
}
$(document).ready(function(){
	//form input focus/blur
	$("input[@type=password], input[@type=text], textarea").focus(function() {
		val = $(this).attr('def');
		if ($(this).val() == val) $(this).val('');
		$(this).blur(function(){
			if ($(this).val() == '') $(this).val(val);
		});
	});
});
