jQuery.extend({
	ub:function(){
		var ub;
		if(jQuery.browser.msie){
			return ub = 'IE'+Math.floor(jQuery.browser.version);
		}
		else if(jQuery.browser.opera){
			return ub = 'OP';
		}
		else if(jQuery.browser.mozilla){
			return ub = 'FF';
		}
		else if(jQuery.browser.safari){
			return ub = 'SA';
		}
		else{
			return false;
		}
	}
});
jQuery(document).ready(function(){





	jQuery(".tconfirm_img1").hover(
		function(){
			jQuery(this).css("background","#EAAD9B");
		},
		function(){
			jQuery(this).css("background","url(./images/1/confirm_04.jpg) no-repeat");
		}
	/*
		function(){
			jQuery(this).find(".tconfirm_img2_mask").css("background","url(./images/mask_h.png) no-repeat center");
			if(jQuery.ub()=="IE6"){
				jQuery(this).find(".tconfirm_img2_mask").css("background","none");
				jQuery(this).find(".tconfirm_img2_mask").css("filter","progid:DXImageTransform.Microsoft.AlphaImageLoader(src='./images/mask_h.png', sizingMethod='scale')");
			}
			jQuery(this).css("background","none");
		},
		function(){
			jQuery(this).find(".tconfirm_img2_mask").css("background","none");
			jQuery(this).css("background","url(./images/1/confirm_04.jpg) no-repeat");
			if(jQuery.ub()=="IE6"){
				jQuery(this).find(".tconfirm_img2_mask").css("background","none");
				jQuery(this).find(".tconfirm_img2_mask").css("filter","false");
			}
		}
	*/
	);

	jQuery(".contact_con").height(jQuery(".contact_left").height());


	jQuery(".tquality_right").daMove1({
		type:"left",
		num:6,
		left:"#left",
		right:"#right"
	});

	jQuery(".movedetail_img2").daMarquee({
		type:"left",
		speed:50, 
		scroll:1,
		min:0
	});

	jQuery(".tquality_right1").hover(
		function(){
			jQuery(this).css({
				"border":"1px solid #EAAD9B",
				"background":"#EAAD9B"
			});
		},
		function(){
			jQuery(this).css({
				"border":"1px solid #786056",
				"background":"none"
			});
		}
	);
	/*
	jQuery(".tquality_left").hover(
		function(){
			jQuery(this).css({
				"border":"1px solid #EAAD9B",
				"background":"#EAAD9B"
			});
		},
		function(){
			jQuery(this).css({
				"border":"1px solid #786056",
				"background":"none"
			});
		}
	);
	*/
	jQuery(".tproduct_list2").daMarquee({
		type:"stepleft",
		step:1,
		btnNext:"#right",
		btnPrev:"#left",
		speed:300
	});

	jQuery(".nav_open").hover(function(){
		jQuery(".nav_mask").css("display","block");
		jQuery(".thome_a").css("display","block");
		jQuery(".nav_mask").css("left",parseInt(jQuery(this).position().left+56));
		var nav_date = jQuery(".nav_date > div").eq(parseInt(jQuery(this).attr("index"))-1).html();
		jQuery(".thome_a").html(nav_date);
	},function(){
		jQuery(".thome_a").css("display","none");
		jQuery(".nav_mask").css("display","none");
	});
	
	jQuery(".thome_a").hover(
		function(){
			jQuery(this).css({
				"display":"block"
			});
			jQuery(".nav_mask").css("display","block");
		},
		function(){
			jQuery(this).css({
				"display":"none"
			});
			jQuery(".nav_mask").css("display","none");
		}
	);
	
	jQuery(".nav_mask").hover(
		function(){
			jQuery(this).css({
				"display":"block"
			});
			jQuery(".thome_a").css("display","block");
		},
		function(){
			jQuery(this).css({
				"display":"none"
			});
		}
	);



jQuery(".timg").hover(
function(){
jQuery(this).parents(".tproduct_img4").css("background","url(./images/1/tproduct_08.jpg)");
},
function(){
jQuery(this).parents(".tproduct_img4").css("background","url(./images/1/tproduct_09.jpg)");
}
);

	jQuery(".timg").click(function(){
		jQuery("#imgProductPic").attr("src",jQuery(this).attr("src2"));
	});
	
	jQuery(".moveYear_img").each(function(){
		jQuery(this).css("margin-top",parseInt((jQuery(this).parent(".moveYear").height()-60)/2));
	});
	
});

