var htmlurl = document.URL;
var vhtmlurl = document.URL;
if (htmlurl.indexOf("?")){
	var chtmlurl = htmlurl.split('?');	
	if (chtmlurl.length > 1){
		var tmp  = chtmlurl[1];
		filmurl = tmp.split(',');
		var playnum  = filmurl[0];
		vhtmlurl = chtmlurl[0];
	}else{
		var playnum  = 1;
	}
}else{
	var playnum  = 1;
}
if (top.location!== self.location) {top.location=self.location;}

//-------------------------------------------------------------

VideoUrlLen  = _urlList.length;
var urlnum = playnum-1;
var movBdUrl = utf8to16(base64decode(_urlList[urlnum].a));

if (urlnum > 0){
    var prevVideoUrl = '?'+(urlnum)+',0.html';
    var prevPage = vhtmlurl+'?'+(urlnum)+',0.html';
}else{
    var prevVideoUrl = '';
    var prevPage = '';
}
if (urlnum < (VideoUrlLen-1)){
    var nextVideoUrl = '?'+(urlnum+2)+',0.html';
    var nextPage =  vhtmlurl+'?'+(urlnum+2)+',0.html';
}else{
    var nextVideoUrl = '';
    var nextPage = '';
}

function pgup(){
    if (prevVideoUrl==''){alert('没有上一集了......')}else{window.location.href = prevVideoUrl;}
}
function pgdn(){
    if (nextVideoUrl==''){alert('没有下一集了......')}else{window.location.href = nextVideoUrl;}
}

document.title = '《'+_movieName+'》全集'+_urlList[urlnum].b+'正在预览 - 快播搜 QVOD快播影视资源搜索站';

function killErrors() {return true;}
window.onerror = killErrors;