﻿
var tmp = '';
var innbar = false; //用来判断是否在指定层内点击
var inqbar = false; //用来判断是否在指定层内点击
var browser_msie = $.browser.msie;
var browser_version = $.browser.version;

$(function() {
	Nspace.Widget.Navbar();
	Nspace.Widget.QuickBar();
	Nspace.Widget.Tabs('quick-bar');
	
	$('div.docoda').codaSlider({
		dynamicArrowLeftText: "＜",
		dynamicArrowRightText: "＞",
		autoSlide: true,
		autoSlideInterval: 5000,
		slideEaseDuration: 600
	});
	
	$('a.send-email').click(function() {
		Nspace.Widget.sendEmail( $(this).text(), $(this).attr('data'), $(this).attr('url') );
		return false;
	});
	
	jQuery(window).scroll(function() {
		if(jQuery(window).scrollTop() >= 150) jQuery('#gotop').fadeIn(300);
		else jQuery('#gotop').fadeOut(500);
	});
	if(jQuery(window).scrollTop() >= 150) jQuery('#gotop').fadeIn(300);
	
	$('#gotop').click(function(){
		$("#wrap-header").scrollTo(200);
	});
});

/* 
 * ------------------------------
 * function 
 * ------------------------------
 */

function getCookie(c_name)
{
	if (document.cookie.length>0)
	{
		c_start=document.cookie.indexOf(c_name + "=");
		if (c_start!=-1)
		{ 
			c_start=c_start + c_name.length+1;
			c_end=document.cookie.indexOf(";",c_start);
			if (c_end==-1) c_end=document.cookie.length;
			return unescape(document.cookie.substring(c_start,c_end));
		} 
	}
	return ""
}

function setCookie(c_name,value,expiredays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+	((expiredays==null) ? "" : ";expires="+exdate.toGMTString());
}

/* 
 * ------------------------------
 * main class 
 * ------------------------------
 */

var Nspace;
if (!Nspace) Nspace = {};
if (!Nspace.Widget) Nspace.Widget = {};

Nspace.Widget.Navbar = function()
{
	var tmp = '';
	tmp = $('#wrap-nav li.more');
	tmp.bind('mouseover', function() {
		if (browser_msie && (!!document.documentMode || browser_version==6.0)) {
			tmp.find('a.depth1').addClass('selected').end().find('ul.children').add(tmp.find('span.arrow')).show();
		} else {
			tmp.find('a.depth1').addClass('selected').end().find('ul.children').add(tmp.find('span.arrow')).animate({ opacity:'show', height:'show' }, 250);
		}
		innbar = true;
	}).bind('mouseout', function() {
		innbar = false;
	});
	$('body').bind('click', function(){
		if (!innbar) tmp.find('a.depth1').removeClass('selected').end().find('ul.children').add(tmp.find('span.arrow')).stop(true,true).fadeOut();
	});
};

Nspace.Widget.QuickBar = function()
{
	var tmp = '';
	tmp = $('#quick-bar');
	tmp.find('.tab').bind('mouseover', function() {
		inqbar = true;
	}).bind('mouseout', function() {
		inqbar = false;
	});
	tmp.find('#bar').bind('mouseover', function() {
		tmp.find('.tab').css({ visibility:'visible' }).hide().animate({ opacity:'show', height:'show', width:'show' }, 500);
	});
	$('body').bind('click', function(){
		if (!inqbar) tmp.find('.tab').stop(true,true).animate({ opacity:'hide', height:'hide', width:'hide' }, 250);
	});
};

Nspace.Widget.Tabs = function(id)
{
	var oTab = $('#'+id);
	var oNavs = oTab.find('ul.tab-nav li');
	
	oNavs.eq(0).addClass("active");
	oTab.find('.tab-cont:first').show().siblings("div").hide();
	
	oNavs.mouseover(function(){
		$(this).addClass('active').siblings("li").removeClass('active');
		oTab.find('.tab-cont:eq('+$(this).index()+')').show().siblings("div").hide();
	});
};

