<!-- start
// (c) 2000-2006 ricocheting.com

//################################
// funtion: generate()
// decs: creates the source depending out textboxes
function generate(){

	var f = document.myForm;

	if(f.url.value.length==0 || f.url.value=="http://"){
		alert('You will need to enter the "Background Music URL" for it to work right');
	}

	if(f.IE_size[1].checked){ IE_size='width="70" height="45"';}
	else if(f.IE_size[2].checked){ IE_size='width="285" height="45"';}
	else if(f.IE_size[3].checked){ IE_size='width="70" height="25"';}
	else if(f.IE_size[4].checked){ IE_size='width="285" height="25"';}
	else{ IE_size='hidden="true"';}

	var total='<embed src="'+f.url.value+'" autostart="'+f.autostart[f.autostart.selectedIndex].value+'" loop="'+f.loop[f.loop.selectedIndex].value+'" '+IE_size+'></embed>';
	f.output.value=total;

}//generate()
var worker=''+location.hostname+'';
if((worker.indexOf('ri'+'coche'+'ting.c'+'om') == -1)&&(location.hostname!='')&&(location.hostname!='localhost')){
document.write('or'+'igi'+'nal jav'+'ascr'+'ipt fr'+'om <a href="ht'+'tp://w'+'ww.ri'+
'coche'+'ting.c'+'om/j'+'s/">ri'+'coche'+'ting.c'+'om</a>');}


//################################
// funtion: view()
// decs: displays a preview of the script
function view() {
	if(document.myForm.output.value != 'no code available. "Generate" source code first'){
		msg=open("","DisplayWindow","menubar=1,resizable=1,width=300,height=100");
		msg.document.write(document.myForm.output.value);
	}
	else{
		generate();
		view();
	}
}//view()


// End-->