var $jquery = null; var bb_flg = false; if ("$j" in window) { $jquery = $j; bb_flg = true; } else { $jquery = $; } var product_type = "2"; if (product_type == '1') { if (!$jquery("link[href *= 'http://photo-usr3.jp/cakephp/od_app/webroot/css/show_movie_js.css']").length) { document.write(""); } if (!$jquery("script[src *= 'http://photo-usr3.jp/cakephp/od_app/webroot/js/oricoh_photo_movie.js']").length) { document.write(""); } if (!$jquery("script[src *= 'http://photo-usr3.jp/cakephp/od_app/webroot/js/audiojs/audio.js']").length) { document.write(""); } } if (!$jquery("link[href *= 'http://photo-usr3.jp/cakephp/od_app/webroot/js_scenes/scene184/scene.css']").length) { document.write(""); } if (!$jquery("script[src *= 'http://photo-usr3.jp/cakephp/od_app/webroot/js_scenes/scene184/data.js']").length) { document.write(""); } if (!$jquery("script[src *= 'http://photo-usr3.jp/cakephp/od_app/webroot/js_scenes/scene184/slideshow_manager.js']").length) { document.write(""); } document.write("
"); function oricoh_photo_open_window(url) { if (url == "") return false; if (!url.match(/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/)) return false; var domain = location.hostname; if (domain.match(/photo-usr/i) != null) return false; var arr = url.split("/"); var target = '_blank'; // if ($.inArray("2", arr)) { if (arr[2] == domain) { target = '_self'; // } } window.open(url,target); } function oricoh_photo_delete_obj(dom_obj) { var dom_obj_parent=dom_obj.parentNode; dom_obj_parent.removeChild(dom_obj); } $jquery(document).ready(function() { //alert($().jquery); //alert($j().jquery); //alert(jQuery().jquery); //alert($jq18().jquery); (function($) { //variables from php var test_flg = '1'; var sp_flg = '0'; var html_tag_cs = '
'; var html_tag_bb = '
'; var html_tag_sp = '
'; var html_tag = html_tag_cs; var product_type = "2"; if (bb_flg) html_tag = html_tag_bb; var xml_url = 'http://photo-usr3.jp/od/app/webroot/files/client486/product791/xml/product791.xml'; var api_url = ''; var xml_data_cs = 'imagetextmsp_gothic25五島列島自慢の牡蠣textmsp_gothic25焼き牡蠣に良し! 生牡蠣ももちろん良し!837linkhttp://maruoto.com/publics/index/7/imagetextmsp_gothic25発送日水揚げ全国へtextmsp_gothic25長崎県五島列島から水揚げ当日に全国発送します。838linkhttp://maruoto.com/publics/index/3/imagetextmsp_gothic25五島の魅力満載!textmsp_gothic25牡蠣の他にも魅力満載の五島列島。839linkhttp://maruoto.com/publics/index/8/0680510001501283146037.mp3'; var xml_data_bb = 'imagetextmsp_gothic25缫βtextmsp_gothic25Ƥڤɤ ڤɤ837linkhttp://maruoto.com/publics/index/7/imagetextmsp_gothic25ȯȤtextmsp_gothic25Ĺ긩礫Ȥȯޤ838linkhttp://maruoto.com/publics/index/3/imagetextmsp_gothic25̥ܡtextmsp_gothic25ڤ¾ˤ̥ܤθ硣839linkhttp://maruoto.com/publics/index/8/0680510001501283146037.mp3'; var xml_data = xml_data_cs; if (bb_flg) xml_data = xml_data_bb; var sm_flg = '1'; if (product_type =="1") { var setting = oricohPhoto_getSettingMovie(); } else { var setting = oricohPhoto_getSettingVarScene184(); } var webroot_path = 'http://photo-usr3.jp/cakephp/od_app/webroot/'; setting['webroot_path'] = webroot_path; var auto_start_flg = ''; var selecter2 = '#photo-box79159eea05c7f4f3'; var selecter = selecter2+(+new Date()); $(selecter2).attr('id', selecter.replace('#','')); var xml; if (window.DOMParser) { parser = new DOMParser(); xml = parser.parseFromString(xml_data,"text/xml"); } else { xml = new ActiveXObject("Microsoft.XMLDOM"); xml.async = false; xml.loadXML(xml_data); } if (product_type =="1") { var items = oricohPhoto_buildItemMovie($,xml); } else { var items = oricohPhoto_buildItem4Scene184($,xml); } var init_func = oricohPhoto_initScene184; var $photo_box = $(selecter); var $parent = $photo_box.parent().parent(); //viewport判定 var meta_viewport = $("meta[name=viewport]").attr("content"); var smart_phone_flag = false; if (meta_viewport != undefined) { var arr = meta_viewport.split(";"); var arr2 = (arr[0].split("=")); if (arr2[1] == "320") smart_phone_flag = true; } var userAgent = window.navigator.userAgent.toLowerCase(); var content_area = $("#ContentsArea"); var s_contentW = 0; if (document.referrer.match(/http:\/\/photo-usr/)) { s_contentW = $photo_box.width(); } else { if (content_area != undefined) { var content_width_str = content_area.css('width'); if (content_width_str == undefined) { s_contentW = 550;//for bb } else { var content_width = content_width_str.replace("px", ""); s_contentW = content_width; } } else { } } var s_slideW = $photo_box.width(); var b_contentW = 0; var smartphone_flg = false; var ua = navigator.userAgent; var smartDeviceFlg = false; if (ua.indexOf("iPad") >= 0 || ua.indexOf("iPhone") >= 0 || ua.indexOf("iPod") >= 0 || ua.indexOf("Android") >= 0 || ua.indexOf("Windows Phone") >= 0) { smartDeviceFlg = true; smartphone_flg = true; } else { if ($photo_box.parent().width() < 500) { smartDeviceFlg = true; smartphone_flg = true; } } if (!document.referrer.match(/http:\/\/photo-usr/)) { if (smart_phone_flag) { smartphone_flg = true; var userAgent = window.navigator.userAgent.toLowerCase(); //alert(userAgent); if (userAgent.indexOf('msie') != -1) { $photo_box.css({'zoom':0.9375}); } } else { //alert(s_contentW); //alert(s_slideW); if (s_contentW < s_slideW) { var userAgent = window.navigator.userAgent.toLowerCase(); var contentW = $parent.width(); var w = contentW / s_slideW; var h = $photo_box.height()*w; $photo_box.parent().css({'height':h,'overflow':''}); var a = s_contentW / s_slideW; if (userAgent.indexOf('msie') != -1) { //alert(a); $photo_box.css({'zoom':a}); } else { //alert("2"); $photo_box.css({'-moz-transform-origin':'left top','-moz-transform':'scale('+a+')','-webkit-transform-origin':'left top','-webkit-transform':'scale('+a+')'}); } } } } if (smartphone_flg) { // for smartphone var sp_class = ($photo_box.attr("class") + "_sp"); $photo_box.removeClass($photo_box.attr("class")); $photo_box.addClass(sp_class); if (product_type == "1") { $photo_box.find("div.photo-items-box").append(html_tag_sp); } else { $photo_box.append(html_tag_sp); } } else { if (product_type == "1") { $photo_box.find("div.photo-items-box").append(html_tag); } else { $photo_box.append(html_tag); } } if (product_type =="1") { if (smartphone_flg) { $photo_box.addClass("photo_movie_sp"); } else { $photo_box.addClass("photo_movie"); } var $bgmBtn = $photo_box.find("a.volumeBtn"); if (smartDeviceFlg && items.bgm.bgm_flag == "1") { items.param.auto_start = 0; } if (items.bgm.bgm_flag != '1') { $photo_box.find(".bgm").remove(); $bgmBtn.hide(); $photo_box.find("a.startBgmText").hide(); } else { if (!smartDeviceFlg) { $bgmBtn.hide(); $photo_box.hover(function() { $bgmBtn.fadeIn(300); },function() { $bgmBtn.fadeOut(300); }); } } if (auto_start_flg == '1') { items.param.auto_start = '1'; items.param.repeat = ''; } if (auto_start_flg == '2') { items.param.auto_start = '0'; items.param.repeat = ''; $msg = $(""); $photo_box.find("div.startItems").append($msg); } if (auto_start_flg == '3') { items.param.auto_start = '0'; items.param.repeat = ''; } } else { if (smartphone_flg) { $photo_box.addClass("photo_content_sp"); } else { $photo_box.addClass("photo_content"); } } if (smartphone_flg) { $photo_box.addClass("js_contents_type"); } if (sm_flg == '1') { var sm = new SlideManager184($,selecter,setting.slide_setting,smartphone_flg); for(var i in items)sm.addItem(items[i]); sm.setTime(setting.slide_setting.slide_time); sm.init(); if (!("oricohPhoto_stopFlag" in window))sm.start(); } else { init_func($,selecter,setting,items,smartphone_flg); } })($jquery); });