﻿//googlemapクリック//
function initialize() {
    if (document.getElementById("map_canvas") == null) { 
    } else { 
        if (GBrowserIsCompatible()) {
            //四日市本社
            var map = new GMap2(document.getElementById("map_canvas"));
            map.setCenter(new GLatLng(34.965584, 136.615288), 15);
            map.addControl(new GLargeMapControl());
            
            var markerIcon3 = new GIcon();
            markerIcon3.image = "img/mapicon3.gif";
            markerIcon3.iconSize = new GSize(60, 45);
            markerIcon3.iconAnchor = new GPoint(10, 25);
            markerIcon3.infoWindowAnchor = new GPoint(34, 22);
            var opts3 = { icon: markerIcon3 };

            var marker1 = new GMarker(new GLatLng(34.965584, 136.615288), opts3); //本社
            map.addOverlay(marker1);
            
            //大府営業所
            var map2 = new GMap2(document.getElementById("map_canvas2"));
            map2.setCenter(new GLatLng(35.010771, 136.964029), 15);
            map2.addControl(new GLargeMapControl());

            var markerIcon2 = new GIcon();
            markerIcon2.image = "img/mapicon3.gif";
            markerIcon2.iconSize = new GSize(60, 45);
            markerIcon2.iconAnchor = new GPoint(10, 25);
            markerIcon2.infoWindowAnchor = new GPoint(34, 22);
            var opts2 = { icon: markerIcon2 };

            var marker2 = new GMarker(new GLatLng(35.010771, 136.964029), opts2); //大府
            map2.addOverlay(marker2);
            
        }
    }
    ////////鵜森観光マップ用////////////////////////////////////////////
    if (document.getElementById("map") == null) {
    } else {
        if (GBrowserIsCompatible()) {
            var map = new GMap2(document.getElementById("map"));
            map.setCenter(new GLatLng(34.966034, 136.614994), 16);
            map.addControl(new GLargeMapControl());

            //マーカーを表示 「見るアイコン」
            var markerIcon = new GIcon();
            markerIcon.image = "./img/mapicon2.gif";
            markerIcon.iconSize = new GSize(60, 45);
            markerIcon.iconAnchor = new GPoint(10, 25);
            markerIcon.infoWindowAnchor = new GPoint(34, 22);
            var opts = { icon: markerIcon };
            //マーカーを表示 「食べるアイコン」
            var markerIcon2 = new GIcon();
            markerIcon2.image = "./img/mapicon1.gif";
            markerIcon2.iconSize = new GSize(60, 45);
            markerIcon2.iconAnchor = new GPoint(10, 25);
            markerIcon2.infoWindowAnchor = new GPoint(34, 22);
            var opts2 = { icon: markerIcon2 };
            //マーカーを表示 「買い物アイコン」
            var markerIcon3 = new GIcon();
            markerIcon3.image = "./img/mapicon3.gif";
            markerIcon3.iconSize = new GSize(60, 45);
            markerIcon3.iconAnchor = new GPoint(10, 25);
            markerIcon3.infoWindowAnchor = new GPoint(34, 22);
            var opts3 = { icon: markerIcon3 };

            var marker1 = new GMarker(new GLatLng(34.965584, 136.615288), opts3); //本社
            var marker2 = new GMarker(new GLatLng(34.966237, 136.613566), opts2); //ほさか
            var marker3 = new GMarker(new GLatLng(34.96512, 136.613694), opts2); //どんぷく
            var marker4 = new GMarker(new GLatLng(34.966034, 136.614994), opts2); //ハルビン
            var marker5 = new GMarker(new GLatLng(34.964654, 136.616474), opts); //鵜の森公園
            var marker6 = new GMarker(new GLatLng(34.967589, 136.616008), opts); //公園

            map.addOverlay(marker1);
            map.addOverlay(marker2);
            map.addOverlay(marker3);
            map.addOverlay(marker4);
            map.addOverlay(marker5);
            map.addOverlay(marker6);

            //マーカーをクリック時
            //三愛情報
            html = "<table style='border-style:none'><tr><td align='left'><img src='img/maphonsha.gif' /></td><td align='left'><p>三愛情報四日市本社</p></td></tr><tr><td colspan='2' align='left'>〒510-0074<br /> 三重県四日市市鵜の森1-10-7<br />TEL:059-359-0561　FAX:059-359-0562</td></tr></table>";
            marker1.bindInfoWindowHtml(html);
            //ほさか
            html = "<table style='border-style:none'><tr><td align='left'><img src='img/maphosaka.gif' /></td><td align='left'><p>膳処ほさか</p></td></tr><tr><td colspan='2' align='left'>三重県四日市市 鵜の森 1-6-3<br/>TEL:059-350-1712</td></tr></table>";
            marker2.bindInfoWindowHtml(html);
            //どんぷく
            html = "<table style='border-style:none'><tr><td align='left'><img src='img/mapdonpuku.gif' /></td><td align='left'><p>どんぷく</p></td></tr><tr><td colspan='2' align='left'>三重県四日市市 鵜の森 1-12-13<br />TEL:059-354-1115</td></tr></table>";
            marker3.bindInfoWindowHtml(html);
            //ハルビン
            html = "<table style='border-style:none'><tr><td align='left'><img src='img/mapharu.gif' /></td><td align='left'><p>哈尓浜 （ハルピン）</p></td></tr><tr><td colspan='2' align='left'>三重県四日市市 鵜の森 1-10-17<br />TEL:059-351-8199</td></tr></table>";
            marker4.bindInfoWindowHtml(html);
            //鵜森公園
            html = "<table style='border-style:none'><tr><td align='left'><img src='img/unomori.gif' /></td><td align='left'><p>鵜の森公園</p></td></tr><tr><td colspan='2' align='left'>三重県四日市市鵜の森1-13</td></tr></table>";
            marker5.bindInfoWindowHtml(html);
            //市民公園
            html = "<table style='border-style:none'><tr><td align='left'>&nbsp;</td><td align='left'><p>四日市市民公園</p></td></tr><tr><td colspan='2' align='left'>三重県四日市市安島1－3 </td></tr></table>";
            marker6.bindInfoWindowHtml(html);
        }
    }
}

