$(function(){
	// rollover
	$('.imgover').each(function(){
		this.osrc = $(this).attr('src');
		this.rollover = new Image();
		this.rollover.src = this.osrc.replace(/(\.gif|\.jpg|\.png)/, "_o$1");
	}).hover(function(){
		$(this).attr('src',this.rollover.src);
	},function(){
		$(this).attr('src',this.osrc);
	});
	

   
   $('#gNav li div').hover(function(){
		$(this).parent().addClass('selected');
	},function(){
		$(this).parent().removeClass('selected');
	});
   
   $('.switchColor li a').hover(function(){
		$rel = $(this).attr('rel');								 
		$name = $(this).attr('name').split('_');
		$eq = parseInt($name[1]);
		$id = $name[0];
		$len = $('#switch' + $name[0].substring(($name[0].length-2),$name[0].length) + ' li').length;
        for ($i=0;$i<$len;$i++) {
			$('#switch' + $name[0].substring(($name[0].length-2),$name[0].length) + ' li:eq(' + $i + ')').removeClass('active');
		}
		$('#' + $id).attr('src',$rel);
		$(this).parent().addClass('active');
	});
   
   
   
   /*$(".list #list").toggle(
      function () {
         $(".list #listContent").slideUp(280);
		 $(this).css("background","url(/common/img/ico_arrow02_o.gif) no-repeat 0 12px");
      },
      function () {
		  $(".list #listContent").slideDown(270);
		  var targetOffset = $("#footer").offset().top;
			$('html,body').animate({scrollTop: targetOffset});
			$(this).css("background","url(/common/img/ico_arrow02.gif) no-repeat 0 12px");
      }
    );*/
   
});

$(document).ready(function(){
$(".fadeOver").hover(function(){$(this).fadeTo(0, 0.75);},function(){$(this).fadeTo(0, 1);});
});

