').appendto('body'); //showjs
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p1") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p1.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p1") {
$(this).css("background", "none");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p1.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p2") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p2.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p2") {
$(this).css("background", "none");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p2.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p3") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p3.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p3") {
if($(".wp_celan_detailcontent").css("left") == "-291px" ) {$(this).css("background", "none");}
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p3.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p4") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p4.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p4") {
$(this).css("background", "none");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p4.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p5") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p5.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p5") {
$(this).css("background", "none");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p5.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$("#wp_celan_meau .wp_celan_content p").hover(
function () {
if ($(this).attr("class") == "p6") {
$(this).css("background", "#666666");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p6.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: '#666666'});}
}
},
function () {
if ($(this).attr("class") == "p6") {
$(this).css("background", "none");
$(this).find('a').css({ color: '#fff',"background":"http://www.wangkeda.net/website/plugin/sidebar/images/p6.png) no-repeat top center"});
if($(this).find('a .notitle').length){ $(this).find('a .notitle').css({ color: ''});}
}
}
);
$('.wp_celan_content p.p1').click(function () {
remove_login();kf_close();sidebar_cart_colse();
$(this).css({ background: '##666666' }).find('a').css({ color: '#efefef'});
});
$('.wp_celan_content p.p2').click(function () {
kf_close();sidebar_cart_colse();
$('.rm_bz,.rm_kf').stop().animate({ right: '-291px' }, 10);
if(4>3){
wp_shoppingcart_1(parsetourl('wp_user_manage','user_manage'),{title:'',width:1000,height:560});
return false;
}
$lab.script("http://www.wangkeda.net/website/script/datepicker/custom_dialog.js").wait(function(){
show_custom_panel(parsetourl('userlogin','login_dialog'),{
title:'登录',overlay:true,id:'wp_sidebar_dialog_login'
});
});
});
$('.wp_celan_content p.p3').click(function () {
remove_login();sidebar_cart_colse();
if ($(this).find('.s_arrow').css('display') == 'block') {
$(this).find('.s_arrow').css({'display':'none'});
}else{
$(this).find('.s_arrow').fadein(500).css({'display':'block'});
}
$(this).css({ background: '##666666' }).find('a').css({ color: '#efefef'});
$('.wp_celan_detailcontent,.rm_bz').stop().animate({ left: '-291px' }, 10);
if ($('.wp_celan_detailcontent').css('left') == '-291px') {
$('.wp_celan_detailcontent').css('z-index', '1000');
$('.wp_celan_detailcontent').stop().animate({ left: '42px' }, 300);
}else{
$('.wp_celan_detailcontent').stop().animate({ left: '-291px' }, 300);
}
});
$('.wp_celan_content p.p4').click(function () {
remove_login();kf_close();sidebar_cart_colse();
$(this).css({ background: '##666666' }).find('a').css({ color: '#efefef'});
});
$('.wp_celan_content p.p5').click(function () {
remove_login();kf_close();sidebar_cart_colse();
$(this).css({ background: '##666666' }).find('a').css({ color: '#efefef'});
});
$('.wp_celan_content p.p6').click(function () {
kf_close();remove_login();
$('.rm_bz,.rm_kf').stop().animate({ right: '-291px' }, 10);
$lab.script("http://www.wangkeda.net/website/plugin/tb_shopping_cart/js/tb_shopping_cart_browser.js").wait(function(){
wp_shoppingcart(parsetourl("tb_shopping_cart","showitems"),{
title:"购物车",
width: 791,
top:60
});
});
});
function remove_login(){
$('#wp_sidebar_dialog_login,#wp-floatpanel_overlay').remove();
};
function kf_close(){
$('.wp_celan_detailcontent,.rm_bz,.rm_kf').stop().animate({ 'left': '-291px' }, 300);
$('.wp_celan_content').find('.s_arrow').css("display","none");
$('.wp_celan_content').find('p.p3').css("background", "none");
};
function sidebar_cart_colse(){
$('#shopping_cart-items,#wp-floatpanel_overlay').remove();
};
//左侧参数
$.sidebar_aleft = '1';
$.sidebar_pathimg = 'http://www.wangkeda.net/website/plugin/sidebar/images/';
$.sidebar_menuclolr = '#000000';
});
function setsidebar_link(url, target){
}