var theObjects = document.getElementsByTagName("object");

for (var i = 0; i < theObjects.length; i++) {
	
	var xid = theObjects[i].id;
	
	if (xid == 'visual') {
		
		theObjects[i].outerHTML = theObjects[i].outerHTML;
		theObjects[i].Play();
		
	} else if (xid == 'slotmachine') {
		
	} else if (xid == 'jackpot') {
		
	} else if (xid == 'localjackpot') {

	}else {
			
			theObjects[i].outerHTML = theObjects[i].outerHTML;
		
	}
}
