﻿$(document).ready(function() {
	$("#ix-nav li").hover(
		function() { $("ul", this).fadeIn("fast"); }, 
		function() { } 
	);
	$(".nav_stick").hover(
		function () {$(this).children("A").attr("class","on");},
		function () {$(this).children("A").attr("class","off");}
	);
	if (document.all) {
		$("#ix-nav li").hoverClass("sfHover");
	}
	$(function() {
		$('.page_photo a').lightBox();
	});
	//$('#coda-slider-1').codaSlider({
	//	dynamicArrows: false,
	//	autoHeight: false,
	//	dynamicTabs: false,
	//	firstPanelToLoad: 1,
	//	crossLinking: false
	//});
	//items.action(1);
});
$.fn.hoverClass = function(c) {
	return this.each(function(){
		$(this).hover( 
			function() { $(this).addClass(c);  },
			function() { $(this).removeClass(c); }
		);
	});
};
function txtHover(id,className) {
	document.getElementById(id).className=className;
}

//Toggle = function() {
//	this.curr = 1;
//	this.total = 0;
//	this.action = function(idx) {};
//	this.prev = function() {this.curr--;if (this.curr < 1) {this.curr = this.total;}this.action(this.curr);}
//	this.next = function() {this.curr++;if (this.curr > this.total) {this.curr = 1;}this.action(this.curr);}
//}

//items = new Toggle();
//items.action = function(idx) {
//	var id = "item_"+idx;
//	if (document.getElementById("item_id")) {
//		document.getElementById("item_detail").innerHTML = document.getElementById(id).innerHTML;
//	}
//}