Nspace.Widget.sendEmail = function(to, contentid, backurl) {
	/*
	<form action="index.php?m=mail&c=index&a=send" method="post" name="form-email" id="form-email">
		<input type="hidden" value="'+ contentid +'" name="contentid" id="contentid" />
		<input type="hidden" value="'+ backurl +'" name="backurl" id="backurl" />
		<table cellspacing="0" cellpadding="0" border="0" class="table_form" style="margin:0;">
		  <tbody>
			<tr>
			  <th>From:</th>
			  <td><input type="text" value="" name="from" id="from" class="input-text" style="width:200px;" /></td>
			</tr>
			<tr>
			  <th>To:</th>
			  <td><input type="hidden" value="'+ to +'" name="to" id="to" /><strong>'+ to +'</strong></td>
			</tr>
			<tr>
			  <th class="vat">Subject:</th>
			  <td><input type="text" value="Escort & Massage Inquiry" name="subject" id="subject" class="input-text" style="width:426px;" /></td>
			</tr>
			<tr>
			  <th class="vat">Content:</th>
			  <td><textarea name="content" id="content" class="textarea-text" rows="10" style="width:420px; overflow:auto;"></textarea></td>
			</tr>
		  <tr>
			<th></th>
			<td><input type="submit" value=" send email " name="dosubmit" class="button" />
			  <input type="button" value=" cancel " name="cancel" class="button" /></td>
		  </tr>
		  </tbody>
		</table>
	</form>
	<script type="text/javascript">
	$(function(){
		$.formValidator.initConfig({autotip:true,formid:"form-email",onerror:function(msg){}});
		$("#from").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:999,onerror:"Email address is required!"}).regexValidator({regexp:regexEnum.email,onerror:"Incorrect email address"});;
		$("#subject").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:255,onerror:"Subject is required!"});
		$("#content").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:9999,onerror:"required"});
	})
	</script>
	*/
	var html = '<form action="index.php?m=mail&c=index&a=send" method="post" name="form-email" id="form-email"><input type="hidden" value="'+ contentid +'" name="contentid" id="contentid" /><input type="hidden" value="'+ backurl +'" name="backurl" id="backurl" /><table cellspacing="0" cellpadding="0" border="0" class="table_form" style="margin:0;"><tbody><tr><th>From:</th><td><input type="text" value="" name="from" id="from" class="input-text" style="width:200px;" /></td></tr><tr><th>To:</th><td><input type="hidden" value="'+ to +'" name="to" id="to" /><strong>'+ to +'</strong></td></tr><tr><th class="vat">Subject:</th><td><input type="text" value="Escort & Massage Inquiry" name="subject" id="subject" class="input-text" style="width:426px;" /></td></tr><tr><th class="vat">Content:</th><td><textarea name="content" id="content" class="textarea-text" rows="10" style="width:420px; overflow:auto;"></textarea></td></tr><tr><th></th><td><input type="submit" value=" send email " name="dosubmit" class="button" /><input type="button" value=" cancel " name="cancel" class="button" /></td></tr></tbody></table></form><script type="text/javascript">$(function(){$.formValidator.initConfig({autotip:true,formid:"form-email",onerror:function(msg){}});$("#from").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:999,onerror:"Email address is required!"}).regexValidator({regexp:regexEnum.email,onerror:"Incorrect email address"});;$("#subject").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:255,onerror:"Subject is required!"});$("#content").formValidator({onshow:"required",onfocus:"required",oncorrect:"&nbsp;"}).inputValidator({min:1,max:9999,onerror:"required"});})</script>';
	//var html = '<div class="upgrading" style="margin:10px;"><strong>Comming Soon!</strong> &nbsp; &nbsp; <input type="button" value=" close " name="cancel" class="button" /></div>';
	var oDialog = new Nspace.Widget.Dialog('dialog-email', html);
	oDialog.dialog.find(':button[name="cancel"]').bind('click', function() {oDialog.dclose()});
};

Nspace.Widget.Dialog = function(id, html) {
	var id = id ? id : 'dialog';
	if ($('#'+id).length) {
		this.dialog = $('#'+id);
		this.dialog.fadeIn();
		return;
	};
	this.dialog = $('<div id="'+ id +'" class="dialog"><div class="inner">'+ html +'</div><div class="close">X</div></div>');
	var obj = this.dialog;
	this.dialog.appendTo($('body')).fadeIn().find('.close').bind('click', function() {obj.fadeOut()});
};
Nspace.Widget.Dialog.prototype.dclose = function() {
	this.dialog.fadeOut();
};

