﻿//alert('1 100');





/*
var doctype_scan = document.body.parentNode.parentNode.firstChild.nodeValue.search(/doctype/i);

//  Internet explorer fixed positioning may need strict headers
if ( doctype_scan != -1 ) {
document.body.parentNode.parentNode.firstChild.nodeValue = "doctype HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\"";
}
*/

// Detect user agent
var user_agent = navigator.userAgent;



// MSIE 6 Rollover caching bug
if ( user_agent.search(/msie 6/i) != -1 && user_agent.search(/msie 7/i) == -1 ) {

	try {
  		document.execCommand("BackgroundImageCache", false, true);
	} catch(err) {}

}



// Image preloads

Image1= new Image(325,90);
Image1.src = "ad/left2.gif";


Image2= new Image(1,90);
Image2.src = "ad/bg2.gif";




var script_path = '';


if ( document.compatMode.search(/BackCompat/i) != -1 ) {
document.write("<div id='ufa_position' style='position: absolute; display: none; left: 0px; bottom: 0px; width: " + document.body.scrollWidth +  "px;'>");
}


document.write("<link href=\"ad/style.css\" rel=\"stylesheet\" type=\"text/css\" />");

// Seperation may make it easier for MSIE 7 to recognize it has loaded document.getElementById('catfish') when it is called afterwards?
document.write("<div id='catfish' style='color: #ffffff; font-size: 16px; '>");

document.write("<div style=\"position: relative;  z-index: 100;\"> <div style=\"position: absolute; z-index: 100; top: 23px; background-color: white; width: 100%; height: 88px;\"></div><div id='div_left_gif' style=\"position: absolute; top: 0px;  left: 0px; width: 100%; height: 90px; z-index: 101; border: 0px solid red; \"><a href=\"http:\/\/www.21nk.com\/dingyue\/\"  target=\"_blank\"><img id=\"left_gif\" src=\"Ad/left2.gif\" alt=\"\" border=\"0\" onclick=\"\" style=\"position: relative; z-index: 101;\" /></a></div><table id='f_ad_gen_render' width=\"100%\" height=\"90\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"position: relative; border: 0px solid blue; z-index: 100;\"><tr>	<td colspan=\"20\" style=\"position: relative; width: 330px; height: 22px; border: 0px solid red; \"></td></tr><tr>	<td rowspan=\"5\" style=\"position: relative; width: 130px; \"></td></tr><tr><td valign='top' style=' background: url(ad/bg2.gif); background-repeat: repeat-x; background-position: 0px -22px;   width: 100%; height: 68px; border: 0px solid green;'><a href=\"#\" id=\"catfish_close\" style=\"position: absolute; top: 34px; right: 3px; color: #808080; font-size: 14px; font-family: Arial, Symbol, Serif;  z-index: 100; text-decoration: none; border: 1px solid #808080; background: #e3d7d7; padding-left: 1px; padding-right: 1px;\" title='关闭'><b>X</b></a></td></tr></table></div>");

//document.write("<div style=\"position: relative;  z-index: 100;\"> <div style=\"position: absolute; z-index: 100; top: 23px; background-color: white; width: 100%; height: 88px;\"></div><div id='div_left_gif' style=\"position: absolute; top: 0px;  left: 0px; width: 325px; height: 90px; z-index: 101; border: 0px solid red; \"><img id=\"left_gif\" src=\"Ad/left2.gif\" alt=\"\" border=\"0\" onclick=\"\" style=\"position: relative; z-index: 101;\" /></div><table id='f_ad_gen_render' width=\"100%\" height=\"90\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\" style=\"position: relative; border: 0px solid blue; z-index: 100;\"><tr>	<td colspan=\"20\" style=\"position: relative; width: 330px; height: 22px; border: 0px solid red; \"></td></tr><tr>	<td rowspan=\"5\" style=\"position: relative; width: 330px; \">&nbsp;</td></tr><tr>	<td valign='top' style=' background: url(ad/bg2.gif); background-repeat: repeat-x; background-position: 0px -23px;   width: 100%; height: 68px; border: 0px solid green;'><iframe name='ad_iframe' id='ad_iframe' src=\"ad/ad.html\" width=\"98%\" height=\"68\" scrolling=\"no\" frameborder=\"0\" style='position: relative; z-index: 100; margin: 0px; padding: 0px; top: 0px;'>You need Explorer v.6+ or FireFox v.1+ or equivelent...</iframe><a href=\"#\" id=\"catfish_close\" style=\"position: absolute; top: 34px; right: 3px; color: #808080; font-size: 14px; font-family: Arial, Symbol, Serif;  z-index: 100; text-decoration: none; border: 1px solid #808080; background: #e3d7d7; padding-left: 1px; padding-right: 1px;\" title='关闭'><b>X</b></a></td></tr></table></div>");

// Seperation may make it easier for MSIE 7 to recognize it has loaded document.getElementById('catfish') when it is called afterwards?
document.write("</div>");


// DEBUGGING
//document.getElementById('MSIE_FAKE_ERROR_LINE_DETECT').style.display = 'inline';
//alert(document.compatMode.search(/BackCompat/i));
//alert('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)');
//document.write('<textarea rows="10" cols="30">Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon 2.0)</textarea>');

if ( document.compatMode.search(/BackCompat/i) != -1 ) {

document.write("</div>");

}





load_image1();

function load_image1() {
Image1.onLoad = load_image2();
}

function load_image2() {
Image2.onLoad = load_iframe();
}



function load_iframe() {
document.getElementById('f_ad_gen_render').onLoad = setTimeout("allow_ad()", 5000); //弹出时间设置
//setTimeout("allow_ad()", 5000);
//alert('mike testing - cross-site');
}


function allow_ad() {
	
	if ( document.compatMode.search(/BackCompat/i) != -1 ) {
	//document.getElementById('ufa_position').style.display = 'inline';  // MAY CAUSE SEVERE ISSUES IN IE7
	}
	
//document.getElementById('catfish').style.display = 'inline';
jQuery(document.getElementById('catfish')).catfish({animation: 'slide',closeLink: '#catfish_close',height: 90});
}







//alert('display_delay=5000 ad_id=100');



