﻿var zh = new Array();
var en = new Array();

zh.push('福建万石律师事务所');
en.push('WanShi fujian lawyers');

zh.push('万石首页');
en.push('Home');


zh.push('关于万石');
en.push('About Wans');


zh.push('理论与实务');
en.push('Study & Practice');


zh.push('业务领域');
en.push('Practice Areas');


zh.push('万石律师');
en.push('Lawyer team');


zh.push('招贤纳才');
en.push('Career Opportunity');


zh.push('在线服务');
en.push('Service Guideline');


zh.push('万石动态');
en.push('Wans News');



zh.push('万石荣誉');
en.push('Recognition \& Reputation');



zh.push('万石环境');
en.push('Office Facilities');



zh.push('法律新闻');
en.push('Law News');



zh.push('律师论文');
en.push('Publication');



zh.push('新法速递');
en.push('New Laws');


zh.push('成功案例');
en.push('Wans Case');



zh.push('文书精选');
en.push('Selected Litigation Writings');


zh.push(' 投 诉 建 议 ');
en.push('Complaint \& Suggestion');


zh.push('提交投诉建议');
en.push('Post Suggestion');



zh.push('查看留言');
en.push('Check message');


zh.push('法律法规检索');
en.push('Law Resrarch Engine');



zh.push('聘请律师指南');
en.push('Risk-Reminding for Retaining Lawyer\'s Service');


zh.push('公司总机：0592-588 5555');
en.push('Tel :0592-588 5555');



zh.push('传真：0592-588 5567');
en.push('Fax :0592-588 5567');


zh.push('网站备案：闽ICP备05005951号');
en.push('Site record:闽ICP备05005951号');



zh.push('福建万石律师事务所版权所有');
en.push('foo');


zh.push('公司地址：厦门市湖滨南路328号亿宝大厦8层');
en.push('328Hubin Nan Rd,Yibao Building 8th Floor, Xiamen ');


zh.push('网站管理');
en.push('Site Management');


zh.push('邮局登陆');
en.push('Mail Management');


zh.push('最新信息');
en.push('Latest Information');


zh.push('教育');
en.push('Education');

zh.push('经历');
en.push('Experience');

zh.push('业务专长');
en.push('Business expertise');

zh.push('主要业绩');
en.push('Main performance');

zh.push('社会活动');
en.push('Social activity');

zh.push('发表文章');
en.push('Published articles');


zh.push('福建万石律师事务所 @ 2003 - 2010 版权所有');
en.push(' WANS LAW FIRM LLP @ 2003 - 2010 All Rights reserved ');



//-------------------------------------

//分解URL
//function getArgs() {
//    var args = new Object();
//    var query = location.search.substring(1);      // Get query string
//    var pairs = query.split("&");                  // Break at ampersand
//    for (var i = 0; i < pairs.length; i++) {
//        var pos = pairs[i].indexOf('=');           // Look for "name=value"
//        if (pos == -1) continue;                   // If not found, skip
//        var argname = pairs[i].substring(0, pos); // Extract the name
//        var value = pairs[i].substring(pos + 1);     // Extract the value
//        value = decodeURIComponent(value);         // Decode it, if needed
//        args[argname] = value;                     // Store as a property
//    }
//    return args;                                   // Return the object
//}



function GetCookieVal(offset)
//获得Cookie解码后的值
{
    var endstr = document.cookie.indexOf(";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
    return unescape(document.cookie.substring(offset, endstr));
}
function SetCookie(name, value)
//设定Cookie值
{
  
    var Days = 30;
    var expdate = new Date();

    //expdate.setTime(expdate.getTime() + Days*24*60*60*1000);
    var argv = SetCookie.arguments;
    var argc = SetCookie.arguments.length;
    var expires = (argc > 2) ? argv[2] : null;
    var path = (argc > 3) ? argv[3] : null;
    var domain = (argc > 4) ? argv[4] : null;
    var secure = (argc > 5) ? argv[5] : false;
    //if (expires != null) expdate.setTime(expdate.getTime() + Days * 24 * 60 * 60 * 1000);
    expdate.setTime(expdate.getTime() + Days * 24 * 60 * 60 * 1000);
    document.cookie = name + "=" + escape(value) + ((expires == null) ? "" : ("; expires=" + expdate.toGMTString()))
+ ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain))
+ ((secure == true) ? "; secure" : "");
}
function DelCookie(name)
//删除Cookie
{
    var exp = new Date();
    exp.setTime(exp.getTime() - 1);
    var cval = GetCookie(name);
    document.cookie = name + "=" + cval + "; expires=" + exp.toGMTString();
}
function GetCookie(name)
//获得Cookie的原始值
{
    var arg = name + "=";
    var alen = arg.length;
    var clen = document.cookie.length;
    var i = 0;
    while (i < clen) {
        var j = i + alen;
        if (document.cookie.substring(i, j) == arg)
            return GetCookieVal(j);
        i = document.cookie.indexOf(" ", i) + 1;
        if (i == 0) break;
    }
    return null;
}


function topreEn(ssen) {
    DelCookie('cookieen');
    if (ssen == 1) {
        SetCookie('cookieen', '1')
    }
    else {
        SetCookie('cookieen', '0')
    }
    window.location.reload();
}


//-----------------------------------------------------------------------

//转换
function SearchEn(strcn) {
    //document.write(GetCookie('cookieen'));
    if (GetCookie('cookieen') == '1') {

        if (strcn != null) {
            var temp = strcn;
            for (i = 0; i < zh.length; i++) {
                if (zh[i] == strcn) {
                    temp = en[i];
                    break;
                }
                // alert(en[i]);
            }

            return document.write(temp);
        }
        else {
            return document.write(strcn);
        }


    }

    else {
        return document.write(strcn);
    }



}