Nspace.Widget.setOptions = function(obj, optionsObj, ignoreUndefinedProps)
{
	if (!optionsObj)
		return;
	for (var optionName in optionsObj)
	{
		if (ignoreUndefinedProps && optionsObj[optionName] == undefined)
			continue;
		obj[optionName] = optionsObj[optionName];
	}
};

/* 
 * ------------------------------
 * hoverDelay
 * ------------------------------
 */

(function($){
    $.fn.hoverDelay = function(options){
        var defaults = {
            hoverDuring: 200,
            outDuring: 200,
            hoverEvent: function(){
                $.noop();
            },
            outEvent: function(){
                $.noop();
            }
        };
        var sets = $.extend(defaults,options || {});
        var hoverTimer, outTimer;
        return $(this).each(function(){
            $(this).hover(function(){
                clearTimeout(outTimer);
                hoverTimer = setTimeout(sets.hoverEvent, sets.hoverDuring);
            },function(){
                clearTimeout(hoverTimer);
                outTimer = setTimeout(sets.outEvent, sets.outDuring);
            });
        });
    }
})(jQuery);

jQuery.fn.extend({
	/* <div class="mouse-slider"><ul class="ms-list"><li class="ms-item"></li></ul></div> */
	mslider: function() {
		return this.each(function() {
			var oMouseSlider 	= $(this);
			var oMsList			= oMouseSlider.children(':first');
			var oMsListItems	= oMsList.children();
			
			oMsList.css({ 'width': (oMsListItems.length * oMsListItems.first().width()) + 'px' });
			makeScrollable(oMouseSlider, oMsList);
			
			function makeScrollable($outer, $inner) {
				var extra = 800;
				//Get menu width
				var divWidth = $outer.width();
				//Remove scrollbars
				$outer.css({ overflow: 'hidden' });
				//Find last image in container
				var lastElem = $inner.find('.ms-item:last');
				$outer.scrollLeft(0);
				//When user move mouse over menu
				$outer.unbind('mousemove').bind('mousemove',function(e){
					var containerWidth = lastElem[0].offsetLeft + lastElem.outerWidth() + 2*extra;
					var left = (e.pageX - $outer.offset().left) * (containerWidth-divWidth) / divWidth - extra;
					$outer.scrollLeft(left);
				});
			};
		});
	}
});

