// JavaScript Document

function attachEventsToItems()
{
	$(".jcarousel-item a").mouseenter(
				function()
				{
//					console.log("hi!!! ", this);
					$(".jcarousel-item a").css("opacity","0.6");
					$(this).css("opacity", "1");
				});

	$(".jcarousel-item a").mouseleave(
				function()
				{
					$(".jcarousel-item a").css("opacity","1");
				});
}


function enviar() 
{
	$("#searchform").submit();
}

function cerrar()
{
	$.fn.colorbox.close();
}


$(document).ready(function() {
    $('#mycarousel').jcarousel({
								scroll: 1,
								initCallback: attachEventsToItems
								});
	
	$(".inline").colorbox({width:"1003", inline:true, href:"#inline_example1", opacity:"0.60"});
	$(".inline2").colorbox({width:"1003", inline:true, href:"#inline_example2", opacity:"0.60"});
				
				//Example of preserving a JavaScript event for inline calls.
				$("#click").click(function(){ 
					$('#click').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
					return false;
				});
});


