var $h = jQuery.noConflict();


$h(window).load(function() {

$h('#featured').orbit({
     animation: 'fade',                  // fade, horizontal-slide, vertical-slide, horizontal-push
     animationSpeed: 800,                // how fast animtions are
     timer: true, 			 // true or false to have the timer
     advanceSpeed: 4000, 		 // if timer is enabled, time between transitions 
     pauseOnHover: false, 		 // if you hover pauses the slider
     startClockOnMouseOut: true, 	 // if clock should start on MouseOut
     startClockOnMouseOutAfter: 1, 	 // how long after MouseOut should the timer start again
     directionalNav: true, 		 // manual advancing directional navs
     captions: true, 			 // do you want captions?
     captionAnimation: 'fade', 		 // fade, slideOpen, none
     captionAnimationSpeed: 800, 	 // if so how quickly should they animate in
     bullets: true,			 // true or false to activate the bullet navigation
     bulletThumbs: false,		 // thumbnails for the bullets
     bulletThumbLocation: '',		 // location from this file where thumbs will be
     afterSlideChange: function(){} 	 // empty function 
});

});

$h(document).ready(function(){


$h('.itemProf').click(function(){	
var meucod = $h(this).attr('link_regular');
$h(window.location).attr('href', meucod);				   
});	


});

function shoLogin(){

Shadowbox.open(
	{
	title: '',
	player: 'iframe',
	content: 'autentica.asp',
	width: 560,
	height: 420,
	displayNav:  false
	});
	
}

function shoCadastro(){

Shadowbox.open(
	{
	title: '',
	player: 'iframe',
	content: 'cadastro_2011.asp',
	width: 560,
	height: 420,
	displayNav:  false
	});
	
}


function checkEnter(e){ 
var characterCode

if(e && e.which){ 
	e = e
	characterCode = e.which 
	}else{
	e = event
	characterCode = e.keyCode //character code is contained in IE's keyCode property
	}

	if(characterCode == 13){ //if generated character code is equal to ascii 13 (if enter key)
	//document.forms[0].submit() //submit the form
	return false 
	}else{
	return true 
	}

}