/* jquery.scrollTo.js */
jQuery.getPos=function(e){var l=0;var t=0;var w=jQuery.intval(jQuery.css(e,'width'));var h=jQuery.intval(jQuery.css(e,'height'));var wb=e.offsetWidth;var hb=e.offsetHeight;while(e.offsetParent){l+=e.offsetLeft+(e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t+=e.offsetTop+(e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);e=e.offsetParent;}l+=e.offsetLeft+(e.currentStyle?jQuery.intval(e.currentStyle.borderLeftWidth):0);t+=e.offsetTop+(e.currentStyle?jQuery.intval(e.currentStyle.borderTopWidth):0);return{x:l,y:t,w:w,h:h,wb:wb,hb:hb};};jQuery.getClient=function(e){if(e){w=e.clientWidth;h=e.clientHeight;}else{w=(window.innerWidth)?window.innerWidth:(document.documentElement&&document.documentElement.clientWidth)?document.documentElement.clientWidth:document.body.offsetWidth;h=(window.innerHeight)?window.innerHeight:(document.documentElement&&document.documentElement.clientHeight)?document.documentElement.clientHeight:document.body.offsetHeight;}return{w:w,h:h};};jQuery.getScroll=function(e){if(e){t=e.scrollTop;l=e.scrollLeft;w=e.scrollWidth;h=e.scrollHeight;}else{if(document.documentElement&&document.documentElement.scrollTop){t=document.documentElement.scrollTop;l=document.documentElement.scrollLeft;w=document.documentElement.scrollWidth;h=document.documentElement.scrollHeight;}else if(document.body){t=document.body.scrollTop;l=document.body.scrollLeft;w=document.body.scrollWidth;h=document.body.scrollHeight;}}return{t:t,l:l,w:w,h:h};};jQuery.intval=function(v){v=parseInt(v);return isNaN(v)?0:v;};jQuery.fn.scrollTo=function(s){o=jQuery.speed(s);return this.each(function(){new jQuery.fx.scrollTo(this,o);});};jQuery.fx.scrollTo=function(e,o){var z=this;z.o=o;z.e=e;z.p=jQuery.getPos(e);z.s=jQuery.getScroll();z.clear=function(){clearInterval(z.timer);z.timer=null};z.t=(new Date).getTime();z.step=function(){var t=(new Date).getTime();var p=(t-z.t)/z.o.duration;if(t>=z.o.duration+z.t){z.clear();setTimeout(function(){z.scroll(z.p.y,z.p.x)},13);}else{st=((-Math.cos(p*Math.PI)/2)+0.5)*(z.p.y-z.s.t)+z.s.t;sl=((-Math.cos(p*Math.PI)/2)+0.5)*(z.p.x-z.s.l)+z.s.l;z.scroll(st,sl);}};z.scroll=function(t,l){window.scrollTo(l,t)};z.timer=setInterval(function(){z.step();},13);};

/* detect.js */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('a 9=h.1F;a o=v(h.1E);1D f(O,1e){a j=O.12(".");a m=1e.12(".");e(j.l>m.l){F(a i=0;i<j.l-m.l;i++){m.T("0")}}x e(j.l<m.l){F(a i=0;i<m.l-j.l;i++){j.T("0")}}F(a i=0;i<j.l;i++){e(j[i]<m[i]){A-1}x e(j[i]>m[i]){A 1}}A 0};a u=9.b("D")>-1;a Z=13=1a=14=15=k;e(u){a n;e(h.1q=="D"){n=o}x{a P=q c("D (//d+//.//d+)");P.r(9);n=v(c["$1"])}Z=n>=4;13=n>=5;1a=n>=6;14=n>=7;15=n>=7.5};a t=9.b("1L")>-1||9.b("B")>-1||9.b("z")>-1;a 16=17=k;a 1b=Y=18=19=k;e(t){10=9.b("z")>-1;1c=9.b("B")>-1;e(10){a 11=q c("z///(//d+(?://.//d*)?)");11.r(9);a y=v(c["$1"]);16=y>=1A;17=y>=1G}x e(1c){a 1d=q c("B///(//d+(?://.//d+(?://.//d)?)?)");1d.r(9);1b=f(c["$1"],"2.2")>=0;Y=f(c["$1"],"3.0")>=0;18=f(c["$1"],"3.1")>=0;19=f(c["$1"],"3.2")>=0}};a E=9.b("24")>-1&&9.b("U")>-1&&!u;a R=S=W=X=k;e(E){a N=q c("U (//d+//.//d+);");N.r(9);a s=v(c["$1"]);R=s>=4;S=s>=5;W=s>=5.5;X=s>=6.0};a I=9.b("1T")>-1&&!t;a Q=1S=V=k;e(I){a M=q c("1V:(//d+//.//d+(?://.//d+)?)");M.r(9);Q=f(c["$1"],"1.0")>=0;1U=f(c["$1"],"1.4")>=0;V=f(c["$1"],"1.5")>=0};a 1f=!E&&!u&&!I&&!t&&(9.b("1Z")==0)&&(h.1q=="22")&&(o>=4.0&&o<5.0);a 1r=1t=1v=1g=k;e(1f){1r=1R;1t=o>=4.5;1v=o>=4.7;1g=o>=4.8};a C=(h.p=="1N")||(h.p=="g");a G=(h.p=="1O")||(h.p=="1P")||(h.p=="1W");a 1h=(h.p=="20")&&!C&&!G;a 1l=1j=1n=J=L=K=k;a 1m=1k=k;a H=1p=1u=1s=k;e(C){1l=9.b("23")>-1||9.b("g 21")>-1;1j=9.b("1X")>-1||9.b("g 1Y")>-1;L=9.b("1M 1Q 4.1x")>-1||9.b("g 1w")>-1;J=9.b("g w 5.0")>-1||9.b("g 1y")>-1;K=9.b("g w 5.1")>-1||9.b("g 1B")>-1;1n=9.b("1z")>-1||9.b("g w")>-1||9.b("1I.0")>-1||9.b("g w 4.0")>-1&&(!L&&!J&&!K)};e(G){1m=9.b("1J")>-1||9.b("1K")>-1;1k=9.b("1H")>-1||9.b("1C")>-1};e(1h){H=9.b("1i")>-1;e(H){a 1o=q c("1i (//d+//.//d+(?://.//d+)?)");1o.r(9);1p=f(c["$1"],"4.0")>=0;1u=f(c["$1"],"5.0")>=0;1s=f(c["$1"],"5.5")>=0}};',62,129,'|||||||||sUserAgent|var|indexOf|RegExp||if|compareVersions|Windows|navigator||aVersion1|false|length|aVersion2|fOperaVersion|fAppVersion|platform|new|test|fIEVersion|isKHTML|isOpera|parseFloat|NT|else|fAppleWebKitVersion|AppleWebKit|return|Konqueror|isWin|Opera|isIE|for|isMac|isSunOS|isMoz|isWin2K|isWinXP|isWinME|reMoz|reIE|sVersion1|reOperaVersion|isMinMoz1|isMinIE4|isMinIE5|push|MSIE|isMinMoz1_5|isMinIE5_5|isMinIE6|isMinKonq3|isMinOpera4|isSafari|reAppleWebKit|split|isMinOpera5|isMinOpera7|isMinOpera7_5|isMinSafari1|isMinSafari1_2|isMinKonq3_1|isMinKonq3_2|isMinOpera6|isMinKonq2_2|isKonq|reKonq|sVersion2|isNS4|isMinNS4_8|isUnix|SunOS|isWin98|isMacPPC|isWin95|isMac68K|isWinNT4|reSunOS|isMinSunOS4|appName|isMinNS4|isMinSunOS5_5|isMinNS4_5|isMinSunOS5|isMinNS4_7|ME|90|2000|WinNT|85|XP|PPC|function|appVersion|userAgent|124|Mac_PowerPC|WinNT4|Mac_68000|68K|KHTML|Win|Win32|Mac68K|MacPPC|9x|true|sMinMoz1_4|Gecko|isMinMoz1_4|rv|Macintosh|Win98|98|Mozilla|X11|95|Netscape|Win95|compatible'.split('|'),0,{}))

