console.log(' (C) ILLUSION');
$(function () {
/*-----------------------------------------------------------------------------------------------------*/
$('.wp').click(function(){
window.open("img/index_wallpaper.jpg","window1","WIDTH=240,HEIGHT=150,padding=0,margin=0");
});
$('.wp2').click(function(){
window.open("img/index_wallpaper _cojp.jpg","window2","WIDTH=240,HEIGHT=150,padding=0,margin=0");
});
window.onunload = function () {};
$('#menuchange').on('change', function () {
if ($(this).prop('checked')) {
$(".swL").addClass("acv");
} else {
$(".swL").removeClass("acv");
}
});
$("#imenuBase a").click(function(){
$('#menuchange').prop("checked",false);
$(".swL").removeClass("acv");
});
msp="";
bodywidth();
$(window).resize(function(){
bodywidth();
});
$(document).on("click","a:not(.nlink,#shop a,#pvote,.wp,.wp2)", function(){
var pass = $(this).attr("href");
$('#mainFrame').stop().fadeTo('600',0,function(){
location.href = pass;
$('#mainFrame').stop().animate({opacity:'1'},900);
});
return false;
});
/*-----------------------------------------------------------------------------------------------------*/
});
$(window).load(function () { //全ての読み込みが完了したら実行
$('#loading').fadeOut(300);
$("#mainFrame").fadeIn();
});
function bodywidth(){
wsize = $(window).width();
hsize = $(window).height();
}
//movie
$(document).on("click",".pageMovie", function(){
movie = $(this).data("movie");
product= $(this).data("product");
cate= $(this).data("cate");
mid=product+'_'+cate+'_'+movie;
dl = new Array();
dl[0] = "movie";
n = Math.floor(Math.random()*dl.length);
url ='https://'+dl[n]+'.illusion.rip/preview_contents/'+ product +'/'+ cate +'/';
if(wsize >= "1100"){
movies= movie;
}else{
movies= movie+"_sp";
}
$('.playmovie').html('') ;
$('#movieFrame').removeClass('dacMovie').addClass('acMovie').delay(600).queue(function() {
document.getElementById(mid).currentTime=0;
document.getElementById(mid).play();
});
$("video")[0].play();
return false;
});
$(document).on("click","#mxCloser , #allCloser",function(){
$("#movieFrame").removeClass().addClass('dacMovie');
$('.playmovie,#allCloser').html(" ");
});
function i2movie220624(){
movie = "index2_movie220624";
dl = new Array();
dl[0] = "movie";
n = Math.floor(Math.random()*dl.length);
url ='https://'+dl[n]+'.illusion.rip/preview_contents/';
if(wsize >= "1100"){
movies= movie;
}else{
movies= movie+"_sp";
}
$('.playmovie').html('') ;
$('#movieFrame').removeClass('dacMovie').addClass('acMovie').delay(600).queue(function() {
document.getElementById(mid).currentTime=0;
document.getElementById(mid).play();
});
$("video")[0].play();
}