/*
 * Compressed by JSA(www.xidea.org)
 */
$(document).ready(function(){gen_pagging();get_beauty_gallery();get_top_taiwan_girl()});function get_top_taiwan_girl(){var A=new PHPRPC_Client("http://bawbaw.deep.tw/beauty_gallery/rpc.top_taiwan_girls.php",["get_top_taiwan_girls"]);A.get_top_taiwan_girls("",function(B){var A="";for(var G in B){var E=B[G],F=E.split("/"),C=F.length-2;F[C]="3";var D=F.join("/");A+="<li><a href=\"http://bawbaw.icittys.com/cnow.php/"+D+"\" class=\"thickbox\" rel=\"top_girls\"><img src=\"http://bawbaw.icittys.com/cnow.php/"+E+"\" width=\"100\" height=\"100\" /></a></li>"}$(".jCarouselLite ul").html(A);$(".jCarouselLite").jCarouselLite({btnNext:".next",btnPrev:".prev",visible:2});$(".prev,.next").show();tb_init("#jCarouselLite a.thickbox")})}function get_beauty_gallery(){var B=$(document).getUrlParam("page");if(!B)B=1;var A=new PHPRPC_Client("http://bawbaw.deep.tw/beauty_gallery/rpc.beauty_gallery.php",["get_beauty_gallery"]);A.get_beauty_gallery(B,function(B){var A="",D="";if(!B[0]){alert("\u6700\u5f8c\u4e00\u9801\u5566~\u5c07\u56de\u7b2c\u4e00\u9801!");document.location.href=document.location.href.replace(/\?page=\d+/g,"")+"?page=1";return false}var C=B.length;for(var E=0;E<C;E++){D=B[E]["photo_url"];A+="<li><div class=\"img\"><a href=\""+get_photo_proxy()+D+"\" class=\"thickbox\" rel=\"gallery-plants\">"+get_swfoto(get_thumb_photo_proxy()+D)+"</a></div></li>"}$("#ad_box").after(A);$("#loading").hide();if(jQuery.browser.version!="7.0"&&$.browser.msie)$("#photolist").imgfitblock({max_height:150,max_width:150});tb_init("a.thickbox, area.thickbox, input.thickbox")})}function get_swfoto(A){str="<img class=\"thumbImage\" src=\""+A+"\" />";return str}function get_photo_proxy(){var B=["http://bawbaw.icittys.com/random_beauty.php/","http://bawbaw.icittys.com/random_beauty.php/","http://bawbaw.icittys.com/random_beauty.php/","http://bawbaw.icittys.com/random_beauty.php/"],A=B.length;return B[Math.floor(Math.random()*A)]}function get_thumb_photo_proxy(){var B=["http://bawbaw.icittys.com/random_beauty_thumb.php/"],A=B.length;return B[Math.floor(Math.random()*A)]}function gen_pagging(){var B=parseInt($(document).getUrlParam("page"));if(!B)B=1;if(B==1)var D=1,C=2;else D=B-1,C=B+1;var A="<a href=\"./?page="+D+"\">\u4e0a\u4e00\u9801</a> | <a href=\"./?page="+C+"\">\u4e0b\u4e00\u9801</a>";$(".pagging").html(A)}