var lang='ru';
function hideallletters(){
for (var i = 0; i <= lettercount; i++) {
$("#listbreedletter"+i).hide()//animate({ opacity: "hide" }, 1000)
}
}
function showallletters(){
for (var i = 0; i <= lettercount; i++) {
$("#listbreedletter"+i).animate({ opacity: "show" }, 1000)
}
}
var listbrnumber = -1;
var listPrevbrnumber = -1;
var maxpopbreedcount=10;
function getKeyCode(event) {
var charCode = (event.which) ? event.which : event.keyCode;
var resultload = true;
if (charCode==13) // энтер
{
if ($("#listnumber"+listbrnumber+" a").attr("href"))
document.location.href=$("#listnumber"+listbrnumber+" a").attr("href");
}
if (charCode==40) // вниз
{
if (listbrnumber+1 < maxpopbreedcount) {
if (listbrnumber<0)
listbrnumber = 0;
else {
listPrevbrnumber = listbrnumber;
listbrnumber=listbrnumber+1;
}
}
var resultload = false;
}
if (charCode==38) // вверх
{
if (listbrnumber<0)
listbrnumber = 0;
else {
if (listbrnumber > 0) {
listPrevbrnumber = listbrnumber;
listbrnumber=listbrnumber-1;
}
else {
listbrnumber = 0;
}
var resultload = false;
}
}
$("#listnumber"+listPrevbrnumber).css("background-color", "");
$("#listnumber"+listbrnumber).css("background-color", "#fde5c2");
return resultload;
}
// собаки
$(document).ready(function(){
/*побуквенный поиск*/
$("#letttersserchinputdog").keyup(function (event) {
$("#letttersserchresultdog").show();
if (getKeyCode(event)) {
listbrnumber = -1;
listPrevbrnumber = -1;
$("#letttersserchresultdog").html('
х закрыть
');
$("#letttersserchresultdog").css("height", "100px");
$("#letttersserchresultdog").css("background-image", "url(/design/52/progress-wheel.gif) no-repeat center");
var w = encodeURIComponent($("#letttersserchinputdog").val());
var remurl = "/lib/dogbreeds/dogbreedremotesearch.php?lang=ru&w="+w;
$("#letttersserchresultdog").load(remurl, function() {
$("#letttersserchresultdog").css("background-image", "url()");
$("#letttersserchresultdog").css("height", "");
var maxpopbreedcounti = $("#maxpopbreedcount").val();
if (maxpopbreedcounti)
maxpopbreedcount = maxpopbreedcounti;
});
}
});
$("#letttersserchinputdog2board").keyup(function (event) {
$("#letttersserchresultdog").show();
if (getKeyCode(event)) {
listbrnumber = -1;
listPrevbrnumber = -1;
$("#letttersserchresultdog").html('');
$("#letttersserchresultdog").html('х закрыть
');
$("#letttersserchresultdog").css("height", "100px");
$("#letttersserchresultdog").css("background-image", "url(/design/52/progress-wheel.gif) no-repeat center");
var w = encodeURIComponent($("#letttersserchinputdog2board").val());
var i = encodeURIComponent($("#letttersserchinputdog2board").attr('i'));
var r = encodeURIComponent($("#letttersserchinputdog2board").attr('r'));
var remurl = "/lib/dogbreeds/dogbreedremotesearch2board.php?lang=ru&w="+w+"&i="+i+"&r="+r;
$("#letttersserchresultdog").load(remurl, function() {
$("#letttersserchresultdog").css("background-image", "url()");
$("#letttersserchresultdog").css("height", "");
var maxpopbreedcounti = $("#maxpopbreedcount").val();
if (maxpopbreedcounti)
maxpopbreedcount = maxpopbreedcounti;
});
}
});
/*
$("#letttersserchresultdog").mouseleave(function () {
$("#letttersserchresultdog").hide();
});
*/
$(".b-dogbreedsearchclose").live('click', function() {
$("#letttersserchresultdog").hide();
});
//кошки
$("#letttersserchinputcat").keyup(function (event) {
$("#letttersserchresultcat").show();
if (getKeyCode(event)) {
listbrnumber = -1;
listPrevbrnumber = -1;
$("#letttersserchresultcat").html('');
$("#letttersserchresultcat").html('х закрыть
');
$("#letttersserchresultcat").css("height", "100px");
$("#letttersserchresultcat").css("background-image", "url(/design/52/progress-wheel.gif) no-repeat center");
var w = encodeURIComponent($("#letttersserchinputcat").val());
var remurl = "/lib/catbreeds/catbreedremotesearch.php?lang=ru&w="+w;
$("#letttersserchresultcat").load(remurl, function() {
$("#letttersserchresultcat").css("background-image", "url()");
$("#letttersserchresultcat").css("height", "");
});
}
});
$("#letttersserchinputcat2board").keyup(function (event) {
$("#letttersserchresultcat").show();
if (getKeyCode(event)) {
listbrnumber = -1;
listPrevbrnumber = -1;
$("#letttersserchresultcat").html('');
$("#letttersserchresultcat").html('х закрыть
');
$("#letttersserchresultcat").css("height", "100px");
$("#letttersserchresultcat").css("background-image", "url(/design/52/progress-wheel.gif) no-repeat center");
var w = encodeURIComponent($("#letttersserchinputcat2board").val());
var i = encodeURIComponent($("#letttersserchinputcat2board").attr('i'));
var r = encodeURIComponent($("#letttersserchinputcat2board").attr('r'));
var remurl = "/lib/catbreeds/catbreedremotesearch2board.php?lang=ru&w="+w+"&i="+i+"&r="+r;
$("#letttersserchresultcat").load(remurl, function() {
$("#letttersserchresultcat").css("background-image", "url()");
$("#letttersserchresultcat").css("height", "");
});
}
});
/*
$("#letttersserchresultcat").mouseleave(function () {
$("#letttersserchresultcat").hide();
});
*/
$(".b-catsbreedsearchclose").live('click', function() {
$("#letttersserchresultcat").hide();
});
/*побуквенный поиск*/
$("#placeForumSubject").click(function () {
$("#addsubjectbutton").show();
});
$(".authenticationboxrect .close").click(function () {
$(".authenticationbox").hide()
});
$("#allletterbreed").click(function () {showallletters()});
$(".loginbox").click(function () {
$(".auth").show();
});
$(".authclose").click(function () {
$(".auth").hide()
// return false;
});
$("#lupa").click(function () {
$("#divtrans").show();
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var height= $(".main").height();
$("#divtrans").css("height", height+100);
$("#bigimage").css("top", scrollTop+50);
$("#bigimage").animate({ opacity: "show" }, 300);
});
$("#lupa2").click(function () {
$("#divtrans").show();
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var height= $(".main").height();
$("#divtrans").css("height", height+100);
$("#bigimage").css("top", scrollTop+50);
$("#bigimage").animate({ opacity: "show" }, 300);
});
$("#bigimage").click(function () {
$("#bigimage").animate({ opacity: "hide" }, 300);
$("#divtrans").hide();
});
$(".boardrow .imglittlerow > .imglittleone").click(function () {
var iim= $(this).index();iim=iim+1;
$(this).parent().parent().children().children("img:visible").css("display", "none");
$(this).parent().parent().children().children("img:eq("+iim+")").css("display", "block");
});
$(".m2big").click(function () {
// var leftpos = $(".lupa").position().left;
// var toppos = $(".lupa").position().top;
var leftpos = $(this).parent().parent().children(".imgbig").position().left;
var toppos = $(this).parent().parent().children(".imgbig").position().top;
var rightpos=leftpos-125;
toppos=toppos-30;
$(this).parent().parent().children(".boardbigimg").css("top", toppos);
$(this).parent().parent().children(".boardbigimg").css("right", rightpos);
$(".closeboardbigimg").css("top", toppos);
$(".closeboardbigimg").css("right", rightpos);
if ($(this).attr("big")) {
$(this).parent().parent().children(".boardbigimg").attr("src", $(this).attr("big"));
$(this).parent().parent().children(".boardbigimg").animate({ opacity: "show" }, 300);
$(this).parent().parent().children(".closeboardbigimg").show();
}
});
$(".boardbigimg").click(function () {
$(this).parent().children(".boardbigimg").hide();
$(this).parent().children(".closeboardbigimg").hide();
});
$(".closeboardbigimg").click(function () {
$(this).parent().children(".boardbigimg").hide();
$(this).parent().children(".closeboardbigimg").hide();
});
$(".externallink").click(function () {
var url = $(this).attr("goto");
if (lang=='en')
document.location.href = '/gotoexternal?u='+url;
else
document.location.href = '/gotoexternal?u='+url;
});
$(".photogalleryrow li").click(function () {
var srcbigimage = $(this).children().children(".littleimage").attr("big");
var topposlimg = $(this).children().children(".littleimage").position().top;
var leftposlimg = $(this).children().children(".littleimage").position().left;
topposlimg = topposlimg - 50;
leftposlimg = leftposlimg - 50;
$("#pagebigimage").css("top", topposlimg);
$("#pagebigimage").css("left", leftposlimg);
$("#pagebigimage").attr("src", srcbigimage);
$("#pagebigimage").animate({ opacity: "show" }, 500);
});
$("#pagebigimage").click(function () {
$(this).animate({ opacity: "hide" }, 300);
});
$(".sendrequest a").click(function () {
var Srequestbox = $(this).parent().children(".requestbox");
Srequestbox.animate({ opacity: "show" }, 500);
var Sboard = Srequestbox.attr("board");
Srequestbox.load("/lib/sendrequest/requestform.php?lang=ru&board="+Sboard);
var positionTop = $(this).parent().children(".requestbox").position();
if (positionTop.top+480 > $(document).height()){
var newPositionTop = $(document).height() - 450;
Srequestbox.css("top", newPositionTop);
}
});
$(".pagesendrequest a").click(function () {
var Srequestbox = $(this).parent().children(".requestbox");
Srequestbox.animate({ opacity: "show" }, 500);
var Sboard = Srequestbox.attr("board");
Srequestbox.load("/lib/sendrequest/requestformpage.php?lang=ru&board="+Sboard);
var positionTop = $(this).parent().children(".requestbox").position();
if (positionTop.top+480 > $(document).height()){
var newPositionTop = $(document).height() - 450;
Srequestbox.css("top", newPositionTop);
}
});
$(".messagedelete").click(function () {
var Mdeletebox = $(this).parent().children(".deletebox");
Mdeletebox.animate({ opacity: "show" }, 500);
var mid = Mdeletebox.attr("mid");
Mdeletebox.load("/lib/sendrequest/deletemessage.php?lang=ru&mid="+mid);
var positionTop = $(this).parent().children(".deletebox").position();
if (positionTop.top+200 > $(document).height()){
var newPositionTop = $(document).height() - 200;
Mdeletebox.css("top", newPositionTop);
}
});
$(".answer2request").click(function () {
var Srequestbox = $(this).parent().children(".replayrequestbox").children(".requestbox");
Srequestbox.animate({ opacity: "show" }, 500);
var Sboard = Srequestbox.attr("mid");
Srequestbox.load("/lib/sendrequest/replay2message.php?lang=ru&mid="+Sboard);
var positionTop = $(this).parent().children(".replayrequestbox").children(".requestbox").position();
if (positionTop.top+480 > $(document).height()){
var newPositionTop = $(document).height() - 450;
Srequestbox.css("top", newPositionTop);
}
});
$(".delete_page_button").click(function () {
var Mdeletebox = $(this).parent().children(".deletebox");
Mdeletebox.animate({ opacity: "show" }, 500);
var mid = Mdeletebox.attr("mid");
Mdeletebox.load("/lib/sendrequest/deletepage.php?lang=ru&mid="+mid);
var positionTop = $(this).parent().children(".deletebox").position();
if (positionTop.top+200 > $(document).height()){
var newPositionTop = $(document).height() - 200;
Mdeletebox.css("top", newPositionTop);
}
});
$(".delete_board_button").click(function () {
var Mdeletebox = $(this).parent().children(".deletebox");
Mdeletebox.animate({ opacity: "show" }, 500);
var mid = Mdeletebox.attr("mid");
Mdeletebox.load("/lib/sendrequest/deleteboard.php?lang=ru&mid="+mid);
var positionTop = $(this).parent().children(".deletebox").position();
if (positionTop.top+200 > $(document).height()){
var newPositionTop = $(document).height() - 200;
Mdeletebox.css("top", newPositionTop);
}
});
$(".tiplist input:radio").change(function () {
var price = $(this).attr("price");
$("#currentpriceid").val($(this).val());
$("#currentkoldays").val($(this).attr("koldays"));
$("#currentprice").val($(this).attr("price"));
$("#LMI_PAYMENT_DESC_BASE64").val($(this).attr("pricetitle"));
$("#itogo").html(price);
var price1=price*1;
var price2=price*1;
var price3=price*56;
var price4=price*22;
$("#liqpay").val(price4.toFixed(2));
$("#zoobs").val(price);
$("#wmzs").val(price);
$("#wmrs").val(price3.toFixed(2));
$("#wmus").val(price4.toFixed(2));
});
$("#clicktobayliqpay").click(function () {
if ($("#wmus").val()>0){
var vvv = $("#wmus").val();
$('#LMI_PAYMENT_AMOUNT').val($("#wmus").val());
var kos = $(this).attr("kos");
$('#LMI_PAYEE_PURSE').val(kos);
var LMI_PAYMENT_NO = $('#LMI_PAYMENT_NO').val();
var LMI_PAYMENT_AMOUNT = $('#LMI_PAYMENT_AMOUNT').val();
var LMI_PAYEE_PURSE = $('#LMI_PAYEE_PURSE').val();
var priceid = $("#currentpriceid").val();
var koldays = $("#currentkoldays").val();
var price = $("#currentprice").val();
$.post('http://www.zooclub.com.ua/module/billing/prepaymentpost.php', {priceid: priceid, koldays:koldays, price:price, LMI_PAYMENT_NO:LMI_PAYMENT_NO, LMI_PAYMENT_AMOUNT:LMI_PAYMENT_AMOUNT,LMI_PAYEE_PURSE:LMI_PAYEE_PURSE }, function(data){
// alert('Вы переходите на сайт платежной системы WebMoney');
$("#formtobayliqpay").submit();
return false
});
}
else {
alert('Необходимо выбрать тип услуги');
}
})
$("#zoob").click(function () {
var sum2pay = parseFloat($("#zoobs").val());
if (sum2pay >0){
var sum = parseFloat($("#zooballssum").attr("sum"));
//alert(sum+'>'+sum2pay);
if (sum >= sum2pay){
var priceid = $("#currentpriceid").val();
var koldays = $("#currentkoldays").val();
var price = $("#currentprice").val();
$("#priceidZB").val(priceid);
$("#koldaysZB").val(koldays);
$("#priceZB").val(price);
$("#formtobayzooballs").submit();
}
else
alert('Суммы зообалов на Вашем счету не достаточно');
}
else {
alert('Необходимо выбрать тип услуги');
}
});
$("#wmz").click(function () {
if ($("#wmzs").val()>0) {
var vvv = $("#wmzs").val();
$('#LMI_PAYMENT_AMOUNT').val($("#wmzs").val());
var kos = $(this).attr("kos");
$('#LMI_PAYEE_PURSE').val(kos);
var LMI_PAYMENT_NO = $('#LMI_PAYMENT_NO').val();
var LMI_PAYMENT_AMOUNT = $('#LMI_PAYMENT_AMOUNT').val();
var LMI_PAYEE_PURSE = $('#LMI_PAYEE_PURSE').val();
var priceid = $("#currentpriceid").val();
var koldays = $("#currentkoldays").val();
var price = $("#currentprice").val();
$.post('http://www.zooclub.com.ua/module/billing/prepaymentpost.php', {priceid: priceid, koldays:koldays, price:price, LMI_PAYMENT_NO:LMI_PAYMENT_NO, LMI_PAYMENT_AMOUNT:LMI_PAYMENT_AMOUNT,LMI_PAYEE_PURSE:LMI_PAYEE_PURSE },
function(data){
// alert('Вы переходите на сайт платежной системы WebMoney');
$('#webmoneyformid').submit();
return false
});
}
else {
alert('Необходимо выбрать тип услуги-3');
}
});
$("#wmr").click(function () {
if ($("#wmrs").val()>0){
var vvv = $("#wmrs").val();
$('#LMI_PAYMENT_AMOUNT').val($("#wmrs").val());
var kos = $(this).attr("kos");
$('#LMI_PAYEE_PURSE').val(kos);
var LMI_PAYMENT_NO = $('#LMI_PAYMENT_NO').val();
var LMI_PAYMENT_AMOUNT = $('#LMI_PAYMENT_AMOUNT').val();
var LMI_PAYEE_PURSE = $('#LMI_PAYEE_PURSE').val();
var priceid = $("#currentpriceid").val();
var koldays = $("#currentkoldays").val();
var price = $("#currentprice").val();
$.post('http://www.zooclub.com.ua/module/billing/prepaymentpost.php', {priceid: priceid, koldays:koldays, price:price, LMI_PAYMENT_NO:LMI_PAYMENT_NO, LMI_PAYMENT_AMOUNT:LMI_PAYMENT_AMOUNT,LMI_PAYEE_PURSE:LMI_PAYEE_PURSE }, function(data){
// alert('Вы переходите на сайт платежной системы WebMoney');
$('#webmoneyformid').submit();
return false
});
}
else {
alert('Необходимо выбрать тип услуги');
}
});
$("#wmu").click(function () {
if ($("#wmus").val()>0){
var vvv = $("#wmus").val();
$('#LMI_PAYMENT_AMOUNT').val($("#wmus").val());
var kos = $(this).attr("kos");
$('#LMI_PAYEE_PURSE').val(kos);
var LMI_PAYMENT_NO = $('#LMI_PAYMENT_NO').val();
var LMI_PAYMENT_AMOUNT = $('#LMI_PAYMENT_AMOUNT').val();
var LMI_PAYEE_PURSE = $('#LMI_PAYEE_PURSE').val();
var priceid = $("#currentpriceid").val();
var koldays = $("#currentkoldays").val();
var price = $("#currentprice").val();
$.post('http://www.zooclub.com.ua/module/billing/prepaymentpost.php', {priceid: priceid, koldays:koldays, price:price, LMI_PAYMENT_NO:LMI_PAYMENT_NO, LMI_PAYMENT_AMOUNT:LMI_PAYMENT_AMOUNT,LMI_PAYEE_PURSE:LMI_PAYEE_PURSE }, function(data){
// alert('Вы переходите на сайт платежной системы WebMoney');
$('#webmoneyformid').submit();
return false
});
}
else {
alert('Необходимо выбрать тип услуги');
}
});
$(".fotokonkursdoto2big").click(function () {
$("#divtrans").show();
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var height= $(".main").height();
$("#divtrans").css("height", height+100);
$("#bigimage2div").css("top", scrollTop+50);
$("#bigimage2div").animate({ opacity: "show" }, 300);
if ($(this).attr("big")){
var append = $(this).attr("big");
$("#bigimage2div").html('ЗАКРЫТЬ Х
');
}
});
$("#bigimage2div").click(function () {
$("#bigimage2div").animate({ opacity: "hide" }, 300);
$("#divtrans").hide();
});
$(document).ready(function(){
$(".fotokonkursfotoid").click(function () {
var fotoid = $(this).attr("fid");
var golosbox = $("#fotokonkursfotoid"+parseInt(fotoid))
golosbox.show();
var remurl = "/module/jquery/golos.php?fid="+fotoid;
golosbox.load(remurl, function() {
golosbox.css("background-image", "url()");
});
})
$(".golos2load").click(function () {
$(this).hide();
document.location.href = "http://www.zooclub.com.ua/165";
})
$("#store_basket_top_box_LINK_ID").live('click', function() {
$("#store_basket_top_box").hide();
var widthW = $('#coverID').width();
var heightH = $('#coverID').height();
$("#writebox_background").css("height", heightH);
$("#writebox_background").css("display", "block");
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var writeboxTop = scrollTop +50;
var wrt = writeboxTop.toString();
wrt = wrt + "px";
$("#writebox").css("top", wrt);
$("#writebox").css("display", "block");
var remurl = "/module/store/basket_preview.php";
$("#writebox").load(remurl);
})
$(".store_leftmenu li").click(function(){
var pid = $(this).attr('pid');
if ($(this).attr('openmenu')==0) {
$(this).css("background-image", "url(/design/52/store-minus.gif)");
$("#storepartid"+pid).animate({opacity: "show"}, "300");
$(this).attr('openmenu','1');
}
else {
$(this).css("background-image", "url(/design/52/store-plus.gif)");
$("#storepartid"+pid).animate({opacity: "hide"}, "300");
$(this).attr('openmenu','0');
}
})
$(".price2byerow a").click(function(){
var pid = $(this).attr('basket');
var widthW = $('#coverID').width();
var heightH = $('#coverID').height();
$("#writebox_background").css("height", heightH);
$("#writebox_background").css("display", "block");
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var writeboxTop = scrollTop +50;
var wrt = writeboxTop.toString();
wrt = wrt + "px";
$("#writebox").css("top", wrt);
$("#writebox").css("display", "block");
var remurl = "/module/store/basket_preview.php?pid="+pid;
$("#writebox").load(remurl);
})
$("#closebox").live('click', function() {
$("#writebox_background").hide();
$("#writebox").hide();
var remurl = "/module/store/mini_basket_preview.php";
$("#basketconteinerid").load(remurl);
$("#store_basket_top_box").show();
})
$("#continueshopping").live('click', function() {
$("#writebox_background").hide();
$("#writebox").hide();
var remurl = "/module/store/mini_basket_preview.php";
$("#basketconteinerid").load(remurl);
$("#store_basket_top_box").show();
})
$(".delete").live('click', function() {
var pid = $(this).attr('pid');
var remurl = "/module/store/basket_preview.php?x="+pid;
$("#writebox").load(remurl, function() {
});
})
$("#tblZakaz input").live('keyup', function() {
var pid = $(this).attr('pid');
var kol = parseFloat($(this).val());
if (!isIntegerS(kol)) {
kol = 1;
$(this).val(kol);
}
var price = parseFloat($("#basketprice"+pid).html());
var summa = price * kol;
// округляем
var rlength = 2; // кол-во знаков после запятой
var newsumma = Math.round(summa*Math.pow(10,rlength))/Math.pow(10,rlength);
// ^^^округляем
var remurl = "/module/store/kol2basket.php?pid="+pid+"&kol="+kol;
$("#hidden_kontainer_id").load(remurl);//обновляем сессию
$("#basketsumm"+pid).html(newsumma);
var allpricecost = 0;
if (koltovarov && koltovarov>0) {
for (var i=0; i < koltovarov; i++) {
if (
isFloatS(parseFloat($("#basketsumm"+basketArid[i]).html())) ||
isIntegerS(parseFloat($("#basketsumm"+basketArid[i]).html()))
)
allpricecost = allpricecost + parseFloat($("#basketsumm"+basketArid[i]).html());
}
}
// округляем
var rlength = 2; // кол-во знаков после запятой
var allpricecost = Math.round(allpricecost*Math.pow(10,rlength))/Math.pow(10,rlength);
// ^^^округляем
$("#allpricecost").html(allpricecost);
})
$("#basket2order").live('click', function() {
var remurl = "/module/store/basket2order.php";
$("#writebox").load(remurl, function() {
})
})
$("#editbasketbutton").live('click', function() {
var remurl = "/module/store/basket_preview.php";
$("#writebox").load(remurl, function() {
})
})
$(document).scroll(function(){
if ($("#writebox").css("display") != 'none') {
var scrollTop = document.body.scrollTop ? document.body.scrollTop : document.documentElement.scrollTop;
var writeboxTop = scrollTop +50;
var wrt = writeboxTop.toString();
wrt = wrt + "px";
var screenheight = screen.height;
var screenheight = screen.height;
var writeboxHeight = $("#writebox").height()+250;
if ( writeboxHeight < screenheight) {
$("#writebox").animate({ top: wrt }, 200)
}
}
});
$("#send_zakaz_button").live('click', function() {
var remurl = "/module/store/basket2order.php";
$.post(remurl, {
usname: $("#usname").val(), phone:$("#phone").val(), phone:$("#phone").val(),
countryCity:$("#countryCity").val(), email:$("#email").val(),
street:$("#street").val(), domnumber:$("#domnumber").val(), kv:$("#kv").val(), addinfo:$("#addinfo").val(),
delivery:$("#mdelivery").val(), mpayment:$("#mpayment").val(), mcomment:$("#mcomment").val()
}, function(data) {
$("#writebox").html(data);
});
})
$("ul.waredetailslabel li.label").click(function(){
var pid = $(this).attr('pid');
if(pid>0) {
$("#describe_1").hide();
$("#describe_2").hide();
$("#describe_3").hide();
$("#describe_4").hide();
$("#label_0").css("background-color", "#ffffff");
$("#label_1").css("background-color", "#ffffff");
$("#label_2").css("background-color", "#ffffff");
$("#label_3").css("background-color", "#ffffff");
$("#label_4").css("background-color", "#ffffff");
$("#label_"+pid).css("background-color", "#fff0da");
$("#describe_"+pid).show();
}
else {
$("#label_0").css("background-color", "#fff0da");
$("#label_1").css("background-color", "#ffffff");
$("#label_2").css("background-color", "#ffffff");
$("#label_3").css("background-color", "#ffffff");
$("#label_4").css("background-color", "#ffffff");
$("#describe_1").show();
$("#describe_2").show();
$("#describe_3").show();
$("#describe_4").show();
}
});
})
$("#topbreedletter1").click(function(){
hideallletters();
$("#listbreedletter1").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter2").click(function(){
hideallletters();
$("#listbreedletter2").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter3").click(function(){
hideallletters();
$("#listbreedletter3").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter4").click(function(){
hideallletters();
$("#listbreedletter4").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter5").click(function(){
hideallletters();
$("#listbreedletter5").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter6").click(function(){
hideallletters();
$("#listbreedletter6").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter7").click(function(){
hideallletters();
$("#listbreedletter7").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter8").click(function(){
hideallletters();
$("#listbreedletter8").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter9").click(function(){
hideallletters();
$("#listbreedletter9").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter10").click(function(){
hideallletters();
$("#listbreedletter10").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter11").click(function(){
hideallletters();
$("#listbreedletter11").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter12").click(function(){
hideallletters();
$("#listbreedletter12").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter13").click(function(){
hideallletters();
$("#listbreedletter13").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter14").click(function(){
hideallletters();
$("#listbreedletter14").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter15").click(function(){
hideallletters();
$("#listbreedletter15").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter16").click(function(){
hideallletters();
$("#listbreedletter16").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter17").click(function(){
hideallletters();
$("#listbreedletter17").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter18").click(function(){
hideallletters();
$("#listbreedletter18").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter19").click(function(){
hideallletters();
$("#listbreedletter19").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter20").click(function(){
hideallletters();
$("#listbreedletter20").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter21").click(function(){
hideallletters();
$("#listbreedletter21").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter22").click(function(){
hideallletters();
$("#listbreedletter22").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter23").click(function(){
hideallletters();
$("#listbreedletter23").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter24").click(function(){
hideallletters();
$("#listbreedletter24").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter25").click(function(){
hideallletters();
$("#listbreedletter25").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter26").click(function(){
hideallletters();
$("#listbreedletter26").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter27").click(function(){
hideallletters();
$("#listbreedletter27").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter28").click(function(){
hideallletters();
$("#listbreedletter28").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter29").click(function(){
hideallletters();
$("#listbreedletter29").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter30").click(function(){
hideallletters();
$("#listbreedletter30").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter31").click(function(){
hideallletters();
$("#listbreedletter31").animate({ opacity: "show" }, 1000)
});
$("#topbreedletter32").click(function(){
hideallletters();
$("#listbreedletter32").animate({ opacity: "show" }, 1000)
});
});
function isFloatS (n) {
return n===+n && n!==(n|0);
}
function isIntegerS (n) {
return n===+n && n===(n|0);
}