/************************************************************************************
 Some scripting for the guitar wiring article - jvn@vns.nl - 2008 may 15
************************************************************************************/

// Embed SWF's. The swfobject.embedSWF intelligently adds to the existing on(DOM)Load chain

swfobject.embedSWF("data/guitarwiring/toronado_controls.swf", "toronado_controls", "550", "400", "7.0.0" );
swfobject.embedSWF("data/guitarwiring/toronado_schematic.swf", "toronado_schematic", "550", "400", "7.0.0" );

// Cascade into any previously installed window.onload through swfobject

swfobject.addLoadEvent(tableRowLight);

function tableRowLight() {
	//alert('guitarwriring.js - tableRowLight()');
	var table = document.getElementById('table1');
	var x = table.getElementsByTagName('tr');
	for (var i=0;i<x.length;i++)
	{
		x[i].onmouseover = function (){
		    this.origColor=this.style.color;
			this.origBgColor=this.style.backgroundColor;
			this.style.color='#ffffff';
			this.style.backgroundColor='#bcd4ec';
		}
		x[i].onmouseout = function () {
			this.style.color=this.origColor;
			this.style.backgroundColor=this.origBgColor;
		}
	}
}