// JavaScript Document

 
var wj_chacha_link = "http://210.76.65.188";

//20060302173521: string, for not repeat

//width of Ad

var wj_chacha_fix_pic_width=105;

//height of Ad

var wj_chacha_fix_pic_height=145;

//Ad URL

var wj_chacha_fix_pic_url="wj_chacha.gif";

var wj_chacha_fix_alt="";

//1:light, 0:no light

var wj_chacha_fix_light=0;

//name of window

var wj_chacha_fix_tar="_blank";

//horizonal align method:left,1;center,2;right:3;0,defined

var wj_chacha_fix_poleft="Vleft";

//vertical align method:top,1;middle,2;bottom:3;0,defined

var wj_chacha_fix_potop="Vmiddle";

//customsized  offset value from left side

var wj_chacha_fix_defined_left_offset="";

wj_chacha_fix_defined_left_offset = isNaN(wj_chacha_fix_defined_left_offset)?0:parseInt(wj_chacha_fix_defined_left_offset);



//customsized  offset value from top side

var wj_chacha_fix_defined_top_offset="";

wj_chacha_fix_defined_top_offset = isNaN(wj_chacha_fix_defined_top_offset)?0:parseInt(wj_chacha_fix_defined_top_offset);

//define ad type:swf or pic

var wj_chacha_fix_ad_type="pic";

//define v-offset:swf or pic

var wj_chacha_fix_v_offset=5;

//define h-offset:swf or pic

var wj_chacha_fix_h_offset=5;



var wj_chacha_fix_bFade = false;

var wj_chacha_fix_IE = (document.all) ? 1: 0;

var wj_chacha_theclientHeight = "";

var wj_chacha_theclientWidth = "";

var wj_chacha_thescrollLeft = "";

var wj_chacha_thescrollTop = "";

if(window.document.documentElement.clientHeight != 0)

{

   wj_chacha_theclientHeight = window.document.documentElement.clientHeight;

}else

{

   wj_chacha_theclientHeight = document.body.clientHeight;

}

if(window.document.documentElement.clientWidth != 0)

{

   wj_chacha_theclientWidth = window.document.documentElement.clientWidth;

}else

{

   wj_chacha_theclientWidth = document.body.clientWidth;

}

if(window.document.documentElement.scrollLeft)

{

   wj_chacha_thescrollLeft = window.document.documentElement.scrollLeft;

}else

{

   wj_chacha_thescrollLeft = document.body.scrollLeft;

}

if(window.document.documentElement.scrollTop)

{

   wj_chacha_thescrollTop = window.document.documentElement.scrollTop;

}else

{

   wj_chacha_thescrollTop = document.body.scrollTop;

}

var wj_chacha_hposition, wj_chacha_vposition ;

//position of horizon

switch (wj_chacha_fix_poleft)

{

 case "Vleft":

  wj_chacha_hposition = wj_chacha_thescrollLeft + wj_chacha_fix_h_offset + 'px';

  break;

 case "Vcenter":

  wj_chacha_hposition = Math.round((wj_chacha_theclientWidth - wj_chacha_fix_pic_width)/2) + wj_chacha_thescrollLeft + 'px';

  break;

 case "Vright":

  wj_chacha_hposition = wj_chacha_theclientWidth + wj_chacha_thescrollLeft - wj_chacha_fix_pic_width - wj_chacha_fix_h_offset + 'px';

  break;

 case "Vself":

  wj_chacha_hposition = wj_chacha_thescrollLeft + wj_chacha_fix_defined_left_offset+ 'px';

  break;

 default:

}

//position of vertical

switch (wj_chacha_fix_potop)

{

 case "Vtop":

  wj_chacha_vposition  = wj_chacha_thescrollTop + wj_chacha_fix_v_offset + 'px';

  break;

 case "Vmiddle":

  wj_chacha_vposition  = Math.round((wj_chacha_theclientHeight - wj_chacha_fix_pic_height)/2) + wj_chacha_thescrollTop + 'px';

  break;

 case "Vbottom":

  wj_chacha_vposition  = wj_chacha_theclientHeight + wj_chacha_thescrollTop - wj_chacha_fix_pic_height - wj_chacha_fix_v_offset + 'px';

  break;

 case "Vself":

  wj_chacha_vposition  = wj_chacha_thescrollTop + wj_chacha_fix_defined_top_offset+ 'px';

  break;

 default:

}



if (wj_chacha_fix_light==1)

{//fade in & fade out

 document.writeln("<div id='wj_chacha_fix_floater' style='position:absolute; left:" + wj_chacha_hposition + ";top:" + wj_chacha_vposition  + "; width:" + wj_chacha_fix_pic_width + "; height:" + wj_chacha_fix_pic_height + ";filter:alpha(opacity=50);'>");

}else

