// JavaScript Document

//彈出視窗

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//Google Map
function initialize() {

  // 檢查瀏覽器是否可正確執行
  if (GBrowserIsCompatible()) {

    // 指定GMap使用的圖層
    var map = new GMap2(document.getElementById("map"));
   
    // 地圖控制列
    map.addControl(new GLargeMapControl()); // 左側控制列
    map.addControl(new GMapTypeControl()); // 右上控制列
   
    // 座標
    var point = new GLatLng(25.078009807587545,121.5705281496048);
    // 座標x/y於API v1/v2的擺放位址是相反的
    map.setCenter(point, 16); // 放大倍率

    // 自訂圖標
    var TruckIcon = new GIcon(G_DEFAULT_ICON);
    TruckIcon.image = "http://www.linwei.com.tw/image/lenwei_icons.png";
	
    // 自訂圖標座標	
    TruckIcon.iconAnchor = new GPoint(110,55);
    TruckIcon.infoWindowAnchor = new GPoint(110,55);

    // 自訂圖標大小
    TruckIcon.iconSize = new GSize(211, 57);
    markerOptions = { icon:TruckIcon };
   
    // 設定座標點使用自訂圖標
    var marker = new GMarker(point, markerOptions);
    map.addOverlay(marker);

  }
}


//網頁防拷
/*
Copyright by Audi 2006
http://audi.tw
http://www.carousel.com.tw
歡迎應用於無償用途散播，並請勿移除本版權宣告
*/

var omitformtags=["input", "textarea", "select"];
function disableselect(e){for (i = 0; i < omitformtags.length; i++){if (omitformtags[i]==(e.target.tagName.toLowerCase()))return;}return false}
function reEnable(){return true}document.write('<div style="position:absolute;visibility:visible;top:-3000px;left:-3000px;"><form name="_hiddenFrom"><input type="text" value="喔喔!你按Ctrl-A喔!" name="_hiddenText"></form></div>');
if (typeof document.onselectstart=="undefined"){document.onmousedown=disableselect;document.onmouseup=reEnable;}else{document.onmousedown=new Function("return false");document.onmouseup=new Function("return false");}
document.onselectstart=new Function("return false");document.onselect=new Function("return false");document.oncontextmenu=new Function("return false");onload=document._hiddenFrom._hiddenText.focus();

