function _init(){
	this.start = function(){ 
		if(this.run instanceof Object){
			this.run();
		}
	}	
}
var init = new _init();
$(document).ready(function(){
  init.start();
});
var pathname = document.location.pathname;
function BaseClass()
{
	//去除所有空格
	 this.trim=function(str){
		str=str.replace(/^\s+/g,'');
		return str.replace(/\s+$/g,'');
	}
	this.trimspace=function (str){
	  str=str.replace(/ /g,"");
 	 return str;
 	}
	// 如果含有中文就返回 true
	 this.hasChinese=function (theelement)
	{
	   text="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-+*/.，。？……￥…—（）|'[]\{}<>?~`!@#$%^&*()_";
	   for(i=0;i<=theelement.length-1;i++)
	   {
		  char1=theelement.charAt(i);
		  index=text.indexOf(char1);
		  if(index<0){ return true; }
	   }   return false;
	}
	this.trimdoc=function(str)
{
  str=str.replace(/\.{1,}/g,".");
  str=str.replace(/^\.{1,}/g,"");
  str=str.replace(/\.{1,}$/g,"");
  return str;
}

 this.IsChinese=function(theelement)
{
   text="abdfghijklpqrsuvwxyz ABDFGHIJKLMPQRSUVWXYZ0123456789-+*/|'[]\{}<>?~`!@#$%^&*()_";
   for(i=0;i<=theelement.length-1;i++)
   {
      char1=theelement.charAt(i);
      index=text.indexOf(char1);
      if(index>=0)
	  { 
	  return false; 
	  }
   }
   return true;
}
}

