/* Author:

*/
$(document).ready(function(){
	$('ul.nav li a').mouseenter(function(){
		$(this).stop().animate({color: '#002C61'}, 300);
	});
	
	$('ul.nav li a').mouseleave(function(){
		$(this).stop().animate({color: '#8D8E8B'}, 300);
	});
	$('ul.nav li.active a').mouseleave(function(){
		$(this).stop().animate({color: '#002C61'}, 300)
	});
	
	$('ul#sub-nav li a').mouseenter(function(){
		$(this).stop().animate({color: '#002C61'}, 300);
	});
	$('ul#sub-nav li a').mouseleave(function(){
		$(this).stop().animate({color: '#8D8E8B'}, 300);
	});
	$('ul#sub-nav li.active a').mouseleave(function(){
		$(this).stop().animate({color: '#002C61'}, 300);
	});
	
	
	
	$('ul.hcta li a.reservation').mouseenter(function(){
		$(this).stop().animate({backgroundColor: '#000000'}, 300);
	});
		
	$('ul.hcta li a.reservation').mouseleave(function(){
		$(this).stop().animate({backgroundColor: '#647B97'}, 300);
	});
	
	
	$('ul.hcta li a.visit').mouseenter(function(){
		$(this).stop().animate({backgroundColor: '#000000'}, 300);
	});
		
	$('ul.hcta li a.visit').mouseleave(function(){
		$(this).stop().animate({backgroundColor: '#006EA5'}, 300);
	});

});




$("#mdrop-dd").change(function () {
	var selectedValue = $('option:selected', this).val() ;
	if (selectedValue) {
		location.href = selectedValue ;
	}
}) ;

var viewFeature = function () {
		this.proc = function(fID,type,init) {
			if (init != undefined) {
				this.fonID = init;
			}
			var liN = $('ul.ss li').length;
			if (fID == 0) {
				if (type == 'next'){
					fID = (this.fonID == liN) ? 1 : this.fonID+1;
				}else{
					fID = (this.fonID == 1) ? liN : this.fonID-1;
				}
			}
			this.fonID = fID ;
			if($('#container').outerWidth() >= 640){
				var w = 630;
			}else{
				var w = 320;
			}
			var XX = -((fID-1)*w) + 'px';
			$('ul.ss').animate({"left": XX}, "slow");
			var sID = fID-1;
			var txt = $('ul.ss li:eq(' + sID + ') img').attr('alt');
			$('.ss-toolbar span').html("<span style='color:#D4D3CB;display:inline'>" + fID + "/" + liN + "</span>&nbsp;&nbsp;&nbsp;" + txt);
		}
	} ;
