/*act global nav*/
document.domain = "qq.com";var _vip_act_uin=0;var _vip_act_nick="";
function write_global_nav(){
	document.write('<div id="g_top_con"><div class="g_top_area">');
	document.write('<a href="index.aspx" target="_self" class="logo_act"><img src="img/logo_act.jpg" width="120" height="30" alt="重庆温泉网" /></a>');
	document.write('<map id="g_top_menu">');
	document.write('<div class="g_top_nav">');
	document.write('<a href="index.aspx" target="_self">首页</a> ');
	document.write('<a href="showwq.aspx" target="_blank">温泉展示</a> ');
	document.write('<a href="Consultingwq.aspx" target="_blank">温旅资讯</a> ');
	document.write('<a href="cqsm.aspx" target="_blank">重庆三美</a> ');
	document.write('<a href="trip.aspx" target="_blank">养生坊</a> ');
	document.write('<a href="Line.aspx" target="_blank">线路</a> ');
	document.write('<span class="g_top_line">|</span> ');
	document.write('<a href="http://www.ipaow.com/wqorder.asp" target="_blank">温泉在线预定</a> ');
	document.write('<a href="http://www.ipaow.com/shop.asp" target="_blank">爱泡商城</a> ');
	document.write('<a href="http://bbs.ipaow.com/" target="_blank">爱泡社区登陆</a> ');
	document.write('</div></map>');
	document.write('<div class="g_top_welcome" id="act_login"></div>');
	document.write('</div></div>');
}
function create_ajax(method,url,sendString,callback)
{
    var XmlHttp="";
    try{XmlHttp=new XMLHttpRequest();}catch(e){XmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}if(!XmlHttp){return;}XmlHttp.open(method,url,true);
	if(method=="POST"){XmlHttp.setRequestHeader('Content-type','application/x-www-form-urlencoded');}XmlHttp.send(sendString);
	XmlHttp.onreadystatechange = function(){if(XmlHttp.readyState==4){if(XmlHttp.status==200){callback(XmlHttp.responseText);}}};
}
function write_user_info(){if(_vip_act_uin<=10000){write_user_login();}else{document.getElementById('act_login').innerHTML='<span>欢迎您，'+_vip_act_nick+'</span> <a href="http://vip.qq.com/my/my_mycenter_index.php" target="_blank" class="bt_center">个人中心</a> <a href="javascript:loadScript(\'http://act.vip.qq.com/act_user_info.php?cmd=logout\',callBackLogout);">退出</a></div>';}return;}
function callBackLogout(){write_user_login();try{if(typeof(eval(pageLogout))=="function"){pageLogout();}}catch(e){}}
function write_user_login(){document.getElementById('act_login').innerHTML='<span></span> <a href="javascript:try_login();"></a>';}
function loadScript(url,func){var script=document.createElement("script");if(script.addEventListener){script.addEventListener("load",func,false);}else if(script.attachEvent){script.attachEvent("onreadystatechange",function(){var target = window.event.srcElement;if((target.readyState=="loaded")||(target.readyState=="complete")){func();}});}script.setAttribute("type", "text/javascript");script.setAttribute("src",url);document.getElementsByTagName("head")[0].appendChild(script);}
function get_global_cookie(name){var sCookie=document.cookie;var re=new RegExp("([^;]*)"+name+"=([^;]*)(;|$)","g");while(arr=re.exec(sCookie)){if(/^\s*$/.test(arr[1])){return unescape(arr[2]);}}return "";}
function get_global_uin(){var ptlogin_uin=get_global_cookie("uin");var client_uin=get_global_cookie("clientuin");if(ptlogin_uin==""&&client_uin==""){return 0;}if(parseInt(client_uin)>10000){uin=parseInt(client_uin,10);}else{if(ptlogin_uin.indexOf('o')==0){uin=parseInt(ptlogin_uin.substring(1,ptlogin_uin.length),10);}else{uin=parseInt(ptlogin_uin,10);}}return uin;}
function write_global_footer(){document.write('<p class="footer_link"><span class="copyrighten">Copyright (C) 2009-2010 重庆温泉网 All Rights Reserved 版权所有.电话：023-65455488 传真：023-65455488<br />邮箱：cqwqwz@126.com 渝ICP备08003534号 技术支持:</span>　');document.write('<a href="http://www.ipaow.com" target="_blank">爱泡网</a> 版权所有 <script type="text/javascript" src="http://js.users.51.la/3681048.js"></script></p>');var uin = get_global_uin();if(uin<=10000){write_user_login();}else{loadScript('http://act.vip.qq.com/act_user_info.php?cmd=login',write_user_info,'');}}
function callbackLogin(){openLogin(2);}
function try_login(){try{if(typeof(eval(openLogin))=="function"){openLogin(2);}}catch(e){var script=document.createElement("script");if(script.addEventListener){script.addEventListener("load",callbackLogin,false);}else if(script.attachEvent){script.attachEvent("onreadystatechange",callbackIE);}script.setAttribute("type", "text/javascript");script.setAttribute("src","http://imgcache.qq.com/club/portal_new/quick_login.js");document.body.appendChild(script);}}
function callbackIE(){var target = window.event.srcElement;if((target.readyState=="loaded")||(target.readyState=="complete")){openLogin(2);}}
/*remove css image flicker*/
var isIE = navigator.userAgent.indexOf("MSIE") != -1;if(isIE){try{document.execCommand("BackgroundImageCache", false, true);}catch(e){}}
/*  |xGv00|f184072b58cd5064eb0480fcf5217ada */