var base = new BaseClass();
if(pathname=="/index.html" ||pathname=="/"){
init.run = function(){
	
		this.keyHandle=function (){
			if(window.event.keyCode==13){
				var eveObj = window.event?window.event:event;
				if(eveObj.srcElement.id=="quickbuyquery"){
					eveObj.returnValue=false;
					this.fastregister(document.forms[3]);
				}
			}
		}
		
this.fastregister=function(form){
	if(form.query.value.length==0 || form.query.value==null){
		alert("Please input the domain you want to register!");
		return false;
	}else{
		if(!/\./.test(form.query.value)){
			form.query.value = form.query.value+form.domain.options[form.domain.selectedIndex].value;
		}
		form.submit();
	}
}
this.getCheck=function (form){
	if(!form.query.value){
		return false;
	}
}
this.checkLogin=function (form){  
	if(form.UserName.value==""){ 
		alert("Please enter the UserName!"); 
		form.UserName.focus(); return false;
	}else if(form.chrPassword.value==""){ 
		alert("Please enter the Password!"); 
		form.chrPassword.focus(); return false;
	}else
	{
		return true;
		}
}

this.Marquee11=function (){
	   if(demo2.offsetTop-demo.scrollTop<=0)
			demo.scrollTop-=demo1.offsetHeight
	   else{
			demo.scrollTop++
	   }
   }
   }
}else if(pathname=="/vhost/"|| pathname=="/vhost/index.net"){
	init.run=function(){
		
		this.MM_openBrWindow=function (theURL,winName,features) { 
         window.open(theURL,winName,features);
      }

this.MM_reloadPage=function (init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
this.MM_reloadPage(true);

 this.check=function(form){
		if(form.ftpuser.value==""){
		   alert("Please enter the FTP name!");
		   return false;
		}
		if(form.ftppass.value==""){
		   alert("Please enter FTP password!");
		   return false;
		}
		if(form.randNum.value==""){
		   alert("Please enter the verification code!");
		   return false;
		}
		return true;
	}	
	}
	
}else if(pathname=="/vhost/order.net"){
	init.run=function(){
		
	this.checkDomain=function(domain)
{
	if(domain.indexOf(".")==-1) 
	{
	    return -1;
	}	
	return 1;
}
this.getTargetIDProduct=function (form)
{
	var choose= false;
	var TargetIDProduct = 0;
	if(form.TargetIDProduct.length>0)
	{  
		for(i=0;i<form.TargetIDProduct.length;i++)
		{   	
			if(form.TargetIDProduct[i].checked)
			{
				TargetIDProduct = form.TargetIDProduct[i].value;
				choose=true;
			}	   	  	
		}
	}
	else
	{
		if(form.TargetIDProduct.checked)
		{
			TargetIDProduct = form.TargetIDProduct.value;
			choose=true;   	     	
		}
	}	
	return TargetIDProduct;
}	
	
	
	this.checkSubmit=function (from)
{
	var sf = document.getElementsByName("subform");
	var len = sf.length;
	var currentSelect = 1;
    if(len>0){
        for(var i=0;i<len;i++){
            if(sf[i].checked==true){
				currentSelect = i+1;
				continue;
            }
        }
    }
	if(currentSelect==4){
		return true;
	}
	from.chrDomain.value=from.chrDomain.value.replace(/ /g,"");
	from.chrDomain.value=from.chrDomain.value.replace(/\.{2,}/g,".");
	from.chrDomain.value=from.chrDomain.value.replace(/^\.{1,}/,"");
	from.chrDomain.value=from.chrDomain.value.replace(/\.{1,}$/,"");
	from.chrDomain.value=from.chrDomain.value.toLowerCase();
   
	if(!from.subform[0].checked)
	{ 
		if(from.chrDomain.value=='')
		{
			alert("Please input domain name");
			from.chrDomain.focus();
			return false;
		}
		var domain=this.checkDomain(from.chrDomain.value);	 
		if(domain<1) 
		{
			alert("domain name error.");
			from.chrDomain.focus();
			return false;
		}
	}
	if(from.subform[0].checked)
	{			
			from.action="../domain/index.net";
			from.submit();
	}
	if(from.subform[1].checked)
	{
			from.action="../domain/change.net";
			from.submit();
	}
	V_Form = from;
	isDomainExist(domain);
    return false;
}


this.showDomainPanel=function ()
{
	$("#domain_panel").show();
	$("#domain_panel2").hide();
	$("#subm").attr("disabled","");
}
this.hiddenDomainPanel=function(){
	$("#domain_panel").hide();
	$("#domain_panel2").hide();
	$("#subm").attr("disabled","");
}


		
	}
}else if(pathname=="/email/index.net"||pathname=="/email/"){
init.run=function(){
	this.CheckGP=function(frm, idprod){
	if(idprod.indexOf(":")<=0){
		frm.action = "/product/GOrder.net?IDProd="+idprod;
	}
	else {
		str=idprod.split(":");
		frm.action = "order.net?IDProd="+str[0]+"&intQuota="+str[1];
	}
}
  this.vipBuy=function(form){
	form.vipMail.value = "block";
	form.submit();
}
		
		}
}else if(pathname=="/email/order.net"){
init.run=function(){
	this.trim=function(str){
		return base.trim(str);
		}
	var QuotaProportion;
	this.ShowANDHide=function (show, hide){
		hide.style.display="none";
		show.style.display="";
     }

this.getRadioValue=function (radio){
	var val=0;
	for(i=0;i<radio.length;i++){
		if(radio[i].checked){
			val = radio[i].value;
			break;
		}
	}
	return val;
}
this.check=function (frm)
{
	frm.intQuota.value = base.trim(frm.intQuota.value);
	//frm.user.value = Trim(frm.user.value);
	if (frm.intQuota.value=="" || frm.intQuota.value=="0")
	{
		alert("Please input how much size you want");
		frm.intQuota.focus();
		return false;
	}
	if(frm.intQuota.value%50!=0){
		alert("Mailbox size must be in multiples of 50");
		frm.intQuota.focus();
		return false;
	}
	if(frm.intQuota.value<250){
		alert("Customize size should be more than 250M at least.");
		frm.intQuota.focus();
		return false;
	}
	if(countAddPrice(frm)==false)
	{
				return false;
	}
	if(frm.isRead.checked == false){
		alert("Please confirm you've read the Terms of Eranet's Mailbox");
		frm.isRead.focus();
		return false;
	}
	return true;
}	
	
	var req;
this.Initialize=function ()
{
	try{
		req=new ActiveXObject("Msxml2.XMLHTTP");
	}catch(e){
		try{
			req=new ActiveXObject("Microsoft.XMLHTTP");
		}catch(oc){
			req=null;
		}
	}
	if(!req&&typeof XMLHttpRequest!="undefined"){
		req=new XMLHttpRequest();
	}
}
this.SendQuery=function (url)
{
	this.Initialize();
	//var url="diyAccount.net?intQuota="+frm.intQuota.value+"&IDProd="+frm.IDProd.value+"&period="+frm.period.value;
	if(req!=null){
		req.onreadystatechange = this.Process;
		req.open("GET", url, true);
		req.send(null);
	}
}

this.Process=function ()
{
	if (req.readyState == 4) {
		// only if "OK"
		if (req.status == 200) {
			document.getElementById("showprice").innerHTML =req.responseText;
			//}
		}else{
			//document.getElementById("showprice").innerHTML="There was a problem retrieving data:<br>"+req.status;
		}
	}
}
this.changeyear=function ()
{
   	document.getElementById("intYear").value=document.getElementById("intYears").value;
}

this.getIDProd=function (frm){
	frm.IDProd.value = (this.getRadioValue(frm.fHost)+""+this.getRadioValue(frm.clamID));
	return frm.IDProd.value;
}		
	}}else if(pathname=="/email/email_binddomain.net"){
init.run=function(){
	this.checkDomain=function(domain)
{
    if(domain.indexOf(".")==-1) return -1;
	if(domain.charCodeAt(0)>127){  //中文域名
	     for(i=0;i<domain.length;i++){
		     if(domain.charAt(i)!="."){
			     if(domain.charCodeAt(i)<127){
				     return -2;
				 }
			 }
		 }
	} else {
	    if(/^[0-9A-Za-z\.-]{1,50}$/.test(domain)==false)
		{
		    return -3;
		}
	
		var compare_domain="edu.cn now.net.cn now.cn i-now.cn 8now.cn gb.com.cn bta.net.cn cnc.ac.cn sina.com sina.com.cn 163.com.cn 163.com vip.163.com sohu.com hotmail.com yahoo.com yahoo.com.cn 263.net 263.com online.sh.cn cis.com.cn east.cn.net china.com cww.com fm365.com yesite.com renren.com gznet.com tom.com ihw.com.cn chinaren.com chinese.com netbig.com focus.com.cn myrice.com zhaodaola.com.cn mweb.com.cn inhe.net szonline.net szptt.net.cn tyfo.com chinabyte.com yesky.com ccidnet.com suzhoudaxue.com zdnet.com.cn 163.net 21cn.com soim.com elong.com etang.com sinoi.com soufun.com chininfobank.com ejiajia.com ourgame.com tencent.com the9.com 8848.com eguo.com alibaba.com meetchina.com asiaec.com atoz.com 100ok.com coolbid.com joyo.com dangdang.com foundbook.com bookoo.com stockstar.com homeway.com.cn yestock.com 158china.com stock2000.com.cn kangxi.com chinaholiday.com ctn.com.cn ctrip.com people.com.cn xinhuanet.com cyol.net 21dnn.com eastday.com bjyouth.com.cn cjol.com china-hr.com 51job.com zhaopin.com healthoo.com chinah.com 999.com.cn 2919.net netbig.com hongen.com chinaed.com chinaed.com chinaedu.com 126.com gmail.com qq.com";
		if(compare_domain.indexOf(domain)>=0) return -4;
	}
}
this.check=function (frm)
{
	frm.bindaction.value = base.trim(frm.bindaction.value);
	if(frm.bindaction.value) return true;
	frm.chrDomain.value = base.trim(frm.chrDomain.value);
	frm.chrDomain.value = frm.chrDomain.value.replace(/^www\./g,"");
	if (frm.chrDomain.value=="")
	{
		alert("Please input a domain");
		frm.chrDomain.focus();
		return false;
	}
	var ck=this.checkDomain(frm.chrDomain.value);
	if(ck==-1){
	  alert("Please input a valid domain name");
	  frm.chrDomain.focus();
	  return false;
	}
	if(ck==-2){
	  alert("Please input a valid domain name");
	  frm.chrDomain.focus();
	  return false;
	}
	if(ck==-3){
	  alert("Please input a valid domain name");
	  frm.chrDomain.focus();
	  return false;
	}
	if(ck==-4){
	  alert("This domain name has already exists");
	  frm.chrDomain.focus();
	  return false;
	}
	return checkForm(frm);
}
	
	
	}}
	else
if(pathname=="/domain/index.net" || pathname=="/domain/"){
	init.run=function(){
 	this.checkForm=function(form){
		form.query.value=base.trim(form.query.value);
		if(form.query.value=="")
		{
			alert("This domain you entered must include chinese character");form.query.focus();return false;
		}
	
		if(base.hasChinese(form.query.value)==false)
		{
			form.query.value="";alert("This domain you entered must include chinese character");form.query.focus();return false;
		}
	 }
	 this.check_realname=function(form)
	{
	  if(form.query.value==''){alert('Please input a domain!');form.query.focus();return(false)}
	  //if(/[,:;\'\"，。： ；“”‘’·￥……、\/\\\+#&]/.test(form.query.value)==true)
	}
  

}}else if(pathname=="/domain/dotcnlist.net"){
init.run=function(){
  
this.check=function (tt){
   tt.query.value=base.trimspace(tt.query.value);
   tt.query.value=tt.query.value.toLowerCase();
   if(tt.query.value==""){
     alert("please input the domain you want to register");
	 tt.query.focus();
	 return false;
   }
   return true;
}
this.SelectAll=function(cc,tt)
{
	var checkEntered = document.getElementsByName("domain[]");
	for(var i=0;i<checkEntered.length;i++)
	{
			tableId = checkEntered[i].parentNode.parentNode.parentNode.parentNode.id;
			if(tableId==tt) checkEntered[i].checked = cc.checked;
	}
}

}}	else if(pathname=="/domain/change.net"){
init.run=function(){
	
var aa="";
this.checkdomain=function (theelement)
{
   text=".";
   for(i=0;i<=theelement.length-1;i++)
   {
      char1=theelement.charAt(i);
      index=text.indexOf(char1);
      if(index>=0)
      {
	   return true;
      }
   }
   return false;
}
 this.filter_cn2=function(which)
{
  which.chrDomain.value=which.chrDomain.value.replace(/^www\./,"");
  which.chrDomain.value=base.trim(which.chrDomain.value);
  which.chrDomain.value=base.trimdoc(which.chrDomain.value);
  which.chrDomain.value=which.chrDomain.value.toLowerCase();
  VALUE=which.chrDomain.value.toLowerCase();
  if(VALUE=="")
  {
  alert("Please Enter the domain that you want to transfer");
  which.chrDomain.focus();
  return(false);
  }
  if(/^[0-9A-Za-z-.]{1,}$/.test(VALUE)==false && !base.IsChinese(VALUE))
  {
  alert("domain contains Illegal Characters ");
  which.chrDomain.focus();
  return(false);
  }
  if(VALUE.indexOf(".")<1)
  {
     alert("Please enter the correct domain name");which.chrDomain.focus();return(false);
  }

  if(which.agreement.checked==false)
  {
  	 alert("Please understand and accept the Domain Transfering Agreetment of Todayisp");
	 which.agreement.focus();
	 return(false);
  }
  aa=VALUE.substring(VALUE.lastIndexOf(".")+1);
 
  //bb=new Array("com","net","gov","edu","org","cc","tv","hk","tw","sg");
// if(which.chrMethod.value="??")
/*
  if (!which.chrMethod[1].checked)
  {
	  if(aa!="cc" && aa!="tv" && aa!="cn" && aa!="com" && aa!="net" && aa!="org" && aa!="info" && aa!="name" && aa!="biz" && aa!="й" && aa!="?" && aa!="" && aa!="tw" && aa!="mobi" && aa!="travel"&& aa!="us")
	  {
		 alert("Domain cannot be transferred ");which.chrDomain.focus();return(false);
	  }
   }
   */
}
	
}}else if(pathname=="/chinesedomain/"|| pathname=="/chinesedomain/index.net"){
init.run=function(){
	this.checkForm=function(form)
	 {
    	if(form.query.value=="")
		{
	    	alert("Please enter the Chinese domain name you want to register!");form.query.focus();return false;
		}
		form.query.value=form.query.value.replace(/ /g,"");
	if(base.hasChinese(form.query.value)==false)
	{
	    alert("The registered domain name must include Chinese!");form.query.focus();return false;
	}
 }
this.MM_openBrWindow=function (theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

}}


checkLogin=function(form){
	if(form.UserName.value==""){
		alert("Please enter the UserName!");
		form.UserName.focus();
		return false;
	}else if(form.chrPassword.value==""){
		alert("Please enter the Password!");
		form.chrPassword.focus();
		return false;
	}
	return true;
}

getCheck=function(form){
	if(!form.query.value){return false;}
}

function changeLogo(){
	if(document.domain=='eranet.com' || document.domain=='www.eranet.com' || document.domain=='www.t.todayisp.com'){
		document.getElementById('logo').src="images/logo.png";<!--eranet_logo.gif-->
	}
}

function playFlash(slideID){
	var slide_id = parseInt(slideID);
	for(var i=0; i< flashArray.length;i++){
		flash_content = $("#scroller #flashContent"+i)
		if(flash_content.size()){
			if(i==slide_id){
				// this slide is the current slide, play it
				flashArray[slide_id].flash(
					function(){
						this.GotoFrame(0);
						this.Play();
					}
				);
			}else{
				//make sure the other slides are off
				flashArray[i].flash(
					function(){
						this.GotoFrame(0);
						this.StopPlay();
					}
				);
			}
		}
	}
}



/*IE6 PNG透明*/
var isIE=!!window.ActiveXObject;
var isIE6=isIE&&!window.XMLHttpRequest;
if (isIE6){
var DD_belatedPNG={ns:'DD_belatedPNG',imgSize:{},createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,'urn:schemas-microsoft-com:vml')}if(window.attachEvent){window.attachEvent('onbeforeunload',function(){DD_belatedPNG=null})}},createVmlStyleSheet:function(){var style=document.createElement('style');document.documentElement.firstChild.insertBefore(style,document.documentElement.firstChild.firstChild);var styleSheet=style.styleSheet;styleSheet.addRule(this.ns+'\\:*','{behavior:url(#default#VML)}');styleSheet.addRule(this.ns+'\\:shape','position:absolute;');styleSheet.addRule('img.'+this.ns+'_sizeFinder','behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;');this.styleSheet=styleSheet},readPropertyChange:function(){var el=event.srcElement;if(event.propertyName.search('background')!=-1||event.propertyName.search('border')!=-1){DD_belatedPNG.applyVML(el)}if(event.propertyName=='style.display'){var display=(el.currentStyle.display=='none')?'none':'block';for(var v in el.vml){el.vml[v].shape.style.display=display}}if(event.propertyName.search('filter')!=-1){DD_belatedPNG.vmlOpacity(el)}},vmlOpacity:function(el){if(el.currentStyle.filter.search('lpha')!=-1){var trans=el.currentStyle.filter;trans=parseInt(trans.substring(trans.lastIndexOf('=')+1,trans.lastIndexOf(')')),10)/100;el.vml.color.shape.style.filter=el.currentStyle.filter;el.vml.image.fill.opacity=trans}},handlePseudoHover:function(el){setTimeout(function(){DD_belatedPNG.applyVML(el)},1)},fix:function(selector){var selectors=selector.split(',');for(var i=0;i<selectors.length;i++){this.styleSheet.addRule(selectors[i],'behavior:expression(DD_belatedPNG.fixPng(this))')}},applyVML:function(el){el.runtimeStyle.cssText='';this.vmlFill(el);this.vmlOffsets(el);this.vmlOpacity(el);if(el.isImg){this.copyImageBorders(el)}},attachHandlers:function(el){var self=this;var handlers={resize:'vmlOffsets',move:'vmlOffsets'};if(el.nodeName=='A'){var moreForAs={mouseleave:'handlePseudoHover',mouseenter:'handlePseudoHover',focus:'handlePseudoHover',blur:'handlePseudoHover'};for(var a in moreForAs){handlers[a]=moreForAs[a]}}for(var h in handlers){el.attachEvent('on'+h,function(){self[handlers[h]](el)})}el.attachEvent('onpropertychange',this.readPropertyChange)},giveLayout:function(el){el.style.zoom=1;if(el.currentStyle.position=='static'){el.style.position='relative'}},copyImageBorders:function(el){var styles={'borderStyle':true,'borderWidth':true,'borderColor':true};for(var s in styles){el.vml.color.shape.style[s]=el.currentStyle[s]}},vmlFill:function(el){if(!el.currentStyle){return}else{var elStyle=el.currentStyle}for(var v in el.vml){el.vml[v].shape.style.zIndex=elStyle.zIndex}el.runtimeStyle.backgroundColor='';el.runtimeStyle.backgroundImage='';var noColor=(elStyle.backgroundColor=='transparent');var noImg=true;if(elStyle.backgroundImage!='none'||el.isImg){if(!el.isImg){el.vmlBg=elStyle.backgroundImage;el.vmlBg=el.vmlBg.substr(5,el.vmlBg.lastIndexOf('")')-5)}else{el.vmlBg=el.src}var lib=this;if(!lib.imgSize[el.vmlBg]){var img=document.createElement('img');lib.imgSize[el.vmlBg]=img;img.className=lib.ns+'_sizeFinder';img.runtimeStyle.cssText='behavior:none; position:absolute; left:-10000px; top:-10000px; border:none;';img.attachEvent('onload',function(){this.width=this.offsetWidth;this.height=this.offsetHeight;lib.vmlOffsets(el)});img.src=el.vmlBg;img.removeAttribute('width');img.removeAttribute('height');document.body.insertBefore(img,document.body.firstChild)}el.vml.image.fill.src=el.vmlBg;noImg=false}el.vml.image.fill.on=!noImg;el.vml.image.fill.color='none';el.vml.color.shape.style.backgroundColor=elStyle.backgroundColor;el.runtimeStyle.backgroundImage='none';el.runtimeStyle.backgroundColor='transparent'},vmlOffsets:function(el){var thisStyle=el.currentStyle;var size={'W':el.clientWidth+1,'H':el.clientHeight+1,'w':this.imgSize[el.vmlBg].width,'h':this.imgSize[el.vmlBg].height,'L':el.offsetLeft,'T':el.offsetTop,'bLW':el.clientLeft,'bTW':el.clientTop};var fudge=(size.L+size.bLW==1)?1:0;var makeVisible=function(vml,l,t,w,h,o){vml.coordsize=w+','+h;vml.coordorigin=o+','+o;vml.path='m0,0l'+w+',0l'+w+','+h+'l0,'+h+' xe';vml.style.width=w+'px';vml.style.height=h+'px';vml.style.left=l+'px';vml.style.top=t+'px'};makeVisible(el.vml.color.shape,(size.L+(el.isImg?0:size.bLW)),(size.T+(el.isImg?0:size.bTW)),(size.W-1),(size.H-1),0);makeVisible(el.vml.image.shape,(size.L+size.bLW),(size.T+size.bTW),(size.W),(size.H),1);var bg={'X':0,'Y':0};var figurePercentage=function(axis,position){var fraction=true;switch(position){case'left':case'top':bg[axis]=0;break;case'center':bg[axis]=.5;break;case'right':case'bottom':bg[axis]=1;break;default:if(position.search('%')!=-1){bg[axis]=parseInt(position)*.01}else{fraction=false}}var horz=(axis=='X');bg[axis]=Math.ceil(fraction?((size[horz?'W':'H']*bg[axis])-(size[horz?'w':'h']*bg[axis])):parseInt(position));if(bg[axis]==0){bg[axis]++}};for(var b in bg){figurePercentage(b,thisStyle['backgroundPosition'+b])}el.vml.image.fill.position=(bg.X/size.W)+','+(bg.Y/size.H);var bgR=thisStyle.backgroundRepeat;var dC={'T':1,'R':size.W+fudge,'B':size.H,'L':1+fudge};var altC={'X':{'b1':'L','b2':'R','d':'W'},'Y':{'b1':'T','b2':'B','d':'H'}};if(bgR!='repeat'){var c={'T':(bg.Y),'R':(bg.X+size.w),'B':(bg.Y+size.h),'L':(bg.X)};if(bgR.search('repeat-')!=-1){var v=bgR.split('repeat-')[1].toUpperCase();c[altC[v].b1]=1;c[altC[v].b2]=size[altC[v].d]}if(c.B>size.H){c.B=size.H}el.vml.image.shape.style.clip='rect('+c.T+'px '+(c.R+fudge)+'px '+c.B+'px '+(c.L+fudge)+'px)'}else{el.vml.image.shape.style.clip='rect('+dC.T+'px '+dC.R+'px '+dC.B+'px '+dC.L+'px)'}},fixPng:function(el){el.style.behavior='none';if(el.nodeName=='BODY'||el.nodeName=='TD'||el.nodeName=='TR'){return}el.isImg=false;if(el.nodeName=='IMG'){if(el.src.toLowerCase().search(/\.png$/)!=-1){el.isImg=true;el.style.visibility='hidden'}else{return}}else if(el.currentStyle.backgroundImage.toLowerCase().search('.png')==-1){return}var lib=DD_belatedPNG;el.vml={color:{},image:{}};var els={shape:{},fill:{}};for(var r in el.vml){for(var e in els){var nodeStr=lib.ns+':'+e;el.vml[r][e]=document.createElement(nodeStr)}el.vml[r].shape.stroked=false;el.vml[r].shape.appendChild(el.vml[r].fill);el.parentNode.insertBefore(el.vml[r].shape,el)}el.vml.image.shape.fillcolor='none';el.vml.image.fill.type='tile';el.vml.color.fill.on=false;lib.attachHandlers(el);lib.giveLayout(el);lib.giveLayout(el.offsetParent);lib.applyVML(el)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();DD_belatedPNG.fix('div,span,h2,img,a,input');
}
