//var e = new Array(73,114,71,72,57,58,58,24,27),
//fn = new Array(50,62,36);

tpc = new Image(180,86);

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,30),new Image(x,30),false);
x = (i>=7)?zero(i+3):zero(i+2);
e[i][0].src="../img/menu_"+ x +".gif";
e[i][1].src="../img/menu_over_"+ x +".gif";
}

for (var i=0,x;i<fn.length;i++) {
x=fn[i];
fn[i] = new Array(new Image(x,27),new Image(x,27),false);
x = zero(i+4);
fn[i][0].src="../img/left_"+ x +".jpg";
fn[i][1].src="../img/left_over_"+ x +".jpg";
}
*/
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;
	}
}
}

epi = location.pathname.substring(location.pathname.lastIndexOf('/')+1,location.pathname.lastIndexOf('.'));
function trailer(){
	popup = window.open('http://tvcity.tvb.com/drama/misadventure/story/trailer/300k.html?'+epi,'love','width=350,height=380,resizable');
	popup.focus();
}

function themesong(bandwidth) {
if (bandwidth==56)
void(window.open("http://tvcity.tvb.com/drama/misadventure/song/index_56k.html","","width=300,height=345"));
else
void(window.open("http://tvcity.tvb.com/drama/misadventure/song/index_300k.html","","width=350,height=380"));
}

/*
function band(obj,srx) {
if (bn[0]==false&&bn[1]==false)
faceoff(e[7][2],e[7][0]);
else faceoff(e[7][2],e[7][1]);
faceoff(e[obj][2],e[obj][srx]);
}
*/


function load() {
faceoff(document.images.topic,tpc);
/*for (var i=0;i<e.length;i++)
e[i][2] = document.images["m"+ i];
for (var i=0;i<fn.length;i++)
fn[i][2] = document.images["fn"+ i];
*/
}

ICN_onLoad = "load();";
