';
document.write(js_file);
var sflg = smartphoneCheck();
if(sflg == 1){
if (window.innerHeight > window.innerWidth) {
document.write('\n');
}
else{
document.write('\n');
}
document.write('\n');
}
else{
document.write('\n');
document.write('\n');
}
function chg_zen (id,pcid,type,seq,ltype,mseq){
var url;
if (type == '' || type == undefined){type = 'info';}
chgHTML('item-title','');
// alert(type);
url = 'https://rexi2.net/dh/cr/?mode=info&title=' + id + '&pcid=' + pcid + '&type=' + type + '&seq=' + seq + '<ype=' + ltype + '&mseq=' + mseq + '&rand=' + (new Date()).getTime();
var res1 = encodeURI(url);
requestFile('','GET',res1,true,'zen_area');
}
-->
';
document.write(js_file);
var sflg = smartphoneCheck();
if(sflg == 1){
if (window.innerHeight > window.innerWidth) {
document.write('\n');
}
else{
document.write('\n');
}
document.write('\n');
}
else{
document.write('\n');
document.write('\n');
}
// $("#showcase img").reflect("height:0.2,opacity:0.3");
$(function() {
$("div#showcase").bind("touchstart", onTouchStart);
$("div#showcase").bind("touchmove", onTouchMove);
$("div#showcase").bind("touchend", onTouchEnd);
var direction, position;
//スワイプ開始時の横方向の座標を格納
function onTouchStart(event) {
position = getPosition(event);
direction = ''; //一度リセットする
}
//スワイプの方向(left/right)を取得
function onTouchMove(event) {
if (position - getPosition(event) > 70) { // 70px以上移動しなければスワイプと判断しない
direction = 'left'; //左と検知
} else if (position - getPosition(event) < -70){ // 70px以上移動しなければスワイプと判断しない
direction = 'right'; //右と検知
}
}
function onTouchEnd(event) {
if (direction == 'right'){
$('#nav > .left').click();
} else if (direction == 'left'){
$('#nav > .right').click();
}
}
//横方向の座標を取得
function getPosition(event) {
return event.originalEvent.touches[0].pageX;
}
var showcase = $("#showcase"), title = $('#item-title')
showcase.Cloud9Carousel( {
yOrigin: 0,
yRadius: 30,
mirror: {
gap: 0,
height: 0.1
},
buttonLeft: $("#nav > .left"),
buttonRight: $("#nav > .right"),
bringToFront: true,
mouseWheel:true,
onRendered: rendered,
onLoaded: function() {
showcase.css( 'visibility', 'visible' )
showcase.css( 'display', 'none' )
showcase.fadeIn( 1500 )
}
} )
function rendered( carousel ) {
var item = carousel.nearestItem().element;
var tstr = item.alt;
// title.text( carousel.nearestItem().element.alt );
// item.style.opacity = 1;
// title.text( tstr );
// title.text( tstr );
title.html( tstr );
// Fade in based on proximity of the item
var c = Math.cos((carousel.floatIndex() % 1) * 2 * Math.PI)
item.style.opacity = (0.8 + (0.5 * c))
}
// Simulate physical button click effect
//
$('#nav > button').click( function( e ) {
var b = $(e.target).addClass( 'down' )
setTimeout( function() { b.removeClass( 'down' ) }, 80 )
} )
$(document).keydown( function( e ) {
//
// More codes: http://www.javascripter.net/faq/keycodes.htm
//
switch( e.keyCode ) {
/* left arrow */
case 37:
$('#nav > .left').click()
break
/* right arrow */
case 39:
$('#nav > .right').click()
}
} )
})
-->
';
document.write(js_file2);
-->