/* jquery
----------------------------------------------- */
	
$(document).ready(function() {

	//target_blank
	/*
	$('a[href^="http"]').not('[href^="http://www.google.co.jp/"]').click(function() {
		window.open(this.href, '');
		return false;
	});
	$('a[href^="http"]').not('[href^="http://www.google.co.jp/"]').addClass("exLink");
	*/

	//pdf
	$('a[href$=".pdf"]').click(function() {
		window.open(this.href, '');
		return false;
	});
	
	//link block
	$(".page li").click(function() {
		window.location = $(this).find("a").attr("href");
		return false;
	});

	//pageTop
	$("#pageTop a").click(function() {
		var targetOffset = $("#container").offset().top;
		$("html,body").animate({scrollTop: targetOffset}, 1000);
		return false;
	});
	
	//cartBox
	$("#cartBox").css("display", "none");
	
	$("#menu #rightMenu .rm03").hover(function() {
		$("#cartBox").fadeIn("fast");
	}, function() {
		$("#cartBox").fadeOut("fast");
	});
	


});

function createHttpRequest(){

    if(window.ActiveXObject){
        try {
            return new ActiveXObject("Msxml2.XMLHTTP");
        } catch (e) {
            try {
                return new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e2) {
                return null
            }
         }
    } else if(window.XMLHttpRequest){
        return new XMLHttpRequest();
    } else {
        return null;
    }
  }
function getList(data,method,fileName,async){
    var httpoj = createHttpRequest();
    
    httpoj.open( method , fileName , async );
    
    httpoj.onreadystatechange = function(){ 
      if (httpoj.readyState==4){ 
        on_loaded(httpoj);
      }
    }
    
    httpoj.send( data );
  }
function on_loaded(oj){
        //レスポンスを取得
        res  = oj.responseText;
       
        document.getElementById("list").innerHTML=res

  
  }
