function initializePixelBit(){
var	showHideFlag = 1;

}
	
function showHide()
{
	if ($('bit_container').style.display == 'block')
	{
		$('bit_container').style.display = 'none';
		//showHideFlag = 0;
	}
	else
	{
		$('bit_container').style.display = 'block';
		//showHideFlag = 1;

	}
}
function showPixelBitLoop() {
var url = root+'/showPixelBit.php';
var myAjax = new Ajax.Request(url, {method: 'get', onComplete: showPixelBitResponse, evalScripts:true
     } );
setTimeout ("showPixelBitLoop()", 5000);
}


function showPixelBitResponse (originalRequest)
{
var newData = originalRequest.responseText;
$('Pixel_Bit_Container').innerHTML = newData;
}

function bitSwitch(idNode)
{
var url = root+'/state.php';
var pars = {id : idNode};
var myAjax = new Ajax.Request(url, {method: 'get', parameters: pars, evalScripts:true
} );

var url = root+'/showPixelBit.php';
var myAjax = new Ajax.Request(url, {method: 'get', onComplete: showPixelBitResponse, evalScripts:true
     } );
}