//ブログ//
//最近の記事クリック blg_nakaの処理
function SAIKIN(BLGID) {
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_hidBLGID").value = "";
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_hidBLGID").value = BLGID;
    document.aspnetForm.submit();
}


//blog2.aspxの処理
function KIJI(BLGID) {
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidBLGID2").value = "";
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidBLGID2").value = BLGID;
    document.aspnetForm.submit();
}


//blog.aspxの処理
function OPENIMG(arg_IMAGE) {
    window.open('file/' + arg_IMAGE + '', 'mie2010', 'width=700, height=700, menubar=no, toolbar=no, scrollbars=yes');
}

//編集・削除クリック
function UD(argUD, argUDMODE) {
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidUD").value = "";
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidUDMODE").value = "";
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidUD").value = argUD;
    window.document.getElementById("ctl00_ctl00_ContentPlaceHolderblog_ContentPlaceHolderblog2_hidUDMODE").value = argUDMODE;
    document.aspnetForm.submit();
}


//shinki.aspxの処理
function onclick_INS() {
    var Rtn;
    Rtn = confirm('この内容で投稿しますか？');
    if (Rtn == true) {
        window.document.getElementById("ctl00_ContentPlaceHolderblog_hidMODE").value = "";
        window.document.getElementById("ctl00_ContentPlaceHolderblog_hidMODE").value = "INS";
    } else {
    window.document.getElementById("ctl00_ContentPlaceHolderblog_hidMODE").value = "";
    }
}


//henshu.aspxの処理
//編集ボタン押下時/////////////////////////////////////////////////////////////////////////////////
function onclick_UPD(arg_BLGID) {
    window.document.getElementById("ctl00_ContentPlaceHolderblog_hidBLGID").value = arg_BLGID;
    window.document.getElementById("ctl00_ContentPlaceHolderblog_hidMODE").value = "UPD";
}
//削除ボタン押下時/////////////////////////////////////////////////////////////////////////////////
function onclick_DEL(arg_BLGID) {
    var Rtn;
    window.document.getElementById("ctl00_ContentPlaceHolderblog_hidBLGID").value = "";
    Rtn = confirm('削除しますか？');
    if (Rtn == true) {
        window.document.getElementById("ctl00_ContentPlaceHolderblog_hidBLGID").value = arg_BLGID;
        window.document.getElementById("ctl00_ContentPlaceHolderblog_hidMODE").value = "DEL";
    } else {
    }
}

//リーディング産業展詳細ページオープン/////////////////////////////////////////////////////////////
function onclick_openwin() { 
window.open('leading.aspx','mie2011','width=670, height=850, menubar=no, toolbar=no, scrollbars=no')
}

