hs.graphicsDir = 'highslide/graphics/';
hs.align = 'center';
hs.transitions = ['expand', 'crossfade'];
hs.outlineType = 'rounded-white';
hs.fadeInOut = true;
hs.dimmingOpacity = 0.75;

// define the restraining box
hs.useBox = true;
hs.width = 640;
hs.height = 480;

// Add the controlbar
hs.addSlideshow({
	//slideshowGroup: 'group1',
	interval: 5000,
	repeat: false,
	useControls: true,
	fixedControls: 'fit',
	overlayOptions: {
		opacity: 1,
		position: 'bottom center',
		hideOnMouseOut: true
	}
});
function changeDestaque(para)
{
	$('#destaque').load('actions/changeDestaque.act.php?para='+para+'&cur_id='+destaque_id);
}
function getEntitClass(seletor, id)
{
	$.post('actions/getEntitClass.act.php', {seletor: seletor, id: id}, function(data){
		if(seletor == 'entidade')
		{
			$('#estado').html(data);
			$('#cidade').html('<option value="0">Todas</option>');			
		}
		else if(seletor == 'estado')
		{
			$('#cidade').html(data);			
		}
	});
}
function changePubli(pos)
{
	$('#publi_div').load('actions/changePubli.act.php?pos='+pos);
}
function newsCad(id)
{
	$.getJSON('actions/newsCad.act.php', {email: $('#'+id).val()}, function(data){
		alert(data.message);
		if(data.status == 'ok')
		{
			$('#'+id).blur();
			a = false;
			$('#'+id).val('Email:');
		}
	});
}
var a = false;

function getWidth()  
  {  
       return window.innerWidth ? window.innerWidth : /* For non-IE */  
              document.documentElement ? document.documentElement.clientWidth : /* IE 6+ (Standards Compilant Mode) */  
              document.body ? document.body.clientWidth : /* IE 4 Compatible */  
              window.screen.width; /* Others (It is not browser window size, but screen size) */  
  }  
   
  function getHeight()  
  {  
       return window.innerHeight ? window.innerHeight : /* For non-IE */  
              document.documentElement ? document.documentElement.clientHeight : /* IE 6+ (Standards Compilant Mode) */  
              document.body ? document.body.clientHeight : /* IE 4 Compatible */  
              window.screen.height; /* Others (It is not browser window size, but screen size) */  
  }  

function turminha(id,acao){
		var w = (getWidth()+17).toString();
		var h = (getHeight()+5).toString();
if(acao == 'abre')
	{
		$('body').css({overflow: 'hidden'});
$('#fundo').css({display: 'block'});
		$('#fundo').animate({width: w+'px', height: '1px'}, 1000, false, function()
	{
			$('#fundo').animate({height:  h+'px'}, 1500, false, function()
				{
					$('#turminha').css({display: 'block'});
				});
	});				
	}else if(acao == 'fecha'){
		$('body').css({overflow: 'visible'});		

			$('#turminha').css({display: 'none'});
$('#fundo').animate({width: w+'px', height: '0px'}, 1000, false, function()
	{
			$('#fundo').animate({width:  w+'px'}, 1500, false, function(){
				$('#fundo').css({display: 'none'});
			});
	});							
	}
}