1/* 2============================================================ 3 menu 4============================================================ 5*/ 6var _path; 7var _startLoad = 0; 8var _menuItem = new Array (); 9var _smenuItem = new Array (); 10 11function menuPreload (path, content) { 12 13 switch (path) { 14 case "search": 15 _path = "http://www.yamaguchibank.co.jp/"; 16 break; 17 18 case 1: 19 _path = "./"; 20 break; 21 22 default: 23 _path = ""; 24 for (var _i = 1; _i < path; _i ++) { 25 _path += "../"; 26 } 27 break; 28 } 29 30 31 _menuItem[0] = new Image (); _menuItem[0].src = _path + "img/menu_portal_off.gif"; 32 _menuItem[1] = new Image (); _menuItem[1].src = _path + "img/menu_portal_on.gif"; 33 _menuItem[2] = new Image (); _menuItem[2].src = _path + "img/menu_personal_off.gif"; 34 _menuItem[3] = new Image (); _menuItem[3].src = _path + "img/menu_personal_on.gif"; 35 _menuItem[4] = new Image (); _menuItem[4].src = _path + "img/menu_corporate_off.gif"; 36 _menuItem[5] = new Image (); _menuItem[5].src = _path + "img/menu_corporate_on.gif"; 37 _menuItem[6] = new Image (); _menuItem[6].src = _path + "img/menu_recruit_off.gif"; 38 _menuItem[7] = new Image (); _menuItem[7].src = _path + "img/menu_recruit_on.gif"; 39 _menuItem[8] = new Image (); _menuItem[8].src = _path + "img/menu_outline_off.gif"; 40 _menuItem[9] = new Image (); _menuItem[9].src = _path + "img/menu_outline_on.gif"; 41 42 switch (content) { 43 case "portal": 44 _smenuItem[0] = new Image (); _smenuItem[0].src = _path + "img/" + content + "/smenu_news_off.gif"; 45 _smenuItem[1] = new Image (); _smenuItem[1].src = _path + "img/" + content + "/smenu_news_on.gif"; 46 _smenuItem[2] = new Image (); _smenuItem[2].src = _path + "img/" + content + "/smenu_safety_off.gif"; 47 _smenuItem[3] = new Image (); _smenuItem[3].src = _path + "img/" + content + "/smenu_safety_on.gif"; 48 _smenuItem[4] = new Image (); _smenuItem[4].src = _path + "img/" + content + "/smenu_information_off.gif"; 49 _smenuItem[5] = new Image (); _smenuItem[5].src = _path + "img/" + content + "/smenu_information_on.gif"; 50 _smenuItem[6] = new Image (); _smenuItem[6].src = _path + "img/" + content + "/smenu_special_off.gif"; 51 _smenuItem[7] = new Image (); _smenuItem[7].src = _path + "img/" + content + "/smenu_special_on.gif"; 52 break; 53 54 case "personal": 55 _smenuItem[0] = new Image (); _smenuItem[0].src = _path + "img/" + content + "/smenu_campaign_off.gif"; 56 _smenuItem[1] = new Image (); _smenuItem[1].src = _path + "img/" + content + "/smenu_campaign_on.gif"; 57 _smenuItem[2] = new Image (); _smenuItem[2].src = _path + "img/" + content + "/smenu_save_off.gif"; 58 _smenuItem[3] = new Image (); _smenuItem[3].src = _path + "img/" + content + "/smenu_save_on.gif"; 59 _smenuItem[4] = new Image (); _smenuItem[4].src = _path + "img/" + content + "/smenu_operating_off.gif"; 60 _smenuItem[5] = new Image (); _smenuItem[5].src = _path + "img/" + content + "/smenu_operating_on.gif"; 61 _smenuItem[6] = new Image (); _smenuItem[6].src = _path + "img/" + content + "/smenu_borrow_off.gif"; 62 _smenuItem[7] = new Image (); _smenuItem[7].src = _path + "img/" + content + "/smenu_borrow_on.gif"; 63 _smenuItem[8] = new Image (); _smenuItem[8].src = _path + "img/" + content + "/smenu_prepare_off.gif"; 64 _smenuItem[9] = new Image (); _smenuItem[9].src = _path + "img/" + content + "/smenu_prepare_on.gif"; 65 _smenuItem[10] = new Image (); _smenuItem[10].src = _path + "img/" + content + "/smenu_convenience_off.gif"; 66 _smenuItem[11] = new Image (); _smenuItem[11].src = _path + "img/" + content + "/smenu_convenience_on.gif"; 67 break; 68 69 case "corporate": 70 _smenuItem[0] = new Image (); _smenuItem[0].src = _path + "img/" + content + "/smenu_finance_off.gif"; 71 _smenuItem[1] = new Image (); _smenuItem[1].src = _path + "img/" + content + "/smenu_finance_on.gif"; 72 _smenuItem[2] = new Image (); _smenuItem[2].src = _path + "img/" + content + "/smenu_operating_off.gif"; 73 _smenuItem[3] = new Image (); _smenuItem[3].src = _path + "img/" + content + "/smenu_operating_on.gif"; 74 _smenuItem[4] = new Image (); _smenuItem[4].src = _path + "img/" + content + "/smenu_risk-hedge_off.gif"; 75 _smenuItem[5] = new Image (); _smenuItem[5].src = _path + "img/" + content + "/smenu_risk-hedge_on.gif"; 76 _smenuItem[6] = new Image (); _smenuItem[6].src = _path + "img/" + content + "/smenu_consultation_off.gif"; 77 _smenuItem[7] = new Image (); _smenuItem[7].src = _path + "img/" + content + "/smenu_consultation_on.gif"; 78 _smenuItem[8] = new Image (); _smenuItem[8].src = _path + "img/" + content + "/smenu_efficiency_off.gif"; 79 _smenuItem[9] = new Image (); _smenuItem[9].src = _path + "img/" + content + "/smenu_efficiency_on.gif"; 80 break; 81 82 case "recruit": 83 _smenuItem[0] = new Image (); _smenuItem[0].src = _path + "img/" + content + "/smenu_fresh_off.gif"; 84 _smenuItem[1] = new Image (); _smenuItem[1].src = _path + "img/" + content + "/smenu_fresh_on.gif"; 85 _smenuItem[2] = new Image (); _smenuItem[2].src = _path + "img/" + content + "/smenu_career_off.gif"; 86 _smenuItem[3] = new Image (); _smenuItem[3].src = _path + "img/" + content + "/smenu_career_on.gif"; 87 _smenuItem[4] = new Image (); _smenuItem[4].src = _path + "img/" + content + "/smenu_part_off.gif"; 88 _smenuItem[5] = new Image (); _smenuItem[5].src = _path + "img/" + content + "/smenu_part_on.gif"; 89 break; 90 91 default: 92 break; 93 } 94 95 _startLoad = 1; 96} 97 98function menuRoll (imgName, num) { 99 if (_startLoad == 1) { 100 if (document.images) document.images[imgName].src=_menuItem[num].src; 101 } 102} 103 104function smenuRoll (imgName, num) { 105 if (_startLoad == 1) { 106 if (document.images) document.images[imgName].src=_smenuItem[num].src; 107 } 108} 109 110 111/* 112============================================================ 113 Open Window 114============================================================ 115*/ 116function openFullWin (uri, wName, toolbarFlg, locationFlg, menubarFlg) { 117 var option = "width=780"; 118 option += ",left=0"; 119 option += ",top=0"; 120 if (toolbarFlg) { 121 option += ",toolbar=yes"; 122 } else { 123 option += ",toolbar=no"; 124 } 125 if (locationFlg) { 126 option += ",location=yes"; 127 } else { 128 option += ",location=no"; 129 } 130 if (menubarFlg) { 131 option += ",menubar=yes"; 132 } else { 133 option += ",menubar=no"; 134 } 135 option += ",directories=no"; 136 option += ",status=yes"; 137 option += ",scrollbars=yes"; 138 option += ",resizable=yes"; 139 140 window.open (uri, wName, option).focus (); 141} 142 143function openInternetBanking (content, type) { 144 switch (content) { 145 case "personal": 146 switch (type) { 147 case "attention": 148 this.openFullWin ('https://www.inb.yamaguchibank.chance.co.jp/int/banking?_TRANID=INBLGNLGN001_001', content + "_" + type, 0, 1, 1); 149 break; 150 151 case "login": 152 this.openFullWin ('https://www.inb.yamaguchibank.chance.co.jp/int/banking?_TRANID=INBLGNLGN001_001', content + "_" + type, 0, 1, 1); 153 break; 154 155 case "online": 156 this.openFullWin ('https://www.inb.yamaguchibank.chance.co.jp/signup/int?_TRANID=INBONLTOP001_001', content + "_" + type, 0, 1, 1); 157 break; 158 159 case "kikan": 160 this.openFullWin (_path +"personal/convenience/i-banking/sample/kikan.html", content + "_" + type, 0, 1, 1); 161 break; 162 163 case "guide": 164 if (_path) { 165 location.href = _path + "personal/convenience/i-banking/"; 166 } 167 break; 168 169 default: 170 break; 171 } 172 break; 173 174 case "corporate": 175 switch (type) { 176 case "attention": 177 if (_path) { 178 this.openFullWin (_path + "corporate/i-banking/attention/", content + "_" + type, 0, 1, 1); 179 } 180 break; 181 182 case "login": 183 if (_path) { 184 this.openFullWin (_path + "corporate/i-banking/rapport/", content + "_" + type, 0, 1, 1); 185 } 186 break; 187 188 case "ssl": 189 if (_path) { 190 this.openFullWin (_path + "corporate/i-banking/sample/ssl.html", content + "_" + type, 0, 1, 1); 191 } 192 break; 193 194 case "guide": 195 if (_path) { 196 location.href = _path + "corporate/i-banking/"; 197 } 198 break; 199 200 default: 201 break; 202 } 203 break; 204 205 default: 206 break; 207 } 208 209} 210function openPop(fi,na,w,h) { 211 var popWidth = 780; 212 var popHeight = 800; 213 if(w) { 214 popWidth = w; 215 } 216 if(h) { 217 popHeight = h; 218 } 219 window.open(fi,na,"width="+popWidth+",height="+popHeight+",left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,favorites=no,resizable=yes").focus(); 220} 221function openGwebTrial() { 222 window.open("trial/test1.html","gwebTrial","width=1024,height=800,left
222=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,favorites=no,resizable=yes").focus(); 223} 224function openGweb() { 225 window.open("https://www.bizsol.anser.ne.jp/0170c/rblgi01/I1RBLGI01-S01.do?slv=0&FES=TOP","gweb","width=1024,height=800,left=0,top=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,favorites=no,resizable=yes").focus(); 226} 227function openSun () { 228 if (_path) { 229 this.openFullWin (_path + "personal/save/sun/", "sun", 1, 0, 1); 230 } 231} 232function openService () { 233 if (_path) { 234 this.openFullWin (_path + "personal/convenience/service/", "service", 1, 0, 1); 235 } 236} 237 238function openWAM () { 239 window.open ("https://www.wam.abic.co.jp/contents/C130170/portal/8flyic1hppxn.html", "WAM_StartMenu", "toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars=1,width=790,height=544,titlebar=0"); 240} 241 242function openFullScreenWin (uri, wName, toolbarFlg, locationFlg, menubarFlg) { 243 var option = "width="; 244 option += screen.width; 245 option += ",height=0"; 246 option += screen.height; 247 option += ",left=0"; 248 option += ",top=0"; 249 if (toolbarFlg) { 250 option += ",toolbar=yes"; 251 } else { 252 option += ",toolbar=no"; 253 } 254 if (locationFlg) { 255 option += ",location=yes"; 256 } else { 257 option += ",location=no"; 258 } 259 if (menubarFlg) { 260 option += ",menubar=yes"; 261 } else { 262 option += ",menubar=no"; 263 } 264 option += ",directories=no"; 265 option += ",status=yes"; 266 option += ",scrollbars=yes"; 267 option += ",resizable=yes"; 268 269 window.open (uri, wName, option).focus (); 270} 271 272/* 273============================================================ 274 Open Google Maps API 275============================================================ 276*/ 277function openGmaps (area, point) { 278 if (area && point && _path) { 279 var uri = _path + "outline/store/map/" + area + "_" + point + ".html"; 280 281 var option = "width=467"; 282 option += ",height=488"; 283 option += ",left=0"; 284 option += ",top=0"; 285 option += ",toolbar=yes"; 286 option += ",location=no"; 287 option += ",menubar=no"; 288 option += ",directories=no"; 289 option += ",status=no"; 290 option += ",scrollbars=yes"; 291 option += ",resizable=yes"; 292 293 window.open (uri, area + "_" + point, option).focus (); 294 } 295} 296 297function setGmapsWindow (area, point) { 298 if (area && point) { 299 resizeGmapsWindow (); 300 document.getElementById ("gmapIframe").innerHTML = '<iframe src="./gmaps_' + area + '_' + point + '.html" scrolling="no" frameborder="0" title="g_map"></iframe>'; 301 302 window.onresize = resizeGmapsWindow; 303 } 304} 305 306function resizeGmapsWindow () { 307 var minWidth = 450; 308 var minHeight = 450; 309 310 var windowWidth = window.innerWidth || document.body.clientWidth || document.documentElement.clientWidth || document.body.outerWidth; 311 var windowHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight || document.body.outerHeight; 312 313 if (minWidth < windowWidth) { 314 var width = "100%"; 315 } else { 316 var width = minWidth + "px"; 317 } 318 319 if (minHeight + 35 < windowHeight) { 320 var height = (windowHeight - 35) + "px"; 321 } else { 322 var height = minHeight + "px"; 323 } 324 325 if (document.layers) { 326 document.layers["titleArea"].width = width; 327 document.layers["gmapIframe"].width = width; 328 document.layers["gmapIframe"].height = height; 329 } else if (document.all) { 330 document.all ("titleArea").style.width = width; 331 document.all ("gmapIframe").style.width = width; 332 document.all ("gmapIframe").style.height = height; 333 } else if (!document.all && document.getElementById) { 334 document.getElementById ("titleArea").style.width = width; 335 document.getElementById ("gmapIframe").style.width = width; 336 document.getElementById ("gmapIframe").style.height = height; 337 } 338} 339 340 341/* 342============================================================ 343 Window Close 344============================================================ 345*/ 346function windowClose () { 347 window.opener = window; 348 var win = window.open (location.href, "_self"); 349 win.close (); 350} 351 352 353/* 354============================================================ 355 get year 356============================================================ 357*/ 358function getYear () { 359 var dateObj = new Date (); 360 document.write (dateObj.getFullYear ()); 361}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.