Array.prototype.indexOf = function(obj, start) {
     for (var i = (start || 0), j = this.length; i < j; i++) {
         if (this[i] === obj) { return i; }
     }
     return -1;
}

var paras;
var indexID;

function request() {
	var url = location.href;
		var paraString = url.substring(url.indexOf("/") + 1, url.length).split("/");
		var curURL = paraString[paraString.length-1];
		if(curURL.split('?').length > 1){
			indexID = curURL.split('?')[curURL.split('?').length-1];
			if(indexID != null || indexID != undefined){
				indexID = 1;
			}
			curURL = curURL.split('?')[0];
		}else{
			curURL = paraString[paraString.length-1];
		}
		var htmlURLArr = new Array("fairy.html","role.aspx","child_star.html","star_show.aspx","pk.aspx","activities.html","activities2.html","http://bjsite.sohu.com/s2011/taizile/");
		//var htmlURLArr = new Array("fairy.html","role.aspx","child_star.html","star_show.html","pk.html","activities.html","activities2.html","http://bjsite.sohu.com/s2011/taizile/");
		
		paras = htmlURLArr.indexOf(curURL);
		
		if(paras == 2){
			paras = 1
		}
		if(paras == 3){
			paras = 2
		}
		if(paras == 4){
			paras = 3
		}
		if(paras == 5 || paras == 6){
			paras = 4
		}
}
//
//meue.swf
var id=request("id");
	if (id == undefined || id=="undefined"){
	id=-1;
}
	
var params = {
	quality: "high",
	scale: "noscale",
	wmode: "transparent",
	allowscriptaccess: "always"
};

var FlashVars = {
	id:paras
};

var attributes = {
	id: "nav",
	name: "nav"
};








