// JavaScript Document

function imprimirIMG(){
	$("#TB_Image").printElement();
}

function imprimirIFR(){
	$("#theFilePDF").printElement();
}

function printDir(){
	$("#directions").printElement();
}

function myMenu(a) {
	window.open( a,"status = 1, height = 900, width = 500, resizable = 0" );
}

function printMenuImage(){
	$("#theMenuImage").printElement();
}

function sendParameter(a){
	document.getElementById("menu").setSection(a);
}

function closeThis(){
	$('#book').hide();
}

function loadSection(thephp,where,auxcallback){
	$.ajax({
	  url: thephp,
	  type: 'POST',
	  dataType: 'html',
	  success: function(data){
		  $("#"+where).html(data);
		  if(auxcallback){
			auxcallback();
		  }
	  
	  }
	});      
	
}

