// - Crossfader - 
// author:Timothy Groves - http://www.brandspankingnew.net
var useBSNns;
if (useBSNns){ 
	if (typeof(bsn) == "undefined")
			bsn = {}
	var _bsn = bsn;
} else {
	var _bsn = this;
}
_bsn.Crossfader = function (divs, fadetime, delay ) {
	this.nAct = -1;
	this.aDivs = divs;
	for (var i=0;i<divs.length;i++) {
		document.getElementById(divs[i]).style.opacity = 0;
		document.getElementById(divs[i]).style.position = "absolute";
		document.getElementById(divs[i]).style.filter = "alpha(opacity=0)";
		document.getElementById(divs[i]).style.visibility = "hidden";
	}
	this.nDur = fadetime;
	this.nDelay = delay;
	this._newfade();
}
_bsn.Crossfader.prototype._newfade = function() {
	if (this.nID1)
		clearInterval(this.nID1);
	this.nOldAct = this.nAct;
	this.nAct++;
	if (!this.aDivs[this.nAct])	this.nAct = 0;
	if (this.nAct == this.nOldAct)
		return false;
	document.getElementById( this.aDivs[this.nAct] ).style.visibility = "visible";
	this.nInt = 50;
	this.nTime = 0;
	var p=this;
	this.nID2 = setInterval(function() { p._fade() }, this.nInt);
}
_bsn.Crossfader.prototype._fade = function() {
	this.nTime += this.nInt;
	var ieop = Math.round( this._easeInOut(this.nTime, 0, 1, this.nDur) * 100 );
	var op = ieop / 100;
	document.getElementById( this.aDivs[this.nAct] ).style.opacity = op;
	document.getElementById( this.aDivs[this.nAct] ).style.filter = "alpha(opacity="+ieop+")";
	if (this.nOldAct > -1) {
		document.getElementById( this.aDivs[this.nOldAct] ).style.opacity = 1 - op;
		document.getElementById( this.aDivs[this.nOldAct] ).style.filter = "alpha(opacity="+(100 - ieop)+")";
	}
	if (this.nTime == this.nDur) {
		clearInterval( this.nID2 );
		if (this.nOldAct > -1)
			document.getElementById( this.aDivs[this.nOldAct] ).style.visibility = "hidden";
		var p=this;
		this.nID1 = setInterval(function() { p._newfade() }, this.nDelay);
	}
}
_bsn.Crossfader.prototype._easeInOut = function(t,b,c,d) {
	return c/2 * (1 - Math.cos(Math.PI*t/d)) + b;
}

