
$(document).ready(function(){

	$("ul.tabs").tabs("div.panes > div");

	//carousel
	$('#mycarousel').jcarousel({
		vertical:true
	});
	$(".menu .mIten").each(function() {
		/*$("ul", this).css({
			"display": "none"
		});*/
		$(this).mouseover(function() {
			$(this).css({
				"color": "#ffffff", 
				"padding-top": "10px", 
				"cursor": "pointer"
			});
			$("ul", this).css({
				"display": "block"
			});
		});
		$(this).mouseout(function() {
			$(this).css({
				"color": "#cccccc", 
				"padding-top": "10px", 
				"border-top": "none"
			});
			$("ul", this).css({
				"display": "none"
			});
		});
	});
	$(".listTable tr.listRow").each(function() {
		
		var link = $("a", this).attr("href");
		
		$(this).mouseover(function() {
			
			$("td.listCell", this).css({
				"cursor":"pointer",
				"background":"#f0f0f0"
			});
			$("img", this).css({
				"border":"1px solid #ff6600", 
				"margin":"0"
			});
			$(".name", this).css({
				"text-decoration":"underline"
			});
			$(".more", this).css({
				"text-indent":"0"
			});
		});
		$(this).mouseout(function() {
			$("td.listCell", this).css({
				"background":"none"
			});
			$("img", this).css({
				"border":"none", 
				"margin":"1px"
			});
			$(".name", this).css({
				"text-decoration":"none"
			});
			$(".more", this).css({
				"text-indent":"-3000px"
			});
		});
		$(this).click(function(){
			window.location = link;
		})
	});
	
	$("#mycarousel li").each(function() {
		
		var link = $("a", this).attr("href");
		
		$(this).mouseover(function() {
			
			$(this).css({
				"cursor":"pointer",
				"background":"#f0f0f0"
			});
			$("img", this).css({
				"border":"1px solid #ff6600", 
				"margin":"0 0 4px 4px"
			});
			$("h4", this).css({
				"text-decoration":"underline"
			});
		});
		$(this).mouseout(function() {
			$(this).css({
				"background":"none"
			});
			$("img", this).css({
				"border":"none", 
				"margin":"1px 1px 5px 5px"
			});
			$("h4", this).css({
				"text-decoration":"none"
			});
		});
		$(this).click(function(){
			window.location = link;
		})
	});

	//map
	$(".map").click(function(){
		var href = $(this).attr("href");
		$.colorbox({
			href:href,
			iframe:true,
			scrolling: false,
			innerWidth: 850,
			innerHeight: 480
		});
		return false;
	});

});
