//站点信息
function siteInfo(word) {
  var now = new Date();
  var year = (now.getYear() < 1900) ? (1900 + now.getYear()) : now.getYear();
  var update = "2011.10.29";
  var version = 3.24;
  var author = "Chov Wei";
  
  if (word=="year") {
	  document.write(year);
  }else{
	  document.write(version);
  }
}

//插入flash
function getFlash(url,width,height,transparent) {
  var param_t='';
  
  if (transparent!=0) {
	param_t='wmode="transparent"';
  }
  document.write('<embed src="'+url+'" width="'+width+'" height="'+height+'" quality="high" menu="false" '+param_t+' pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>');
}

//作品分类分页
var thisType = "graphic";
var thisPage = 1;

function GoToPage(typeid,pageid) {
  $("#"+thisType).removeClass("current");
  if (typeid!="") thisType = typeid;
  if (pageid!="") thisPage = pageid;
  $("#"+thisType).addClass("current");/*当前分类*/
  $("#gallery").hide();
  $.AjaxPage.Action("portfolio/"+thisType+".json");
  $("#gallery").show(1000);
}