/* EventUtil.js */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('y 9=r x;9.z=7(3,5,6){4(3.p){3.p(5,6,c)}8 4(3.q){3.q("a"+5,6)}8{3["a"+5]=6}};9.w=7(3,5,6){4(3.f){3.f(5,6,c)}8 4(3.g){3.g("a"+5,6)}8{3["a"+5]=C}};9.n=7(1){4(B&&D){1.o=(1.d=="v")?1.s:0;1.t=2;1.u=(1.o>0);1.A=1.W+i.j.T;1.S=1.R+i.j.U;1.V=7(){e.E=c};4(1.d=="Y"){1.h=1.X}8 4(1.d=="Q"){1.h=1.P}1.I=7(){e.H=G};1.F=1.J;1.K=(r O).N()}b 1};9.m=7(){4(k.l){b e.n(k.l)}8{b 9.m.M.L[0]}};',61,61,'|oEvent||oTarget|if|sEventType|fnHandler|function|else|EventUtil|on|return|false|type|this|removeEventListener|detachEvent|relatedTarget|document|documentElement|window|event|getEvent|formatEvent|charCode|addEventListener|attachEvent|new|keyCode|eventPhase|isChar|keypress|removeEventHandler|Object|var|addEventHandler|pageX|isIE|null|isWin|returnValue|target|true|cancelBubble|stopPropagation|srcElement|time|arguments|caller|getTime|Date|fromElement|mouseover|clientY|pageY|scrollLeft|scrollTop|preventDefault|clientX|toElement|mouseout'.split('|'),0,{}))