// wordBreak JavaScript Library for Opera & Firefox
// MIT-style license.
// 2008 Kazuma Nishihata  http://www.to-r.net 
new function(){
	if(window.opera || navigator.userAgent.indexOf("Firefox") != -1){
		var wordBreak = function() {
			var wordBreakClass = "wordBreak";
			var table = document.getElementsByTagName("table");
			for(var i=0,len=table.length ; i<len ; i++){
				var tbClass = table[i].className.split(/\s+/);
				for (var j = 0; j < tbClass.length; j++) {
					if (tbClass[j] == wordBreakClass) {
						recursiveParse(table[i])
					}
				}
			}
		}
		var recursiveParse = function(pNode) {
			var childs = pNode.childNodes;
			for (var i = 0; i < childs.length; i++) {
				var cNode = childs[i];
				if (childs[i].nodeType == 1) {
					recursiveParse(childs[i]);
				}else if(cNode.nodeType == 3) {
					if(cNode.nodeValue.match("[^\n ]")){
						var plTxt = cNode.nodeValue.replace(/\t/g,"")
						var spTxt = plTxt.split("");
						spTxt = spTxt.join(String.fromCharCode(8203));
						var chNode = document.createTextNode(spTxt);
						cNode.parentNode.replaceChild(chNode,cNode)
					}
				}
			}
		}
	}else{
		var wordBreak = function() {
			if( document.styleSheets[0].addRule ){
				document.styleSheets[0].addRule(".wordBreak","word-break:break-all");
			}else if( document.styleSheets[0].insertRule ){
				document.styleSheets[0].insertRule(".wordBreak{word-break:break-all}", document.styleSheets[0].cssRules.length );
			}else{
				return false;
			}
		}
	}
	var addEvent = function(elm,listener,fn){
		try{
			elm.addEventListener(listener,fn,false);
		}catch(e){
			elm.attachEvent("on"+listener,fn);
		}
	}
	addEvent(window,"load",wordBreak);
}
document.write('<style type="text/css">.wordBreak {word-break:break-all;} div.cf_wrapper{position: relative;}</style>');
var outstr = new Array();
outstr.push('<span style="font-size:10pt;"><a href="http://www.linkshare.ne.jp/" target="_blank" style="text-decoration: none; color: #000000;">Ads by LinkShare</a></span>')
outstr.push('<div class="cf_wrapper">');
outstr.push('<div class="cf_element" id="cf120_240-2236-1" align="left">');
outstr.push('<table width="120" height="240" border="0" cellspacing="0" style="border:1px dotted #AAAAAA; height:240px; background-color:#FFFFFF;" class="wordBreak">');
outstr.push('<tr>');
outstr.push('<td valign="top" height="10" align="left" style="font-size:12px;"><a href="http://click.linksynergy.com/fs-bin/click?id=EvX7YPjtBPg&offerid=117189.10000025&type=3&subid=0&u1=100009_EvX7YPjtBPg" target="_blank" style="text-decoration: none;"><strong><font color="#0000FF">ヤマギワ オンラインストア</font></strong></a></td>');
outstr.push('</tr>');outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#101010;">ヤマギワOnline Storeのアウトレット</td><tr>');
outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#0000FF;">2010/06/17&#65374;2011/06/17<img src="http://ad.linksynergy.com/fs-bin/show?id=EvX7YPjtBPg&bids=117189.10000025&type=3&subid=0" width="1" height="1"></td></tr>');
outstr.push('<tr>');
outstr.push('<td valign="top" height="10" align="left" style="font-size:12px;"><a href="http://click.linksynergy.com/fs-bin/click?id=EvX7YPjtBPg&offerid=178008.10001530&type=3&subid=0&u1=100009_EvX7YPjtBPg" target="_blank" style="text-decoration: none;"><strong><font color="#0000FF">ioPLAZA【アイ・オー・データ直販サイト】</font></strong></a></td>');
outstr.push('</tr>');outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#101010;">限定アイテムが目白押し。お買い得コーナー！台数限定、パソコン・プリ...</td><tr>');
outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#0000FF;">2010/06/17&#65374;2011/06/11<img src="http://ad.linksynergy.com/fs-bin/show?id=EvX7YPjtBPg&bids=178008.10001530&type=3&subid=0" width="1" height="1"></td></tr>');
outstr.push('</table></div>');
outstr.push('<div class="cf_element" id="cf120_240-2236-2" align="left">');
outstr.push('<table width="120" height="240" border="0" cellspacing="0" style="border:1px dotted #AAAAAA; height:240px; background-color:#FFFFFF;" class="wordBreak">');
outstr.push('<tr>');
outstr.push('<td valign="top" height="10" align="left" style="font-size:12px;"><a href="http://click.linksynergy.com/fs-bin/click?id=EvX7YPjtBPg&offerid=56419.10000302&type=3&subid=0&u1=100009_EvX7YPjtBPg" target="_blank" style="text-decoration: none;"><strong><font color="#0000FF">トイザらス・ベビーザらス オンラインストア</font></strong></a></td>');
outstr.push('</tr>');outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#101010;">お買い得商品が勢ぞろい！トイザらスオンラインストアのクリアランス情報</td><tr>');
outstr.push('<tr><td valign="top" align="left" style="font-size:12px; color:#0000FF;">2010/06/17&#65374;2011/06/16<img src="http://ad.linksynergy.com/fs-bin/show?id=EvX7YPjtBPg&bids=56419.10000302&type=3&subid=0" width="1" height="1"></td></tr>');
outstr.push('</td></tr></table></div>');
outstr.push('</div>');
outstr.push('<script type="text/javascript">');
outstr.push('var cf2236 = new Crossfader( new Array(');
outstr.push('"cf120_240-2236-1",');outstr.push('"cf120_240-2236-2"');outstr.push('), 700, 15000 );');
outstr.push('</script><img border="0" width="1" height="1"src="http://ad.linksynergy.com/fs-bin/show?id=Dk8JKvDVYwE&bids=186984.100009&type=3&subid=0" />');
var str = outstr.join('');
document.write(str);