function check_browser() { var system = {}; var ua = navigator.userAgent.toLowerCase(); var str; (str = ua.match(/msie ([\d.]+)/)) ? system.ie = str[1] : (str = ua.match(/firefox\/([\d.]+)/)) ? system.firefox = str[1] : (str = ua.match(/chrome\/([\d.]+)/)) ? system.chrome = str[1] : (str = ua.match(/opera.([\d.]+)/)) ? system.opera = str[1] : (str = ua.match(/version\/([\d.]+).*safari/)) ? system.safari = str[1] : 0; if (system.ie) { return 1; } else { return 0; } } var browser_type = check_browser(); var _$index = 2012; var _$domain = ''; var _$u = window.document; var _$uc = window.document; try {_$u = window.parent.document;} catch(e) {} function _$gd(){ var s = _$u.location.hostname.split('.'); if( s.length > 0 ) { s[0] = ''; _$domain = s.join('.'); } } _$gd(); function _$getcookie(name) { var cV = end = ""; var cookiename = name + "="; if (_$uc.cookie.length && cV == '') { _$0g = _$uc.cookie.indexOf(cookiename); if (_$0g > -1) { _$0g += cookiename.length; end = _$uc.cookie.indexOf(";", _$0g); if (end == -1) end = _$uc.cookie.length; cV = unescape(_$uc.cookie.substring(_$0g, end)); } }; return cV }; function _$setcookie(name, value, hour) { var _$0j = ""; if (_$uc.cookie.length) { _$0j = new Date((new Date()).getTime() + 24 * 360000); _$0j = "; expires=" + _$0j.toGMTString(); _$uc.cookie = name + "=" + escape(value) + _$0j + ";domain="+_$domain+";path=/;" } }; var $0dr = _$u.body.childNodes; var $0t = 'efefef'; var $DefaultDatas = ''; var $0v; var $img = new Array(); //$img['0'] = '#3B5872'; //$img['1'] = '#7B6138'; //$img['2'] = '#59516E'; //$img['3'] = '#7B3F3F'; //$img['4'] = '#B97C7B'; //$img['5'] = '#53663B'; //$img['6'] = '#365F83'; //$img['7'] = '#3B5872'; //$img['0'] = '#2D679A'; var $length = _$getcookie('LA_M_Depth') == '' ? '0' : _$getcookie('LA_M_Depth'); var $position = 'common'; var $areatype = 'tagelement'; if( browser_type == '1' ) var $fontsize = '12px'; else var $fontsize = '12px'; $length = parseInt($length); if( $length <= 0 ) $length = 3; var _$AllEleInfo = new Array(); var $haveIndexarr = []; function parseHtmlElepos(newpos) { var posarr = newpos.split('-'); return posarr[0] + '-' + posarr[1] + '-' + posarr[2] + '-'; } function _$parseHtmlAllTag(a,p,t) { var f = 0,hidden = 0,psttagid = ''; var posstr = ''; var posarr = new Array(); for (var e = 0; e < a.length; e++) { if(a[e].tagName && a[e].tagName != '!' && a[e].tagName != 'SCRIPT') { hidden = (a[e].getAttribute('phpstathidden') || '0'); psttagid = (a[e].getAttribute('latag') || ''); if(hidden == '1' || hidden == 'true') { continue; } f++; if( p != '' ) { posstr = p.toString()+'-'+f.toString(); posarr = posstr.split('-'); } else { posstr = f; posarr[0] = ''; } var b = a[e].childNodes; var $indexid = ''; if( t == 'tagposetion' && posarr.length == $length && ( $position == 'all_ordercommon' || $position == 'common' ) ) { if( $length > 3 ) { $indexid = parseHtmlElepos(posstr); $haveIndexarr[$indexid] = $indexid; } a[e].pos = posstr; a[e].otherlay = 'common'; //a[e].href = (a[e].href||''); _$AllEleInfo.push(a[e]); } else if( t == 'tagposetion' && $length >= 6 && posarr.length == 3 && ( $position == 'all_ordercommon' || $position == 'common' ) ) { a[e].pos = posstr; a[e].otherlay = 'otherlay'; //a[e].href = (a[e].href||''); _$AllEleInfo.push(a[e]); } else if(t == 'tagelement' && (/input|textarea|^a$|select|button/i.test(a[e].tagName))) { a[e].pos = posstr; a[e].otherlay = 'otherlay'; //a[e].href = (a[e].href||''); _$AllEleInfo.push(a[e]); } else { for(var $ii = 0;$ii<_$PositionArr.length;$ii++) { if( _$PositionArr[$ii] == posstr ) { a[e].pos = posstr; a[e].href = (a[e].href||''); _$AllEleInfo.push(a[e]); } } } if( t == 'tagposetion' && posarr.length > $length && ( $position == 'all_ordercommon' || $position == 'common' ) ) { return; } _$parseHtmlAllTag(b,posstr,t); } } } function _$parseHtmlATag(a,p) { var f = 0; var posstr = ''; var posarr = new Array(); for (var e = 0; e < a.length; e++) { if(a[e].tagName && a[e].tagName != '!' && a[e].tagName != 'SCRIPT') { f++; if( p != '' ) { posstr = p+'-'+f; posarr = posstr.split('-'); } else { posstr = f; posarr[0] = ''; } var b = a[e].childNodes; if(a[e].tagName == 'A') { a[e].pos = posstr; a[e].href = (a[e].href||''); _$AllEleInfo.push(a[e]); } _$parseHtmlATag(b,posstr); } } } function _$parseHtmlIdTag(a) { var ntagid = ''; var tagid = '', psttagid = ''; for (var e = 0; e < a.length; e++) { if(a[e].tagName && a[e].tagName != '!' && a[e].tagName != 'SCRIPT') { tagid = (a[e].id || ''); psttagid = (a[e].getAttribute('latag') || ''); ntagid = psttagid ? psttagid : tagid; var b = a[e].childNodes; if(ntagid) { a[e].pos = ntagid; _$AllEleInfo.push(a[e]); } _$parseHtmlIdTag(b); } } } function _$parseHtmlElementTag(a) { var ntagid = ''; var tagid = '', psttagid = ''; for (var e = 0; e < a.length; e++) { if((/input|textarea|img|a|select|button/i.test(a[e].tagName))) { tagid = (a[e].id || ''); psttagid = (a[e].getAttribute('latag') || ''); ntagid = psttagid ? psttagid : tagid; var b = a[e].childNodes; if(ntagid) { a[e].pos = ntagid; _$AllEleInfo.push(a[e]); } _$parseHtmlElementTag(b); } } } var clickmapcode = 'md5_16';