{

 document.writeln("<div id='wj_chacha_fix_floater' style='position:absolute; left:" + wj_chacha_hposition + ";top:" + wj_chacha_vposition + "; width:" + wj_chacha_fix_pic_width + "; height:" + wj_chacha_fix_pic_height + "'>");

}

document.write("<a href='" + wj_chacha_link + "' target='" + wj_chacha_fix_tar + "'><img src='" + wj_chacha_fix_pic_url + "' border='0' alt='" + wj_chacha_fix_alt + "' WIDTH=" + wj_chacha_fix_pic_width + " HEIGHT=" + wj_chacha_fix_pic_height + "></a>"); 

document.writeln("</div>");


self.onError=null;       


function wj_chacha_fix_effectFixFloat() {       

	var wj_chacha_theclientHeight = "";
	
	var wj_chacha_theclientWidth = "";
	
	var wj_chacha_thescrollLeft = "";
	
	var wj_chacha_thescrollTop = "";
	
	if(window.document.documentElement.clientHeight != 0)
	
	{
	
	   wj_chacha_theclientHeight = window.document.documentElement.clientHeight;
	
	}else
	
	{
	
	   wj_chacha_theclientHeight = document.body.clientHeight;
	
	}
	
	if(window.document.documentElement.clientWidth != 0)
	
	{
	
	   wj_chacha_theclientWidth = window.document.documentElement.clientWidth;
	
	}else
	
	{
	
	   wj_chacha_theclientWidth = document.body.clientWidth;
	
	}
	
	if(window.document.documentElement.scrollLeft)
	
	{
	
	   wj_chacha_thescrollLeft = window.document.documentElement.scrollLeft;
	
	}else
	
	{
	
	   wj_chacha_thescrollLeft = document.body.scrollLeft;
	
	}
	
	if(window.document.documentElement.scrollTop)
	
	{
	
	   wj_chacha_thescrollTop = window.document.documentElement.scrollTop;
	
	}else
	
	{
	
	   wj_chacha_thescrollTop = document.body.scrollTop;
	
	}
	
	switch (wj_chacha_fix_poleft)
	
	{
	
	 case "Vleft":
	
	  wj_chacha_hposition = wj_chacha_thescrollLeft + wj_chacha_fix_h_offset + 'px';
	
	  break;
	
	 case "Vcenter":
	
	  wj_chacha_hposition = Math.round((wj_chacha_theclientWidth - wj_chacha_fix_pic_width)/2) + wj_chacha_thescrollLeft + 'px';
	
	  break;
	
	 case "Vright":
	
	  wj_chacha_hposition = wj_chacha_theclientWidth + wj_chacha_thescrollLeft - wj_chacha_fix_pic_width - wj_chacha_fix_h_offset + 'px';
	
	  break;
	
	 case "Vself":
	
	  wj_chacha_hposition = wj_chacha_thescrollLeft + wj_chacha_fix_defined_left_offset+ 'px';
	
	  break;
	
	 default:
	
	}
	
	
	
	//position of vertical
	
	switch (wj_chacha_fix_potop)
	
	{
	
	 case "Vtop":
	
	  wj_chacha_vposition  = wj_chacha_thescrollTop + wj_chacha_fix_v_offset + 'px';
	
	  break;
	
	 case "Vmiddle":
	
	  wj_chacha_vposition  = Math.round((wj_chacha_theclientHeight - wj_chacha_fix_pic_height)/2) + wj_chacha_thescrollTop + 'px';
	
	  break;
	
	 case "Vbottom":
	
	  wj_chacha_vposition  = wj_chacha_theclientHeight + wj_chacha_thescrollTop - wj_chacha_fix_pic_height - wj_chacha_fix_v_offset + 'px';
	
	  break;
	
	 case "Vself":
	
	  wj_chacha_vposition  = wj_chacha_thescrollTop + wj_chacha_fix_defined_top_offset+ 'px';
	
	  break;
	
	 default:
	
	}
	
	
	
	document.getElementById('wj_chacha_fix_floater').style.top = wj_chacha_vposition;
	
	document.getElementById('wj_chacha_fix_floater').style.left = wj_chacha_hposition;
	
	
	
	if (wj_chacha_fix_IE){
	
	  if (wj_chacha_fix_light==1){
	
	  var nOpacity = wj_chacha_fix_floater.filters.alpha.opacity;
	
	  if (nOpacity>=100) wj_chacha_fix_bFade=true;
	
	  if (nOpacity<=0) wj_chacha_fix_bFade=false;
	
	  if (wj_chacha_fix_bFade) wj_chacha_fix_floater.filters.alpha.opacity--;
	
	  if (!wj_chacha_fix_bFade) wj_chacha_fix_floater.filters.alpha.opacity++;
	
	  }
	
	 }

} 

window.setInterval("wj_chacha_fix_effectFixFloat()",200);






