function janela(URL) {

  var width = 467;

  var height = 420;

  var left = 50;

  var top = 10

  window.open(URL, 'Janela_Xenon_Tech', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}
function janelalinks(URL) {

  var width = 500;

  var height = 420;

  var left = 50;

  var top = 10

  window.open(URL, 'Janela_Links', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}
function playerpopup(URL) {

  var width = 680;

  var height = 510;

  var left = 50;

  var top = 10

  window.open(URL, 'playerpopup', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}

function janela3(URL) {

  var width = 600;

  var height = 500;

  var left = 50;

  var top = 10

  window.open(URL, 'Janela3_Xenon_Tech', 'width='+width+', height='+height+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}

function janelasis(URL,WIDTH,HEIGHT) {

//  var width = '100%';

//  var height = '100%';

  var left = 10;

  var top = 10

  window.open(URL, 'Admin', 'width='+WIDTH+', height='+HEIGHT+', top='+top+', left='+left+', scrollbars=yes, status=no, toolbar=no, location=no, directories=no, menubar=no, resizable=no, fullscreen=no');

}


function apagarnoticias(URL,noticia){
	if (confirm("Apagar Notícia?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarflashentrada(URL,noticia){
	if (confirm("Apagar Flash?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarcolunaentrada(URL,noticia){
	if (confirm("Apagar Coluna?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarleiloes(URL,noticia){
	if (confirm("Apagar Leilão?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagareventos(URL,noticia){
	if (confirm("Apagar Evento?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarreportagem(URL,noticia){
	if (confirm("Apagar Reportagem?\n\n "+noticia+""))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarimagem(URL){
	if (confirm("Apagar Imagem?"))
	{window.location = URL}
	else {window.location = "#"}
}
function apagarvideo(URL){
	if (confirm("Apagar Vídeo?"))
	{window.location = URL}
	else {window.location = "#"}
}
function mudar(URL){
window.location = URL
}
function bloq(URL,user){
	if (confirm("Bloquear Cliente "+user+"?"))
	{window.location = URL}
	else {window.location = "#"}
}

function liber(URL,user){
	if (confirm("Liberar Cliente "+user+"?"))
	{window.location = URL}
	else {window.location = "#"}
}



// Mostra layers 
function show_tooltip(layer) {
	 if(document.getElementById(layer).style.display == 'none'){
		document.getElementById(layer).style.display = 'block';
//		document.getElementById(layer).focus();
	 } 
}

// MOSTRAR IMAGEM
function copy(inElement) {
if(navigator.appName == 'Microsoft Internet Explorer'){
window.clipboardData.setData('text',inElement.value);
} else {
  if (inElement.createTextRange) {
    var range = inElement.createTextRange();
    if (range && BodyLoaded==1)
      range.execCommand('Copy');
  } else {
    var flashcopier = 'flashcopier';
    if(!document.getElementById(flashcopier)) {
      var divholder = document.createElement('div');
      divholder.id = flashcopier;
      document.body.appendChild(divholder);
    }
    document.getElementById(flashcopier).innerHTML = '';
    var divinfo = '<embed src="_clipboard.swf" FlashVars="clipboard='+encodeURIComponent(inElement.value)+'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
    document.getElementById(flashcopier).innerHTML = divinfo;
  }
} 
}


// Jquery hide/show

<!-- jquery for this page -->
// initialize the jquery code
 $(document).ready(function(){
//close all the content divs on page load
$('.mover').hide();
$('.mover2').hide();
$('.mover3').hide();
$('.mover4').hide();
$('.mover5').hide();
$('.mover6').hide();
$('.mover7').hide();
$('.mover8').hide();
$('.mover9').hide();
$('.mover10').hide();
$('.mover11').hide();
$('.mover12').hide();
$('.mover13').hide();
$('.mover14').hide();

// toggle slide
$('#slideToggle').click(function(){
// by calling sibling, we can use same div for all demos
$(this).siblings('.mover').slideToggle();
});

// regular toggle with speed of 'slow'
$('#toggleSlow').click(function(){
$(this).siblings('.mover').toggle('slow');
});
$('#toggleSlow2').click(function(){
$(this).siblings('.mover2').toggle('slow');
});
$('#toggleSlow3').click(function(){
$(this).siblings('.mover3').toggle('slow');
});
$('#toggleSlow4').click(function(){
$(this).siblings('.mover4').toggle('slow');
});
$('#toggleSlow5').click(function(){
$(this).siblings('.mover5').toggle('slow');
});
$('#toggleSlow6').click(function(){
$(this).siblings('.mover6').toggle('slow');
});
$('#toggleSlow7').click(function(){
$(this).siblings('.mover7').toggle('slow');
});
$('#toggleSlow8').click(function(){
$(this).siblings('.mover8').toggle('slow');
});
$('#toggleSlow9').click(function(){
$(this).siblings('.mover9').toggle('slow');
});
$('#toggleSlow10').click(function(){
$(this).siblings('.mover10').toggle('slow');
});
$('#toggleSlow11').click(function(){
$(this).siblings('.mover11').toggle('slow');
});
$('#toggleSlow12').click(function(){
$(this).siblings('.mover12').toggle('slow');
});
$('#toggleSlow13').click(function(){
$(this).siblings('.mover13').toggle('slow');
});
$('#toggleSlow14').click(function(){
$(this).siblings('.mover14').toggle('slow');
});
// fade in and out
$('#fadeInOut').toggle(function() {
$(this).siblings('.mover').fadeIn('slow');
}, function() {
$(this).siblings('.mover').fadeOut('slow');
});

//animate
$('#animate').click(function() {
$(this).siblings('.mover')
.slideDown(5500).fadeOut(7300);
});

});
