// JavaScript Document
$().ready(function() {
$('#coda-slider').codaSlider({
crossLinking:true,
dynamicArrows: false,
dynamicTabs: false,
autoHeight:false
});
});


$(function(){
$("#jstyle").attr({href:$.cookie('style')});
});
function jstyle(cssurl){
$('#jstyle').attr({href:cssurl});
$.cookie('style',cssurl,{expires:30,path:'/'});
}

$(function () {
    $('a[href*=#page_top]').click(function () {
        $(this).blur();
        $('html,body').animate({ scrollTop: 0 }, 'slow');
        return false;
    });
});
;

function ChangeImg( SRC ){
	  
	gimg = '<img src="'+SRC +'" width="325" class="bdr" />';
	document.getElementById('image').innerHTML = gimg;
}



function openImageSizedWindow(src){
    var i = new Image(); i.src = src;
    var pop_win = window.open(
                      "",
                      "_blank",
                      "width="+i.width+",height="+i.height+",scrollbars=no,resizable=yes"
                  );
    pop_win.window.document.open();
    pop_win.window.document.write(
     '<html>'
    +'<head><title>'+i.alt+'</title></head>'
    +'<body style="margin:0;padding:0;border:0;">'
    +'<img src="'+i.src+'" width="100%" alt="" />'
    +'</body>'
    +'</html>'
    );
    pop_win.window.document.close();
}


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

/* 1. 画像の切り替え
--------------------------------------------------------------------------	*/

//サムネイルの数
var thumbnail = 100;

//配列変数を定義
var img = new Array();
for(var i = 0; i < thumbnail; i++) img[i]  = new Array();

//配列の内容を表示
function ChangeImage( NO ){

	document.getElementById('title').innerHTML = img[NO]['title'];
	document.getElementById('about').innerHTML = img[NO]['about'];
	document.getElementById('image').innerHTML = img[NO]['image'];
}


//配列の内容を表示
function ChangeImage2( NO ){
	document.getElementById('image').innerHTML = img[NO]['image'];
}

