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.

89 lines
6.3 KiB
JavaScript

/*底部*/
$(function(){
$("#footer").load("/public/template/footer-nogoogle.html");
//forms footer
var forms=['<div class="CHinfo">',
'<p><strong>China Highlights, Discovery Your Way (Since 1959)!</strong></p>',
'<p>Copyright &copy; 1998. All Rights Reserved to China Highlights.</p>',
'</div>',
'<div class="members"> Member of (<a href="/aboutus/member/">more</a>) <br>',
'<a class="iata" href="/aboutus/member/iata.htm" title="IATA"></a><a class="ustoa" href="/aboutus/member/ustoa.htm" title="USTOA"></a>',
'<a class="pata" href="/aboutus/member/pata.htm" title="PATA"></a><a class="asta" href="/aboutus/member/asta.htm" title="ASTA"></a></div>',
'<div class="clear"></div>',
'</div>']; //forms style
//guide footer
var guide=[
'<div id="bottomBackground"></div>',
'<div class="clear"></div>',
'<div id="footerContent">',
'<p>China Highlights is a branch of China International Travel Service Guilin Co. Ltd. (CITS Guilin, established 1959).</p>',
'<p><a href="/sitemap/" rel="nofollow">Sitemap</a> | <a href="/agreement.htm" rel="nofollow">User Agreement</a> | <a href="/privacy.htm" rel="nofollow">Privacy Policy</a> | <a href="/links/">Links</a> | <a href="/aboutus/jobs-volunteer.asp" rel="nofollow">Online Volunteers Wanted</a></p>',
'<p>Copyright &copy; 1998. All Rights Reserved to China Highlights.</p>',
'<div class="ourMembers">',
'<div class="security">Certification & Security<br/>',
'<a href="//privacy-policy.truste.com/click-with-confidence/wps/en/www.chinahighlights.com/seal_m" title="TRUSTe online privacy certification" target="_blank" class="truste"></a> <a target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=www.chinahighlights.com" class="mcafee"></a> </div>',
'<div class="members"> Member of (<a href="/aboutus/member/">more</a>) <br/>',
'<a href="/aboutus/member/iata.htm" class="iata"></a><a href="/aboutus/member/ustoa.htm" class="ustoa"></a><a href="/aboutus/member/pata.htm" class="pata"></a><a href="/aboutus/member/asta.htm" class="asta"></a></div>',
'<div class="payment">We Accept (<a href="/aboutus/paymentguide.asp">more</a>)<br/>',
'<span class="visa"></span><span class="masterCard"></span> <span class="jcb"></span> <a href="/aboutus/member/paypal.htm" class="paypal"></a> <span class="moneybookers"></span> </div>',
'<div class="clear"></div>',
'</div>',
'<div class="clear"></div>',
'<div id="socialMedia"><span class="followusOn">Follow Us on:</span> <a title="Like Us on Facebook" rel="nofollow" class="facebook" target="_blank" href="http://www.facebook.com/chinahighlights">Facebook</a> <a title="Follow Us on Twitter" rel="nofollow" class="twitter" target="_blank" href="https://twitter.com/Chinahighlights">Twitter</a> <a title="Connect Us on Linkedin" rel="nofollow" class="linkedin" target="_blank" href="http://www.linkedin.com/company/china-highlights">Linkedin</a> <a title="Youtube" rel="nofollow" class="youtube" target="_blank" href="http://www.youtube.com/user/chinahighlights">Youtube</a> <a title="Google Plus" rel="nofollow" class="gPlus" target="_blank" href="https://plus.google.com/115440226907925048044">Google+</a>',
'<div class="clear"></div>',
'</div>',
'</div>'
];
//guide info style for news
var newforms=[
'<div class="hidden-xs container">',
' <ul class="withBorder">',
' <div class="viplogo"> <a rel="nofollow" target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=www.chinahighlights.com" class="mcafee"></a><a rel="nofollow" href="//privacy.truste.com/privacy-seal/Guilin-China-International-Travel-Service-Co--Ltd/validation?rid=358c7a26-950a-4838-a8fe-f50b42b4efae" title="TRUSTe online privacy certification" target="_blank" class="truste"></a><span class="iata"></span><span class="asta"></span><span class="ust"></span><span class="pata"></span> <span class="atta"></span> </div>',
' </ul>',
' <div class="copyright">Tourism Operating License: L-GX-GJ00003 | Guilin China International Travel Service Co., Ltd<br>',
' Copyright &copy; 1998. All rights reserved to China Highlights.</div>',
'</div>'
];
//intel flight
var IntelFlight=[
'<div class="clear"></div>',
'<div id="footerContent">',
'<p>China Highlights is a branch of China International Travel Service Guilin Co. Ltd. (CITS Guilin, established 1959).</p>',
'<p><a href="/sitemap/" rel="nofollow">Sitemap</a> | <a href="/agreement.htm" rel="nofollow">User Agreement</a> | <a href="/privacy.htm" rel="nofollow">Privacy Policy</a> | <a href="/new-update.asp" rel="nofollow">Recently Updated</a> | <a href="/links/" rel="nofollow">Links</a> </p>',
'<p>Copyright &copy; 1998. All Rights Reserved to China Highlights.</p>',
'<div class="ourMembers">',
'<div class="security">Certification & Security<br/>',
'<a href="http://clicktoverify.truste.com/pvr.php?page=validate&url=www.chinahighlights.com&sealid=101" title="TRUSTe online privacy certification" target="_blank" rel="nofollow" class="truste"></a> <a target="_blank" href="https://www.mcafeesecure.com/RatingVerify?ref=www.chinahighlights.com" class="mcafee" rel="nofollow"></a> </div>',
'<div class="members"> Member of (<a href="/aboutus/member/" rel="nofollow">more</a>) <br/>',
'<a href="/aboutus/member/iata.htm" class="iata" rel="nofollow"></a><a href="/aboutus/member/ustoa.htm" class="ustoa" rel="nofollow"></a><a href="/aboutus/member/pata.htm" class="pata" rel="nofollow"></a><a href="/aboutus/member/asta.htm" class="asta" rel="nofollow"></a></div>',
'<div class="payment">We Accept (<a href="/aboutus/paymentguide.asp" rel="nofollow">more</a>)<br/>',
'<span class="visa"></span><span class="masterCard"></span> <span class="jcb"></span> <a href="/aboutus/member/paypal.htm" class="paypal" rel="nofollow"></a> <span class="moneybookers"></span> </div>',
'<div class="clear"></div>',
'</div>',
'<div class="clear"></div>',
'</div>'
];
// if(Fobj.size() == 1){
// Fobj.append(eval((CLS==''?'nomal':CLS)+ ".join('')"));
// }
$(".withMenu").each(function(index, element) {
$withMenu = $(element);
$withMenu.click(function () {
$self = $(this);
var targetId = $self.data("target");
var collapse = $self.data("collapse");
if (collapse == undefined || collapse == 0) {
$self.children("a").text("x");
$self.data("collapse", "1");
$(targetId).show('fast');
} else {
$(targetId).hide();
$self.children("a").text("+");
$self.data("collapse", "0");
}
});
});
});