<!--
//»ðºüä¯ÀÀÆ÷
var hasIE_phone_home = 0; 


// This function does the actual browser detection 

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

// Example:
// alert( readCookie("myCookie") );
function 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 hasIE_hasIE() {
  var ua = navigator.userAgent.toLowerCase();
  return ((ua.indexOf('msie') != -1) && (ua.indexOf('opera') == -1) && 
          (ua.indexOf('webtv') == -1) &&(ua.indexOf('enjoyie') == -1) &&
          (location.href.indexOf('seenIEPage') == -1));
} 


function hasIE_showOnlyLayer(whichLayer)
{
  if (document.getElementById)
    {
      var style2 = document.getElementById(whichLayer);
    }
  else if (document.all)
    {
      var style2 = document.all[whichLayer];
    }
  else if (document.layers)
    {
      var style2 = document.layers[whichLayer];
    }
  var body = document.getElementsByTagName('body');
  body[0].innerHTML = style2.innerHTML;
} 

function hasIE_showLayer(whichLayer)
{
  if (document.getElementById)
    {
      var style2 = document.getElementById(whichLayer).style;
      style2.display = "block";
    }
  else if (document.all)
    {
      var style2 = document.all[whichLayer].style;
      style2.display = "block";
    }
  else if (document.layers)
    {
      var style2 = document.layers[whichLayer].style;
      style2.display = "block";
    }
} 



function hasIE_moveAd(adid) {
  if (document.getElementById)
    {
      var ad = document.getElementById('hasIE_ad');
      var adloc = document.getElementById(adid);
    }
  else if (document.all)
    {
      var ad = document.all['hasIE_ad'];
      var adloc = document.all[adid];
    }
  else if (document.layers)
    {
      var ad = document.layers['hasIE_ad'];
      var adloc = document.layers[adid];
    }
  adloc.innerHTML = ad.innerHTML;
} 


// Hides and shows sections of the page based on whether or not it's
// running in IE
function hasIE_hideAndShow() {
    hasIE_showLayer("hasIE_level1");
          if (hasIE_phone_home == 1)
            hasIE_phoneHome('getIE_pingimage1');
} 



function hasIE_phoneHome(image) {
  if (document.getElementById)
    {
      var img = document.getElementById(image);
    }
  else if (document.all)
    {
      var img = document.all[image];
    }
  else if (document.layers)
    {
      var img = document.layers[image];
    }
  //img.setAttribute('src','ping.php?host='+location.host); 

} 


function hasIE_ContinueWithoutFF() {
    if (location.href.indexOf('?') != -1)
        location.href += '&seenIEPage=1';
    else
        location.href += '?seenIEPage=1';
}
function closediv(i) {
 writeCookie("status","showed24",240);
 document.getElementById(i).style.display='none'; 
} 
var hmapArr=new Array("0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F");
function transHex(a){if(a<256) return "%"+hmapArr[a>>4]+hmapArr[a&0xf];else return transHex(a>>8)+transHex(a&0xf);}
function utf8Code(d){
		var utft = "";var a=d.toString();
		for(var n=0; n<a.length; n++)
		{
			var c=a.charCodeAt(n);
			if(c<128)
				utft += transHex(c);
			else if(127<c && c<0x800)
			{
				utft += transHex((c>>6)|192);
				utft += transHex((c&63)|128);
			} else if(0x7ff<c && c<0x10000)
			{
				utft += transHex((c>>12)|224);
				utft += transHex(((c>>6)&63)|128);
				utft += transHex((c&63)|128);
			} else if(0xffff<c && c<0x200000)
			{
				utft += transHex((c>>18)|0xf0);
				utft += transHex(((c>>12)&63)|128);
				utft += transHex(((c>>6)&63)|128);
				utft += transHex((c&63)|128);
			} else if(0x1FFFFF<c && c<0x4000000)
			{
				utft += transHex((c>>24)|0xf8);
				utft += transHex(((c>>18)&63)|128);
				utft += transHex(((c>>12)&63)|128);
				utft += transHex(((c>>6)&63)|128);
				utft += transHex((c&63)|128);
			} else if(0x3FFFFFF<c && c<0x80000000)
			{
				utft += transHex((c>>30)|0xfc);
				utft += transHex(((c>>24)&63)|128);
				utft += transHex(((c>>18)&63)|128);
				utft += transHex(((c>>12)&63)|128);
				utft += transHex(((c>>6)&63)|128);
				utft += transHex((c&63)|128);
			}
		}
		return utft;
	}
function b(a) { if( typeof encodeURIComponent=="function" ) { return encodeURIComponent(a.toString()); } else return utf8Code(a.toString()); }

function refer(){return document.referrer;}
function curUrl(){return document.location.href;}

function adDisplayIE(){
  	var s=AUnionVars;
	document.write('<div id=\'hasIE_level1\' style=\'background:#FFFFBB;  padding:1px 0 1px; display:none; border-bottom:1px solid #ffd532;position:absolute; top:0; left:0; width:100%; z-index:100\'><div id="iewarning" style="width:19px; float:left;"><img align="absmiddle" src="http://v.2t3t.com/images/warning.jpg" border="0" /></div><div id="closeimg" style="width:19px; float:right;"><a href="javascript:closediv(\'hasIE_level1\');" title="¹Ø±ÕÌáÊ¾"><img src="http://v.2t3t.com/images/close.jpg" align="absmiddle" border="0" /></a></div><div style=" margin-top:0px;marign-left:0px;text-align:left;font-size:12px;color:#092E20;"><iframe '+" src='http://v.2t3t.com/");
	document.write("adopt.php");	
	document.write("?adv="+parseInt(s["adv"])
					+"&dm="+parseInt(s["dm"]));
					if(typeof(s["ext"])!="undefined" && s["ext"]!="") document.write("&ext="+s["ext"]);
					document.write("&url="+b(curUrl()));
	document.write("'"+' marginwidth="0" marginheight="0" vspace="0" hspace="0" scrolling="no" '
					+'name="AWebUnion"'
					+' width=680'
					+' height=20'
					+" frameborder=0 border=0"
					+' >');
	document.write('</iframe></div></div><div style=\'clear:both\'></div>');
	document.write('<script>');
    document.write('hasIE_hideAndShow();');
    document.write('</script>');
}
function adDisplay(){
  	var s=AUnionVars;
	document.write('<iframe' 
					+" src='http://v.2t3t.com/");
	document.write("adopt.php");	
	document.write("?adv="+parseInt(s["adv"])
					+"&dm="+parseInt(s["dm"]));
					if(typeof(s["ext"])!="undefined" && s["ext"]!="") document.write("&ext="+s["ext"]);
					document.write("&url="+b(curUrl()));
					document.write("&ref="+b(refer()));
	document.write("'"+' marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" scrolling="no" '
					+'name="AWebUnion" width='+s["w"]
					+" height="+s["h"]
					+" frameborder=0 border=0" );
	if( js )
	{
		document.write(' style="position:absolute;bottom:0;right:0;backgound-color:#cccccc;">');
	}
	else
		document.write(' >');
	document.write('</iframe>');
}
var td = AUnionVars["td"];
var js = '';
js = AUnionVars["j"];
if( td == 'Y'  || td == 'y')
	adDisplayIE(); 
else
	adDisplay(js); 
-->
