var id = top.location.href +"", e = new Array(68,67),
cvg = setTimeout("",700), cvgx = setTimeout("",700), ie = (document.all)?true:false, tout = 500, app = 0;

id = id.substring(id.lastIndexOf("/cg")+3,id.lastIndexOf(".html"));
if (isNaN(id)) id = "01";

function zero(z) {
if (z<10) return "0"+z;
else return z;
}

for (var i=0,x;i<e.length;i++) {
x = e[i];
e[i] = new Array(new Image(x,38),new Image(x,38),false);
x = zero(i+4);
e[i][0].src="../img/covergirl2004_"+ x +".gif";
e[i][1].src="../img/covergirl2004_over_"+ x +".gif";
}




function faceoff(obj,srx) {
if (faceoff.arguments.length>1) {
	if (obj) {
		if (document.all) {
			obj.filters.blendTrans.Stop();
			obj.filters.blendTrans.Apply();
			obj.src=srx.src;
			obj.filters.blendTrans.Play();
		}else obj.src=srx.src;
	}
}
}


function CorN(z,div,obj,lef_) {
if (ie) {
document.all[div].style.visibility = (z)?"visible":"hidden";
if (lef_) document.all[div].style.posLeft = lef_;
}else {
document.layers[div].visibility = (z)?"show":"hide";
if (lef_) document.layers[div].moveTo(lef_,123);
}
faceoff(e[obj][2],e[obj][z]);
}
/*
function fish(obj,srx) {
if (srx) {
	clearTimeout(cvg);
	CorN(1,"cgirl",app);
}else cvg=setTimeout("CorN(0,\"cgirl\","+app+")",tout);
faceoff(pretty[obj][2],pretty[obj][srx]);
}
*/
function exps(srx,div,obj,ti) {
if (srx) {
	eval("clearTimeout("+ti+")");
	CorN(1,div,obj);
}else eval(ti+"=setTimeout(\"CorN(0,'"+div+"',"+obj+")\",tout)");
}
/*
function firmIt() {
if (ie)
(document.all["cgnews"].style.visibility=="visible")?CorN(0,"cgnews",1):exps(1);
else
(document.layers["cgnews"].visibility=="show")?CorN(0,"cgnews",1):exps(1);
}

function toW(zn) {
var no = (zn)?zero(zn):id;
top.location.href = (app)?"http://app.tvb.com/board/special/cg2003/index.asp?id="+no:"http://tvcity.tvb.com/special/cg2003/cg"+no+".html";;
}
*/
function gogogo(url) {
if (url) top.location.href="http://tvcity.tvb.com/special/covergirl2004/express/"+url+".html";
}

function load() {
for (var i=0;i<e.length;i++)
e[i][2] = document.images["bb"+ i];


}

ICN_onLoad = "load();";