function sendflashvar (varname, varcontent){	
	
	var ie=document.all;
	var nn6=document.getElementById&&!document.all;
	
	flasharea = document.getElementById("flashmain");

	if(window.flashmain) window.document["flashmain"].SetVariable(varname, varcontent); 
	if(document.flashmain) document.flashmain.SetVariable(varname, varcontent);
}

function loadflash (flashfile, width, height, doc_id) {

	//NOTE!! because this is assigned an id/name of "flashmain", 
	//it is designed to load flash into the flashmain area
	//alert(flashfile+"<--flashfile** "+width+"<--width** "+height+"<--height** "+doc_id+"<--doc_id** ");
	var thecode = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0\" id=\""+doc_id+"\" width=\""+width+"\" height=\""+height+"\"><param name=\"movie\" value=\""+flashfile+"\"><param name=\"quality\" value=\"high\"><param name=\"wmode\" value=\"transparent\"><embed src=\""+flashfile+"\" quality=\"high\" wmode=\"transparent\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\""+width+"\" height=\""+height+"\" name=\""+doc_id+"\"></embed></object>";
	//document.writeln(thecode);
	//alert(thecode);
	return thecode;
}
/*
function printCIFlash() {

	var songName1 = "<tr><td align=left>1. No Safety</td><td align=right>";
	var songName2 = "<tr><td align=left>2. I Want You</td><td align=right>";
	var songName3 = "<tr><td align=left>3. Love Me</td><td align=right>";
	var songName4 = "<tr><td align=left>4 .Superstition</td><td align=right>";
	var songName5 = "<tr><td align=left>5. Crimson Eyes</td><td align=right>";
	var songName6 = "<tr><td align=left>6. Walking on Water</td><td align=right>";
	var songName7 = "<tr><td align=left>7. Stars &amp; Lies</td><td align=right>";
	
	var flshCode1 = loadflash('images/song1_nosafety2.swf', '21','16', 'song1');
	var flshCode2 = loadflash('images/song2_iwantyou1.swf', '21','16', 'song2');
	var flshCode3 = loadflash('images/song3_loveme1.swf', '21','16', 'song3');
	var flshCode4 = loadflash('images/song4_superstition1.swf', '21','16', 'song4');
	var flshCode5 = loadflash('images/song5_crimsoneyes2.swf', '21','16', 'song5');
	var flshCode6 = loadflash('images/song6_walkingonwater1.swf', '21','16', 'song6');
	var flshCode7 = loadflash('images/song7_starsandlies1.swf', '21','16', 'song7');
	
	tblToApnd = document.getElementById("appendme");
	var finalRows = songName1+flshCode1+songName2+flshCode2+songName3+flshCode3+songName4+flshCode4+songName5+flshCode5+songName6+flshCode6+songName7+flshCode7;
	//alert(finalRows);
	tblToApnd.innerHTML = finalRows;

}*/
