$(".w_title").toggle(function(){
$(".w_message").hide();
$(".m_close").attr("title","Z澶у寲");
$(".m_close").addClass("m_open");
},
function(){
$(".w_message").show();
$(".m_close").attr("title","Z灝忓寲");
$(".m_close").removeClass("m_open");
}
);
var currentid='5';
if(currentid!='7')
{
switch(currentid)
{
case '1':
$('#m_top').css('background','#3cb6a2');
$('#m_mid').css('background','#3cb6a2');
$('#m_bot').css('background','#3cb6a2');
$('.w_message').css('border-color','#3cb6a2');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style1.png") left bottom no-repeat');
break;
case '2':
$('#m_top').css('background','#8039c5');
$('#m_mid').css('background','#8039c5');
$('#m_bot').css('background','#8039c5');
$('.w_message').css('border-color','#8039c5');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style2.png") left bottom no-repeat');
break;
case '3':
$('#m_top').css('background','#ffc50c');
$('#m_mid').css('background','#ffc50c');
$('#m_bot').css('background','#ffc50c');
$('.w_message').css('border-color','#ffc50c');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style3.png") left bottom no-repeat');
break;
case '4':
$('#m_top').css('background','#ed2b36');
$('#m_mid').css('background','#ed2b36');
$('#m_bot').css('background','#ed2b36');
$('.w_message').css('border-color','#ed2b36');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style4.png") left bottom no-repeat');
break;
case '5':
$('#m_top').css('background','#e4531a');
$('#m_mid').css('background','#e4531a');
$('#m_bot').css('background','#e4531a');
$('.w_message').css('border-color','#e4531a');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style5.png") left bottom no-repeat');
break;
case '6':
$('#m_top').css('background','#74cb17');
$('#m_mid').css('background','#74cb17');
$('#m_bot').css('background','#74cb17');
$('.w_message').css('border-color','#74cb17');
$('.w_message .msgbtn').css('background','url("/template/default/images/newadd/style6.png") left bottom no-repeat');
break;
}
}