You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

229 lines
10 KiB
JavaScript

addthis_pub = 'chinatravel';
obox_pub = '3h';
document.write('<script language="javascript" type="text/javascript" src="/js/addthis_widget.js"></script>');
if (typeof obox3h == "undefined") {
var h_arry = new Array();
h_arry['font-xx-small'] = ['xx-small', 'xx-small'];
h_arry['font-x-small'] = ['x-small', 'x-small'];
h_arry['font-small'] = ['small', 'small'];
h_arry['font-medium'] = ['medium', 'medium'];
h_arry['font-large'] = ['large', 'large'];
h_arry['font-x-large'] = ['x-large', 'x-large'];
h_arry['font-xx-large'] = ['xx-large', 'xx-large'];
h_arry['color-000000'] = ['color-000000', '000001'];
h_arry['color-666666'] = ['color-666666', '666666'];
h_arry['color-003366'] = ['color-003366', '003366'];
h_arry['color-6699CC'] = ['color-6699CC', '6699CC'];
h_arry['color-663366'] = ['color-663366', '663366'];
h_arry['color-666699'] = ['color-666699', '666699'];
h_arry['color-006633'] = ['color-006633', '006633'];
h_arry['color-669900'] = ['color-669900', '669900'];
h_arry['color-990000'] = ['color-990000', '990000'];
h_arry['color-CC6666'] = ['color-CC6666', 'CC6666'];
h_arry['color-FF3300'] = ['color-FF3300', 'FF3300'];
h_arry['color-FF9933'] = ['color-FF9933', 'FF9933'];
function h_$(a) {
return document.getElementById(a);
}
function obox_clearclosewin3h() {
if (typeof h_cto != "undefined") clearTimeout(h_cto);
}
function obox_open(at15a, at15E, at15e, at15U) {
var at15u = 020;
var at15Z = at15a.getElementsByTagName('img');
if (at15Z && at15Z[0]) {
at15a = at15Z[0];
at15u = 0;
}
var at15z = h_X(at15a);
var at15x = at15z[0] + obox_offset_left;
var at15W = at15z[1] + at15u + 1 + obox_offset_top;
var at15w = h_V();
var at15v = h_T();
var at15t = h_$('obox_dd_3h');
at15t.style.display = 'block';
if (at15x - at15v[0] + at15t.clientWidth + 024 > at15w[0]) at15x = at15x - at15t.clientWidth + 062;
if (at15W - at15v[1] + at15t.clientHeight + at15a.clientHeight + 024 > at15w[1]) at15W = at15W - at15t.clientHeight - 024;
at15t.style.left = at15x + 'px';
at15t.style.top = (at15W + at15a.clientHeight) + 'px';
if (obox_hide_embed) {
var at15S = at15x + at15t.clientWidth;
var at15s = at15W + at15t.clientHeight;
var at15R = document.getElementsByTagName('embed');
var at15r = 0,
at15Q = 0,
at15q = 0;
for (at15P = 0; at15P < at15R.length; at15P++) {
at15r = h_X(at15R[at15P]);
at15Q = at15r[0];
at15q = at15r[1];
if (at15x < at15Q + at15R[at15P].clientWidth && at15W < at15q + at15R[at15P].clientHeight) {
if (at15S > at15Q && at15s > at15q) {
if (at15R[at15P].style.visibility != 'hidden') {
at15R[at15P].at15p = true;
at15R[at15P].style.visibility = 'hidden';
}
}
}
}
}
return false;
}
function obox_close() {
h_cto = setTimeout("obox_closewin3h()", 0764);
}
function obox_closewin3h() {
var at15t = h_$('obox_dd_3h');
at15t.style.display = 'none';
var at15R = document.getElementsByTagName('embed');
if (obox_hide_embed) {
for (at15P = 0; at15P < at15R.length; at15P++) {
if (at15R[at15P].at15p) at15R[at15P].style.visibility = 'visible';
}
}
return false;
}
function h_X(at15h) {
var at15G = 0,
at15g = 0;
do {
at15G += at15h.offsetTop || 0;
at15g += at15h.offsetLeft || 0;
at15h = at15h.offsetParent;
} while ( at15h );
return [at15g, at15G];
}
function h_V() {
var at15F = 0;
var at15f = 0;
if (typeof(window.innerWidth) == 'number') {
at15F = window.innerWidth;
at15f = window.innerHeight;
} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
at15F = document.documentElement.clientWidth;
at15f = document.documentElement.clientHeight;
} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
at15F = document.body.clientWidth;
at15f = document.body.clientHeight;
}
return [at15F, at15f];
}
function h_T() {
var at15D = 0;
var at15d = 0;
if (typeof(window.pageYOffset) == 'number') {
at15d = window.pageYOffset;
at15D = window.pageXOffset;
} else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) {
at15d = document.body.scrollTop;
at15D = document.body.scrollLeft;
} else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) {
at15d = document.documentElement.scrollTop;
at15D = document.documentElement.scrollLeft;
}
return [at15D, at15d];
}
function h_C() {
var at15c = document.createElement('link');
at15c.rel = 'stylesheet';
at15c.type = 'text/css';
at15c.href = obox_css;
at15c.media = 'all';
document.lastChild.firstChild.appendChild(at15c);
}
function h_B() {
h_b();
h_C();
var at15o0 = '<div id="obox_dd_3h" onmouseover="obox_clearclosewin3h()" onmouseout="obox_close()" style="z-index: 1000000; position: absolute; display: none">';
at15o0 += '<table width="100%" cellpadding="2" cellspacing="0" style="background-color: #EEEEEE; height: 18px">';
at15o0 += '<tr><td style="font-size: 12px; color: #666666; padding-left:3px"><span id="h_caption_3h">Size&nbsp;&amp;&nbsp;Color</span></td><td align="right" style="font-size: 9px; color: #666666; padding-right: 3px">' + obox_brand + '</td></tr>';
at15o0 += '</table>';
var at15O0 = false;
at15o0 += '<div id="h_pagefont_3h">';
at15o0 += '<table id="addthis_services" width="100%" cellpadding="0" style="font-family: Verdana, Arial; font-size: 11px">';
at15o0 += '<tr><td colspan="2" style="height: 0px"></td></tr>';
at15o0 += '<tr><td width=\"70%\" valign="top"><table>';
var at15m = obox_options.split(',');
for (var at15P = 0; at15P < at15m.length; at15P++) {
var at15L = at15m[at15P];
if (at15L in h_arry) {
if (at15L.indexOf('font') != -1) {
at15o0 += '\x3ctr>\x3ctd style=\"height: 19px\">\x3ca href=\"#\" onclick=\"return obox_SetSize(\'' + h_arry[at15L][1] + '\');\" style=\"font-size: ' + h_arry[at15L][1] + '\">' + h_arry[at15L][0] + '</a></td></tr>';
}
}
}
at15o0 += '</table></td><td width=\"30%\" valign="top"><table class="set_color">';
for (var at15P = 0; at15P < at15m.length; at15P++) {
var at15L = at15m[at15P];
if (at15L in h_arry) {
if (at15L.indexOf('color') != -1) {
if (!at15O0) at15o0 += '<tr>';
at15o0 += '\x3ctd style=\"height: 19px;\">\x3ca href=\"#\" onclick=\"return obox_SetColor(\'' + h_arry[at15L][1] + '\');\" style=\"display:block; background-color:#' + h_arry[at15L][1] + '\"></a></td>';
if (at15O0) at15o0 += '</tr>';
at15O0 = !at15O0;
}
}
}
if (at15O0) at15o0 += '<td></td></tr>';
at15o0 += '</table></td></tr>';
at15o0 += '<tr><td colspan="2" style="height: 2px"></td></tr>';
at15o0 += '</table>';
at15o0 += '\x3c/div>\n';
at15o0 += '\x3c/div>\n';
at15l0 = document.createElement('div');
at15l0.innerHTML = at15o0;
document.body.insertBefore(at15l0, document.body.firstChild);
at15l0.style.zIndex = 03641100;
}
function h_b() {
at15n = false;
if (typeof obox_pub == 'undefined') obox_pub = '';
if (typeof obox_brand == 'undefined') obox_brand = '';
if (typeof obox_options == 'undefined') obox_options = 'font-xx-small, font-x-small, font-small, font-medium, font-large,font-x-large,font-xx-large, color-000000, color-666666, color-003366, color-6699CC, color-663366, color-666699, color-006633, color-669900, color-990000, color-CC6666, color-FF3300, color-FF9933';
if (typeof obox_offset_top != 'number') obox_offset_top = 0;
if (typeof obox_offset_left != 'number') obox_offset_left = 0;
if (typeof obox_caption_share == 'undefined') obox_caption_share = 'Size &amp; Color';
if (typeof obox_hide_embed == 'undefined') obox_hide_embed = true;
obox_options = obox_options.replace(/\s/g, '');
}
function h_show(at15I0) {
var at15o1 = h_$('h_pagefont_3h');
var at15l1 = h_$('h_caption_3h');
at15o1.style.display = 'none';
if (at15I0 == 'share' || at15I0 == '') {
at15o1.style.display = 'block';
at15l1.innerHTML = obox_caption_share;
}
}
h_B();
function obox_SetFont(s, t) {
if (!document.getElementById) return false
var tgs = new Array('th', 'p', 'h1', 'h2', 'h3', 'h4', 'h5');
var trgt = "mainContent";
var d = document,
cEl = null,
i, j, cTags;
if (! (cEl = d.getElementById(trgt))) cEl = d.getElementsByTagName(trgt)[0];
for (i = 0; i < tgs.length; i++) {
cTags = cEl.getElementsByTagName(tgs[i]);
for (j = 0; j < cTags.length; j++) {
if (t == "f") {
cTags[j].style.fontSize = s;
cTags[j].style.lineHeight = '180%';
} else {
cTags[j].style.color = '#' + s;
}
}
}
return false;
}
function obox_SetSize(s) {
return obox_SetFont(s, 'f');
}
function obox_SetColor(c) {
return obox_SetFont(c, 'c');
}
}
function OpenPrint() {
window.open('/forms/PrintShell.aspx?url=' + escape(window.location.href) + '', 'PrintShell', 'top=50,left=100,width=640,height=400,menubar=no,scrollbars=yes,resizable=yes')
}