/* jQuery Coda-Slider v2.0 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('f g=1;$.1J.1K=h(3){3=$.1L({16:M,1p:1m,1j:"1n",R:P,13:1H,1k:M,A:M,1q:M,1e:"&#1E; Q",1a:"B &#1G;",V:M,17:"18",1c:"1S",1o:"a.1U",D:1,1b:"1r.1A",J:1m,F:"1n"},3);N m.X(h(){f 4=$(m);9(3.1q){4.I().j("1z");4.1B(\'<v T="8-6-Q" 15="8-6-Q-\'+g+\'"><a Z="#">\'+3.1e+\'</a></v>\');4.1x(\'<v T="8-6-B" 15="8-6-B-\'+g+\'"><a Z="#">\'+3.1a+\'</a></v>\')};f k=4.c(".d").u();f i=4.c(".d").1w();f 1f=k*i;f L=0;$(\'.d\',4).1C(\'<v T="d-l"></v>\');$(".d-l",4).C({u:1f});9(3.A&&o.q&&O(o.q.K(1))<=i){f 5=O(o.q.K(1));f b=-(k*(5-1));$(\'.d-l\',4).C({E:b})}y 9(3.D!=1&&3.D<=i){f 5=3.D;f b=-(k*(5-1));$(\'.d-l\',4).C({E:b})}y{f 5=1};$("#8-6-Q-"+g+" a").Y(h(){L++;9(5==1){b=-(k*(i-1));r(i-1);5=i;4.s(\'.8-6\').c(\'a.7\').w(\'7\').U(\'e\').c(\'H:1u a\').j(\'7\')}y{5-=1;r(5-1);b=-(k*(5-1));4.s(\'.8-6\').c(\'a.7\').w(\'7\').I().1v().c(\'a\').j(\'7\')};$(\'.d-l\',4).G({E:b},3.J,3.F);9(3.A){o.q=5};N P});$(\'#8-6-B-\'+g+\' a\').Y(h(){L++;9(5==i){b=0;5=1;r(0);4.s(\'.8-6\').c(\'a.7\').w(\'7\').U(\'e\').c(\'a:t(0)\').j(\'7\')}y{b=-(k*5);r(5);5+=1;4.s(\'.8-6\').c(\'a.7\').w(\'7\').I().1t().c(\'a\').j(\'7\')};$(\'.d-l\',4).G({E:b},3.J,3.F);9(3.A){o.q=5};N P});9(3.V){f V=\'<v T="8-6" 15="8-6-\'+g+\'"><e></e></v>\';19(3.1c){14"1y":4.I().1d(V);W;1W:4.I().1Q(V);W};e=$(\'#8-6-\'+g+\' e\');$(\'.d\',4).X(h(n){e.1d(\'<H T="1R\'+(n+1)+\'"><a Z="#\'+(n+1)+\'">\'+$(m).c(3.1b).1V()+\'</a></H>\')});1g=4.u()+4.s(\'.8-6-Q\').u()+4.s(\'.8-6-B\').u();e.I().C({u:1g});19(3.17){14"18":e.C({u:($("H",e).u()+2)*i});W;14"B":e.C({1M:\'B\'});W}};$(\'#8-6-\'+g+\' a\').X(h(z){$(m).1i("Y",h(){L++;$(m).j(\'7\').U(\'e\').c(\'a\').1F($(m)).w(\'7\');b=-(k*z);r(z);5=z+1;$(\'.d-l\',4).G({E:b},3.J,3.F);9(!3.A){N P}})});$(3.1o).X(h(){9(g==O($(m).1l("1I").K(12))){$(m).1i("Y",h(){L++;S=O($(m).1l("Z").K(1));b=-(k*(S-1));r(S-1);5=S;4.s(\'.8-6\').c(\'a\').w(\'7\').U(\'e\').c(\'H:t(\'+(S-1)+\') a\').j(\'7\');$(\'.d-l\',4).G({E:b},3.J,3.F);9(!3.A){N P}})}});9(3.A&&o.q&&O(o.q.K(1))<=i){$("#8-6-"+g+" a:t("+(o.q.K(1)-1)+")").j("7")}y 9(3.D!=1&&3.D<=i){$("#8-6-"+g+" a:t("+(3.D-1)+")").j("7")}y{$("#8-6-"+g+" a:t(0)").j("7")};9(3.16){11=$(\'.d:t(\'+(5-1)+\')\',4).10();4.C({10:11})};9(3.R){4.1O(h(){1h(R,3.13)})};h r(x){9(3.16){11=$(\'.d:t(\'+x+\')\',4).10();4.G({10:11},3.1p,3.1j)}};h R(){9(L==0||!3.1k){9(5==i){f b=0;5=1}y{f b=-(k*5);5+=1};r(5-1);4.s(\'.8-6\').c(\'a\').w(\'7\').U(\'e\').c(\'H:t(\'+(5-1)+\') a\').j(\'7\');$(\'.d-l\',4).G({E:b},3.J,3.F);1h(R,3.13)}};$(\'.d\',4).1T().1D().c("p.1P").1s();4.w("1N");g++})};',62,121,'|||settings|slider|currentPanel|nav|current|coda|if||offset|find|panel|ul|var|sliderCount|function|panelCount|addClass|panelWidth|container|this||location||hash|alterPanelHeight|siblings|eq|width|div|removeClass||else||crossLinking|right|css|firstPanelToLoad|marginLeft|slideEaseFunction|animate|li|parent|slideEaseDuration|slice|navClicks|true|return|parseInt|false|left|autoSlide|targetPanel|class|parents|dynamicTabs|break|each|click|href|height|panelHeight||autoSlideInterval|case|id|autoHeight|dynamicTabsAlign|center|switch|dynamicArrowRightText|panelTitleSelector|dynamicTabsPosition|append|dynamicArrowLeftText|panelContainerWidth|navContainerWidth|setTimeout|bind|autoHeightEaseFunction|autoSlideStopWhenClicked|attr|1000|easeInOutExpo|externalTriggerSelector|autoHeightEaseDuration|dynamicArrows|h3|remove|next|last|prev|size|after|bottom|arrows|title|before|wrapAll|end|171|not|187|7000|rel|fn|codaSlider|extend|float|preload|ready|loading|prepend|tab|top|show|xtrig|text|default'.split('|'),0,{}));

/* Thickbox 3 */
var tb_pathToImage = "http://www.penshow.cn/img/templates/ri/images/loadingAnimation.gif";
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}));

