
//图片缩放
function show(obj){
	if(document.all){
		obj.lastChild.style.display = 'block';
	}else{
		$(obj).find("div").show();
		//obj.lastChild.previousSibling.style.display = 'block';
	}
}
function hide(obj){
	if(document.all){
		obj.lastChild.style.display = 'none';
	}else{
		$(obj).find("div").hide();
	//	obj.lastChild.previousSibling.style.display = 'none';
	}
}

function DrawImage(ImgD,w,h){ 
 var image=new Image(); 
 image.src=ImgD.src; 
 if(image.width>0 && image.height>0){ 
  flag=true; 
  if(image.width/image.height>= w/h){ 
   if(image.width>w){
    ImgD.width=w; 
    ImgD.height=(image.height*w)/image.width; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
  else{ 
   if(image.height>h){
    ImgD.height=h; 
    ImgD.width=(image.width*h)/image.height; 
   }else{ 
    ImgD.width=image.width;
    ImgD.height=image.height; 
   } 
   ImgD.alt=image.width+"x"+image.height; 
  } 
 }
}


jQuery(document).ready(function() {
	//日历显示开始
		jQuery('fieldset.jcalendar').jcalendar();
		var t_year = jQuery(".jcalendar-select-year option:selected").attr('value');
		var t_month = jQuery(".jcalendar-select-month option:selected").attr('value');
		jQuery('#now_date').empty().append('[' + t_year + '年] ' + t_month + '月');
		//日历显示结束
});
