/*	
		// JS DEBUG TESTING SNIPPETS
		// ===============================================================
		
		var element = null;
		
		// Buttons
		// ............................	
		element = document.createElement("button");
		document.getElementById('main_div').appendChild(element);	
		element.innerHTML = "BUTTON 1";
		element.className = "TEST_BUTTON";
		element.style.top = 10;
		element.style.left = 550;
					
		element = document.createElement("button");
		document.getElementById('main_div').appendChild(element);	
		element.innerHTML = "BUTTON 2";
		element.className = "TEST_BUTTON";						
		element.style.top = 10;
		element.style.left = 650;
		
		// Div
		// ............................		
		element = document.createElement("div");
		document.getElementById('main_div').appendChild(element);	
		element.className = "TEST_DIV";		
		element.style.top = 200;
		element.style.left = 200;
		
		// ===============================================================
		
		// JQUERY
		$(selector).fadeOut('slow', function() {
		    will be called when the element finishes fading out
		    if selector matches multiple elements it will be called once for each
		});
		
		$(selector).fadeOut('slow');
		$(selector).promise().done(function(){
		    // will be called when all the animations on the queue finish
		});
		
		
		myAudio = new Audio('someSound.ogg'); 
		if (typeof myAudio.loop == 'boolean')
		{
		    myAudio.loop = true;
		}
		else
		{
		    myAudio.addEventListener('ended', function() {
		        this.currentTime = 0;
		        this.play();
		    }, false);
		}
		myAudio.play();
*/