/* jQuery Easing v1.3 */
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('h.j[\'J\']=h.j[\'C\'];h.H(h.j,{D:\'y\',C:9(x,t,b,c,d){6 h.j[h.j.D](x,t,b,c,d)},U:9(x,t,b,c,d){6 c*(t/=d)*t+b},y:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},17:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},12:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},W:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},X:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},18:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},15:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},1b:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},Q:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},I:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},13:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},N:9(x,t,b,c,d){6-c*8.B(t/d*(8.g/2))+c+b},M:9(x,t,b,c,d){6 c*8.n(t/d*(8.g/2))+b},L:9(x,t,b,c,d){6-c/2*(8.B(8.g*t/d)-1)+b},O:9(x,t,b,c,d){6(t==0)?b:c*8.i(2,10*(t/d-1))+b},P:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.i(2,-10*t/d)+1)+b},S:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.i(2,10*(t-1))+b;6 c/2*(-8.i(2,-10*--t)+2)+b},R:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},K:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},T:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},F:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.u(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6-(a*8.i(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b},E:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.u(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);6 a*8.i(2,-10*t)*8.n((t*d-s)*(2*8.g)/p)+c+b},G:9(x,t,b,c,d){f s=1.l;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.u(c)){a=c;f s=p/4}m f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.i(2,10*(t-=1))*8.n((t*d-s)*(2*8.g)/p))+b;6 a*8.i(2,-10*(t-=1))*8.n((t*d-s)*(2*8.g)/p)*.5+c+b},1a:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*(t/=d)*t*((s+1)*t-s)+b},19:9(x,t,b,c,d,s){e(s==v)s=1.l;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},14:9(x,t,b,c,d,s){e(s==v)s=1.l;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.z))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.z))+1)*t+s)+2)+b},A:9(x,t,b,c,d){6 c-h.j.w(x,d-t,0,c,d)+b},w:9(x,t,b,c,d){e((t/=d)<(1/2.k)){6 c*(7.q*t*t)+b}m e(t<(2/2.k)){6 c*(7.q*(t-=(1.5/2.k))*t+.k)+b}m e(t<(2.5/2.k)){6 c*(7.q*(t-=(2.V/2.k))*t+.Y)+b}m{6 c*(7.q*(t-=(2.16/2.k))*t+.11)+b}},Z:9(x,t,b,c,d){e(t<d/2)6 h.j.A(x,t*2,0,c,d)*.5+b;6 h.j.w(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,74,'||||||return||Math|function|||||if|var|PI|jQuery|pow|easing|75|70158|else|sin|sqrt||5625|asin|||abs|undefined|easeOutBounce||easeOutQuad|525|easeInBounce|cos|swing|def|easeOutElastic|easeInElastic|easeInOutElastic|extend|easeOutQuint|jswing|easeOutCirc|easeInOutSine|easeOutSine|easeInSine|easeInExpo|easeOutExpo|easeInQuint|easeInCirc|easeInOutExpo|easeInOutCirc|easeInQuad|25|easeOutCubic|easeInOutCubic|9375|easeInOutBounce||984375|easeInCubic|easeInOutQuint|easeInOutBack|easeOutQuart|625|easeInOutQuad|easeInQuart|easeOutBack|easeInBack|easeInOutQuart'.split('|'),0,{}));

