Warning: fopen(temp_ip/count/38.107.191.86): failed to open stream: No space left on device in /home/httpd/vhosts/432.tw/httpdocs/banip.php on line 10
//==========================================================================================================
//PC home Online 網路家庭的文字、圖片、資料、商標、標識、及網頁設計等皆受中華民國相關智慧財產權法令的保護。
//嚴禁任何未經事先同意的非法轉載和使用。若經查知,PC home Online 網路家庭將採取必要之法律行動
//==========================================================================================================
var MapStatus = {
id: 'PhotoMap',
Map: '',
MapPosX: 15,
MapPosY: 15,
MapWidth: 800,//695
MapHeight: 500,
MapZoom: 9,
MapEnviSet: [25.048073112708416, 121.51727859255477, 9, 0],
PhotoMapMainSet: [24.802955282773308, 121.23891801399003, 2],
PhotoMapMainSW: [24.23931893112017, 119.99636438830363],
PhotoMapMainNE: [25.356055137563284, 122.49257976084115],
MapType: 'U_MAP_TYPE',
InnerBlock: 5 + 29,
Marker: '',
NormalPoint: '',
DragFlag: false,
MoveDistX: 0,
MoveDistY: 0,
WinPosX: 0,
WinPosY:0,
FuncWinDrag: '',
WinPrint: '',
MapAction: 'None',
MapMode: 'Normal',
UrlVars: '',
PointFlag: false,
SearchFlag: false,
SearchBFlag: false,
getZoomArray: [],
Keyword: '',
IntervalID: '',
TimerIntervalID: '',
JumperElementSet: ['JumperLT', 'JumperMT', 'JumperRT', 'JumperLM', 'JumperRM', 'JumperLB', 'JumperMB', 'JumperRB'],
JumperSet: ['None', false],
getOMarker: [],
Browser: identifyBrowser(),
BrowserPNGfix: 'ie5,ie5mac,ie5.5,ie6',
Refer: GetRefer(),
MapInit: function() {
if (!$('map')) return;
var ElementPosArray = getPosition($('map'));
var GetBody = document.getElementsByTagName('body')[0];
if (!GBrowserIsCompatible() || !$('map')) return;
this.Map = new GMap2($('map'));
this.Map.addControl(new GScaleControl());
this.Map.setMapType(G_NORMAL_MAP);
this.Map.disableDoubleClickZoom();
this.Map.setCenter(new GLatLng(this.MapEnviSet[0], this.MapEnviSet[1]), this.MapEnviSet[2]);
GEvent.addListener(this.Map, 'click', function(overlay, LatLng, overlaylatlng) { if (!overlay && OImgPreviewer.ImgPreviewerPicker) OImgPreviewer.ImgPreviewerPicker.ClearWin(); });
GEvent.addListener(this.Map, 'dragstart', function() { if (OImgPreviewer.ImgPreviewerPicker) OImgPreviewer.ImgPreviewerPicker.ClearWin(); });
GEvent.addListener(this.Map, 'moveend', function() { if ($('WinInfoB').isVisible) { $('WinInfoB').style.left = $('WinInfoB').PosX + 'px'; $('WinInfoB').style.top = $('WinInfoB').PosY + 'px'; Element.show('WinInfoB'); }; });
GEvent.addListener(this.Map, 'zoomend', function(oldLevel,newLevel) { MapStatus.ZoomSetInit('ReOrg'); if (OImgPreviewer.ImgPreviewerPicker) OImgPreviewer.ImgPreviewerPicker.ClearWin(); });
Event.observe($('map'), "mousedown", function() { if (OImgPreviewer.ImgPreviewerPicker) OImgPreviewer.ImgPreviewerPicker.ClearWin(); }, false);
Event.observe($('map'), "mouseup", MapStatus.StoreEnviSet, false);
Event.observe($('map'), "mousewheel", MapStatus.MouseRollAction, false);
Event.observe($('map'), "DOMMouseScroll", MapStatus.MouseRollAction, false);
//IconSetInit
this.IconSetInit();
//MapJumper
for (var i=0; i 19) FuncID = 19;
}
var getMapType = this.Map.getCurrentMapType();
if (FuncID > getMapType.getMaximumResolution()) FuncID = getMapType.getMaximumResolution();
if (this.BrowserPNGfix.indexOf(this.Browser) != -1) {
this.getZoomArray[this.MapZoom].style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/img/Map/GZoom/Zoom_'+this.MapZoom+'_Out.png, sizingMethod=scale)';
this.getZoomArray[FuncID].style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/img/Map/GZoom/Zoom_'+FuncID+'_Func.png, sizingMethod=scale)';
} else {
this.getZoomArray[this.MapZoom].style.background = 'url(/img/Map/GZoom/Zoom_'+this.MapZoom+'_Out.png)';
this.getZoomArray[FuncID].style.background = 'url(/img/Map/GZoom/Zoom_'+FuncID+'_Func.png)';
}
this.MapZoom = FuncID;
if (LatLng == undefined) this.Map.setZoom(FuncID);
else { this.Map.setZoom(this.MapZoom); this.Map.setCenter(LatLng, this.MapZoom); }
if (this.MapMode != 'Print') this.StoreEnviSet();
},
MouseRollAction: function(e) {
(Event.wheel(e) > 0) ? MapStatus.ZoomClickAction('-') : MapStatus.ZoomClickAction('+');
},
IconSetInit: function() {
//Normal
this.NormalPoint = new GIcon();
this.NormalPoint.image = (MapType == 'Photo') ? '/img/Map/IconViewOut2.png' : '/img/Map/IconViewOut.png';
this.NormalPoint.shadow = '/img/Map/IconShadow.png';
this.NormalPoint.iconSize = new GSize(23, 27);
this.NormalPoint.iconAnchor = new GPoint(11, 27);
//Func
this.FuncPoint = new GIcon();
this.FuncPoint.image = (MapType == 'Photo') ? '/img/Map/IconViewFunc2.png' : '/img/Map/IconViewFunc.png';
this.FuncPoint.shadow = '/img/Map/IconShadow.png';
this.FuncPoint.iconSize = new GSize(23, 27);
this.FuncPoint.iconAnchor = new GPoint(11, 27);
},
WinInfoBInit: function(Content) {
$('WinInfoBMid').style.height = '';
$('WinInfoBMain').style.height = '';
$('WinInfoBMidShadow').style.height = '';
$('ImgCounter').innerHTML = '';
$('ImgTitleSet').innerHTML = '';
var getHeight = $('WinInfoBMain').getHeight();
if (getHeight == 0) getHeight = 121;
$('WinInfoBMid').style.height = getHeight + 'px';
$('WinInfoBMain').style.height = getHeight + 'px';
$('WinInfoBMidShadow').style.height = getHeight + 'px';
if (CurrentStatus.BrowserPNGfix.indexOf(CurrentStatus.Browser) != -1) {
$('WinInfoBMidShadow').style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src=/img/Map/WinInfoB/BackRM.png, sizingMethod=scale)';
}//end if
return getHeight+30+14;
},
Back2POI: function() {
OImgPreviewer.ImgPreviewerPicker.ClearWin();
this.ZoomClickAction(this.ViewOMarker[0], this.ViewOMarker[1]);
},
ResizeEvent: function() {
var PageSize = getPageSize();
var SetWidth = 0;
var SetHeight = 0;
SetWidth = PageSize[2];
SetHeight = PageSize[3];
MapStatus.MapWidth = (MapType == 'Main') ? 985 : 860;
MapStatus.MapHeight = (MapType == 'Main') ? 490 : 485;
var ElementPosArray = getPosition($('map'));
$('map').style.width = MapStatus.MapWidth + 'px';
$('map').style.height = MapStatus.MapHeight + 'px';
MapStatus.MapPosX = ElementPosArray[0];
MapStatus.MapPosY = ElementPosArray[1];
//Jumper
$('JumperMT').style.width = (MapStatus.MapWidth - 40) + 'px';
$('JumperLM').style.height = (MapStatus.MapHeight - 40) + 'px';
$('JumperRM').style.height = (MapStatus.MapHeight - 40) + 'px';
$('JumperMB').style.width = (MapStatus.MapWidth - 40) + 'px';
//BackPOI
$('BackPOI').style.left = (MapStatus.MapWidth - 29 - 5 ) + 'px';
$('BackPOI').style.top = '5px';
//PickerSection
$('PickerSection').style.left = MapStatus.MapPosX + MapStatus.MapWidth - 176 - 50 + 'px';
//$('PickerSection').style.left = MapStatus.MapPosX + 'px';
//Style
/*if (CurrentStatus.NeedFixBack.indexOf(StyleID) != -1 && CurrentStatus.Browser.indexOf('ie') != -1) {
var GetPageSize = getPageSize();
var PosX = GetPageSize[2]/2;
switch (StyleID) {
case 5:
PosX = Math.floor(PosX-1479/2);
break;
case 6:
PosX = Math.floor(PosX-1408/2);
break;
case 9:
PosX = Math.floor(PosX-1783/2);
break;
}//end switch
document.getElementsByTagName('body')[0].style.backgroundPosition = PosX + 'px 0px';
}//end if*/
MapStatus.Map.checkResize();
MapStatus.StoreEnviSet();
},
GetCookie: function(SearchID) {
if (!document.cookie) return false;
var Cookies = document.cookie.replace(/ /g, '').split(';');
if (Cookies.length == 0) return false;
for (var i=0; i 1) { Element.show('BtnRollingL'); Element.show('BtnRollingR'); }
else { Element.hide('BtnRollingL'); Element.hide('BtnRollingR'); }
var PhotoIconInfo = [];
for (var i=0; i (MapStatus.MapWidth - MapStatus.InnerBlock - 155 - 200)) {
FlagX = true;
if (MouseX < (MapStatus.InnerBlock + 151)) {
MenuX = MapStatus.InnerBlock;
CentalX -= MapStatus.InnerBlock + 151 - MouseX;
} else {
MenuX = MapStatus.MapWidth - MapStatus.InnerBlock - 305 - 200;
CentalX += (MapStatus.InnerBlock + 155 + 200) - (MapStatus.MapWidth - MouseX);
}//end if
} else MenuX = MouseX - 151;
MenuX += MapStatus.MapPosX;
if (MouseY < (MapStatus.InnerBlock + WinHeight) || MouseY > (MapStatus.MapHeight - MapStatus.InnerBlock)) {
FlagY = true;
if (MouseY < (MapStatus.InnerBlock + WinHeight)) {
MenuY = MapStatus.InnerBlock;
CentalY -= MapStatus.InnerBlock + WinHeight - MouseY;
} else {
MenuY = MapStatus.MapHeight - MapStatus.InnerBlock - WinHeight;
CentalY += MouseY - (MapStatus.MapHeight - MapStatus.InnerBlock);
}//end if
} else MenuY = MouseY - WinHeight;
MenuY += MapStatus.MapPosY;
//shift map
$('WinInfoB').PosX = MenuX;
$('WinInfoB').PosY = MenuY;
if (FlagX || FlagY) {
Element.hide('WinInfoB');
var NewCenter = MapStatus.Map.fromContainerPixelToLatLng(new GPoint(CentalX, CentalY));
var GetBounds = MapStatus.Map.getBounds();
MapStatus.Map.setZoom(MapStatus.MapZoom)
MapStatus.Map.panTo(NewCenter);
if (!GetBounds.contains(NewCenter)) {
$('WinInfoB').style.left = MenuX + 'px';
$('WinInfoB').style.top = MenuY + 'px';
Element.show('WinInfoB');
}
} else {
$('WinInfoB').style.left = MenuX + 'px';
$('WinInfoB').style.top = MenuY + 'px';
Element.show('WinInfoB');
}//end if
$('WinInfoB').isVisible = true;
//Route
if (typeof(RouteModuleClass) != 'undefined') RouteModuleClass.ResetRSSEns();
}
};