﻿/// <reference path="jquery-1.4.1-vsdoc.js" />
/// <reference path="jquery.cookie.js" />

$().ready(function() {
    $('#cnmgb p[id=citytj]').click(function() {
        cityclick(this);
    })
})

var cityclick = function(sender) {

    $('#cnmgb p[id=citytj]').removeClass('p2');
    $(sender).addClass("p2");
    var cookie = $(sender).attr('rel');
    //$.cookie('city_choose', cookie);
    $('div[id=list2][class=showxl]').each(function() {
        if ($(this).attr('rel') == cookie) {
            $(this).show();
        }
        else {
            $(this).hide();
        }
    })
}
 

