<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<script>
function job(){
document.domain="blog.sina.com.cn";
var wl = window.location.href;
if (wl.length<7){ writeFrame(wl); return; }
var re = wl.substring(7);
/* conversion mapping */
/* there is no paging data for most type but just leave them here. */
var handleParam = {
alist : function (l){
if (l[1]*1 > 0) { l[0] = "sort"; }
else { l[0] = "aList"; }
},
// serial : function (l){},
// gbook : function (l){},
// feeds : function (l){},
albumindex : function (l){ l[0] = "album"; },
// albumPic : function (l){},
other : function (){}
}
var list = [];
var hash = window.location.hash.substr(1);
/* parse command param */
var ex = /^cmd:asc\(.*\/s\/(.+)\.html\)/.exec(hash);
ex && (ex[1].replace(/[^_]+/g, function (s){ list.push(s); }));
if (ex){ /* transform for anchor-command url */
list.splice(1, 1); /* remove uid */
try{handleParam[list[0]](list);} catch (e){}
re = re.replace(/\#.*/, "#" + list.join("_"));
} else if (re.indexOf("gbook") >= 0) re = re.replace(/\#.*/, "#gbook");
else if (re.indexOf("fl.html") >= 0) re = re.replace(/\#.*/, "#goodfriend");