
	var glv_products = {};
	glv_products['bh-01']  = '1';
	glv_products['bh-02']  = '2';
	glv_products['bh-03']  = '3';
	glv_products['bh-try'] = '4';

	$(function(){

		// AJAXのキャッシュOFF
		$.ajaxSetup({ cache: false });

		// リンクの点線除去
		$('a').focus( function(){ if(this.blur)this.blur(); });

		// コメント内のリンク
		$('div.content a[href^="http"]').addClass('blank');
		$('a[href$=".pdf"]').addClass('blank');
		// 別窓
		$('a.blank').live('click', function(){ this.target = "_blank"; });

		// 画像ロールオーバー
		$('img.imgover').rollover('_on');
		// 画像ロールオーバー(点滅)
		$('img.imgfade, a img, input[type="image"]').live('mouseover', function () {
			$(this).animate({opacity:'0.6'}, {duration: 500} );
			$(this).animate({opacity:'1.0'}, {duration: "normal"});
		});

		// ポップアップ
		SexyLightbox.initialize({color:'white', dir: '/img', imagesdir:'/img'});

		if ($.browser.msie) {
			$(':header:has(a), li:has(a), dt:has(a), dd:has(a)').each(function(){
				font_color = $(this).css('color');
				$('a', this).css('color', font_color);
			});
		}

		$('img[pdtcd]').click(function(){
			var url = '/cart/products/detail.php?product_id=' + glv_products[$(this).attr('pdtcd')];
			var data = {
				'mode':'cart',
				'quantity':'1',
				'product_id':glv_products[$(this).attr('pdtcd')]
			};
			jQuery.post(url, data, function() { load_cart(); });
		});
		load_cart();

	});

	function load_cart () {
		$('#cart_price').load('/cart/ #cartarea');
	}

	function to_object (json_str) {
		return eval('(' + json_str + ')');
	}

