/*
JavaScript Document
Arquivo criado com o objetivo de disponibilizar funções que utilizam recursos ou rotinas específicos do jquery que podem ser reutilizados por mais de um cliente/loja
Data: 18/01/2010 - Thiago Costa :-)


OBS: NÃO ESQUECER DE COMENTAR A FUNCIONALIDADE DE CADA FUNÇÃO
*/




/*
=============================================================================================
FUNÇÃO EXIBE CORTINA (Jquery)

*/
function callLayerBlock(idObjectCortina,widthValue,leftValue,lineHeightValue){ //abrir cortina
	if (widthValue == "" || widthValue == null){
		widthValue = "92%";
	}
	if (leftValue == "" || leftValue == null){
		leftValue = "4%";
	}
	
	if(lineHeightValue ==  "" || lineHeightValue == null)
	{
		lineHeightValue	= "80%";
	}
	

	$.blockUI({ message: $('#'+idObjectCortina), css: { top:'50px', width: widthValue, left: leftValue, height: lineHeightValue} }); 		
	
	
/*	$.blockUI({ 
            theme:     true, // true to enable jQuery UI support 
            draggable: true, // draggable option is only supported when jquery UI script is included 
            title:    'This is your title', // only used when theme == true 
            message:  '<p>This is your message.</p>', 
            timeout:   3000  // close block after 3 seconds (good for demos, etc) 
        });*/ 

	
} 


/*
=============================================================================================
FUNÇÃO FECHA CORTINA (Jquery)

*/
function unCallLayerBlock(idObjectCortina){ //fechar cortina
	document.getElementById(idObjectCortina).innerHTML = "";
	$.unblockUI();
}
