setLocalHeader = function(){
document.open();
document.write('<div id="LocalHeader">');
document.write('<div id="LocalNavigation">');
document.write('<div class="logo">');
document.write('<h2><a href="/sk/index.html"><img src="/sk/includes/images/logo.gif"alt="STAR karaoke"></a></h2>');
document.write('<p><img src="/sk/includes/images/catch.gif" width="543" alt="スカパー！でご覧になれるカラオケ&PVの総合音楽チャンネル"></p>');
document.write('<div class="clearing"><img src="/includes/images/spacer.gif" alt="" /></div>');
document.write('</div>');
document.write('<div class="howto">');
document.write('<p><a href="/sk/howto/">視聴方法<img class="alpha icon" src="/includes/images/icon/arrow.png" alt="リンク先へジャンプ" /></a></p>');
document.write('<p><a href="/sk/help/">ヘルプ・お問い合わせ<img class="alpha icon" src="/includes/images/icon/arrow.png" alt="リンク先へジャンプ" /></a></p>');
document.write('<p><a href="/sk/request/">楽曲リクエスト<img class="alpha icon" src="/includes/images/icon/arrow.png" alt="リンク先へジャンプ" /></a></p>');
document.write('</div>');
document.write('<div class="navi">');
document.write('<h2>2010年9月の番組プログラム</h2>');
document.write('<div class="calendar">');
document.write('<ul>');
document.write('<li class="sunday"><a href="/sk/program/sunday.html">日曜日</a></li>');
document.write('<li><a href="/sk/program/monday.html">月曜日</a></li>');
document.write('<li><a href="/sk/program/tuesday.html">火曜日</a></li>');
document.write('<li><a href="/sk/program/wednesday.html">水曜日</a></li>');
document.write('<li><a href="/sk/program/thursday.html">木曜日</a></li>');
document.write('<li><a href="/sk/program/friday.html">金曜日</a></li>');
document.write('<li class="saturday"><a href="/sk/program/saturday.html">土曜日</a></li>');
document.write('</ul>');
document.write('</div>');
document.write('</div>');
document.write('<div class="pdflink">');
document.write('<ul>');

document.write('<li class="bulletlink"><a href="/sk/program/monthly1009.pdf" target="_blank">9月の番組表<img class="alpha icon" src="/sk/images/image_pdf.png" alt="リンク先へジャンプ" /></a></li>');
document.write('<li class="bulletlink"><a href="/sk/program/digest1009.pdf" target="_blank">9月のダイジェスト<img class="alpha icon" src="/sk/images/image_pdf.png" alt="リンク先へジャンプ" /></a></li>');
document.write('</ul>');
document.write('</div>');
document.write('<div class="clearing"><img src="/includes/images/spacer.gif" alt="" /></div>');
document.write('</div><!-- //END #LocalNavigation -->');
document.write('</div><!-- //END #LocalHeader -->');

document.close();
}


setLeftBox = function(){
document.open();
document.write('<div id="LeftBox">');
document.write('<div id="Calendar">');
document.write('<h2><img src="/sk/includes/images/calendar_ttl.gif" width="230" alt="放送スケジュール"></h2>');
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="210" height="180">');
document.write('<param name="movie" value="/sk/includes/images/calender.swf" />');
document.write('<param name="quality" value="high" />');
document.write('<embed src="/sk/includes/images/calender.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="210" height="180"></embed>');
document.write('</object>');
document.write('</div>');
document.write('<div id="ProgramNavi">');
document.write('<h2><img src="/sk/program/images/navi_title.gif" width="230"></h2>');
document.write('<h2 id="TlKayo"><img src="/sk/program/images/navi_kayo.gif" width="230" alt="歌謡曲"></h2>');
document.write('<dl id="Ac_TlKayo">');
document.write('<dt class="tl">懐かし映像</dt>');
document.write('<dd><a href="/sk/program/letsgo/index.html">レッツゴーヤング</a></dd>');
document.write('<dd><a href="/sk/program/nhk/index.html">NHK歌謡コンサート</a></dd>');
document.write('<dd><a href="/sk/program/seisyunpop/index.html">青春のポップス</a></dd>');
document.write('<dd><a href="/sk/program/thatsmusic/index.html">ザッツミュージック</a></dd>');
document.write('<dt class="tl">懐かしサウンド</dt>');
document.write('<dd><a href="/sk/program/soundview/index.html">SOUND VIEW</a></dd>');

document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/newmusic/index.html">NEW MUSIC LIVE FOCUS</a></dd>');
document.write('</dl>');
document.write('<h2 id="TlEnka"><img src="/sk/program/images/navi_enka.gif" width="230" alt="演歌"></h2>');
document.write('<dl id="Ac_TlEnka">');
document.write('<dt class="tl">カラオケ</dt>');
document.write('<dd><a href="/sk/program/enkabox/index.html">演歌カラオケBOX</a></dd>');
document.write('<dd><a href="/sk/program/enkakaraoke/index.html">週刊DAM新譜!演歌カラオケ</a></dd>');
document.write('<dt class="tl">クリップ</dt>');
document.write('<dd><a href="/sk/program/syukanenkaou/index.html">週刊!演歌王</a></dd>');
document.write('<dd><a href="/sk/program/enkaou/index.html">演歌王</a></dd>');
document.write('<dd><a href="/sk/program/karanavikayo/index.html">カラなび歌謡曲</a></dd>');
document.write('<dt class="tl">レッスン番組</dt>');
document.write('<dd><a href="/sk/program/starjikiden/index.html">スター直伝!出張指導</a></dd>');
document.write('<dd><a href="/sk/program/heiseikayoujyuku/index.html">平成歌謡塾</a></dd>');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/sabuchan/index.html">サブちゃんと歌仲間</a></dd>');
document.write('<dd><a href="/sk/program/kayousalon/index.html">歌謡サロン・演歌がええじゃん</a></dd>');
document.write('<dd><a href="/sk/program/enkahyakusen/index.html">演歌百撰</a></dd>');
document.write('<dd><a href="/sk/program/enkahayari/index.html">演歌はやり歌</a></dd>');
document.write('<dd><a href="/sk/program/enkamityaku/index.html">歌謡えんか密着！でかけましょ</a></dd>');
document.write('<dt class="tl">ライブ</dt>');
document.write('<dd><a href="/sk/program/yashiro/index.html">八代亜紀40周年アコースティックライブ</a></dd>');
document.write('<dd><a href="/sk/program/enkalive/index.html">東京演歌ライブ</a></dd>');
document.write('<dd><a href="/sk/program/enkalive/index.html#SP">東京演歌ライブSpecial</a></dd>');
document.write('<dd><a href="/sk/program/ninjin/index.html">第16回 人仁の会</a></dd>');
document.write('</dl>');
document.write('<h2 id="TlJpop"><img src="/sk/program/images/navi_jpop.gif" width="230" alt="J-POP 他"></h2>');
document.write('<dl id="Ac_TlJpop">');
document.write('<dt class="tl">クリップ</dt>');
document.write('<dd><a href="/sk/program/clipnow/index.html">CLIP NOW</a></dd>');
document.write('<dd><a href="/sk/program/videomix/index.html">VIDEO MIX リクエスト</a></dd>');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/ent/index.html">We are ENT DEAL LEAGUE!!</a></dd>');
document.write('<dd><a href="/sk/program/damchannel/index.html">DAM CHANNEL</a></dd>');
document.write('<dd><a href="/sk/program/nomura/index.html">野村義男ギタースタジオ 匠〜たくみ〜</a></dd>');
document.write('<dt class="tl">懐かし映像</dt>');
document.write('<dd><a href="/sk/program/popjam/index.html">ポップジャム</a></dd>');
document.write('<dt class="tl">ライブ</dt>');
document.write('<dd><a href="/sk/program/ohguro/index.html">Maki Ohguro LIVEHOUSE TOUR 2010</a></dd>');
document.write('</dl>');

/* 
document.write('<h2 id="TlAnison"><img src="/sk/program/images/navi_anison.gif" width="230" alt="アニソン"></h2>');
document.write('<dl id="Ac_TlAnison">');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/jamproject_live/index.html">JAM Project Live 2009 Gate of the Future</a></dd>');
document.write('<dt class="tl">ライブ</dt>');
document.write('<dd><a href="/sk/program/endo/index.html">遠藤正明LIVE</a></dd>');
document.write('</dl>');
 */
document.write('<h2 id="TlVisual"><img src="/sk/program/images/navi_visual.gif" width="230" alt="ビジュアル"></h2>');
document.write('<dl id="Ac_TlVisual">');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/v-style/index.html">V-STYLE“Move!!"</a></dd>');
document.write('<dt class="tl">クリップ</dt>');
document.write('<dd><a href="/sk/program/v-style/index.html#clip">V-STYLE“Lock on CLIP"</a></dd>');
document.write('<dt class="tl">ライブ</dt>');
document.write('<dd><a href="/sk/program/v-style/index.html#live">V-STYLE“LIVE ID"</a></dd>');
document.write('</dl>');

document.write('<h2 id="TlAnime"><img src="/sk/program/images/navi_anime.gif" width="230" alt="アニメ・実写"></h2>');
document.write('<dl id="Ac_TlAnime">');
document.write('<dt class="tl">アニメ番組</dt>');
document.write('<dd><a href="/sk/program/atom/index.html">鉄腕アトム</a></dd>');
document.write('<dd><a href="/sk/program/sasurai/index.html">さすらいの太陽</a></dd>');
document.write('<dt class="tl">実写番組</dt>');
document.write('<dd><a href="/sk/program/kousokuesper/index.html">光速エスパー</a></dd>');
document.write('<dd><a href="/sk/program/wild/index.html">ワイルド７</a></dd>');
document.write('<dd><a href="/sk/program/comet/index.html">コメットさん</a></dd>');

document.write('</dl>');


document.write('<h2 id="TlYogaku"><img src="/sk/program/images/navi_yogaku.gif" width="230" alt="洋楽"></h2>');
document.write('<dl id="Ac_TlYogaku">');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/yobura/index.html">洋楽ブランコ</a></dd>');
document.write('<dt class="tl">クリップ番組</dt>');
document.write('<dd><a href="/sk/program/yocli/index.html">洋クリ！</a></dd>');
document.write('</dl>');

document.write('<h2 id="TlGravure"><img src="/sk/program/images/navi_gravure.gif" width="230" alt="グラビア"></h2>');
document.write('<dl id="Ac_TlGravure">');
document.write('<dt></dt>');
document.write('<dd><a href="/sk/program/grabia/index.html">タッチミーアイドル </a></dd>');
document.write('</dl>');

/* 

document.write('<h2 id="TlDamstation"><img src="/sk/program/images/navi_damstation.gif" width="230" alt="DAMステーション"></h2>');
document.write('<dl id="Ac_TlDamstation">');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/karanavi/index.html">club DAM カラオケ ナビ！ </a></dd>');
document.write('</dl>');
 */

/* 
document.write('<h2 id="TIEtc"><img src="/sk/program/images/navi_etc.gif" width="230" alt="その他"></h2>');
document.write('<dl id="Ac_TIEtc">');
document.write('<dt class="tl">トーク/情報番組</dt>');
document.write('<dd><a href="/sk/program/karaokegp/index.html#yosen">全日本カラオケグランプリ</a></dd>');
document.write('<dd><a href="/sk/program/karaokegp/index.html">全日本カラオケグランプリ 〜グランプリ大会</a></dd>');
document.write('</dl>');
 */

document.write('</div>');
document.write('<div id="LinkImage">');
document.write('<ul>');

document.write('<li><a href="/eco/"><img src="/sk/images/linkimage_eco230.gif" width="230" alt="エコミュージック"></a></li>');
document.write('<li><a href="http://www.stardigio.com/" target="_blank"><img src="/sk/images/linkimage_sd230.gif" width="230" alt="スターデジオ"></a></li>');
document.write('<li><a href="http://www.dkkaraoke.co.jp/business/eisei/stardam/stardam.html" target="_blank"><img src="/sk/images/linkimage_stardam230.gif" width="230" alt="スターダム"></a></li>');
//document.write('<li><a href="/sk/feature/jamproject/" target="_blank"><img src="/sk/images/linkimage_jam230.gif" width="230" alt="JAM Project"></a></li>');
document.write('</ul>');
document.write('</div>');
document.write('</div><!-- END LeftBox -->');
document.close();

}

/*	**********************************************************************	*/
var sk = new Object();
sk.Accordion = {
	console:$('ProgramNavi'),//アコーディオンを表示させるdivのid名
	prefix:'Ac_',//開閉する実体のdlにアタッチするリスト要素のid名の最初に必ず付く接頭辞
	src:'',//アコーディオンのソース(consoleで指定したdiv要素から中の部分)
	id_array:Array('TlKayo','TlEnka','TlJpop','TlVisual','TlAnime','TlYogaku','TlGravure','TlDamstation','TIEtc'),//h要素およびdl要素に命名する名称の共通文字列部分
	name_cookie:'sk_ac',//アコーディオンの状態を保存しているcookie内の文字列
	init:function(){
		if(!$('ProgramNavi')) return;
		//	---------------------------------------
		var my_cookie_name = sk.Accordion.name_cookie;
		var my_accordions = sk.Accordion.id_array;
		//	---------------------------------------
		if(Cookies.getValue(my_cookie_name) == undefined){
			var init_array = new Array();
			for(var i=0 ; i<my_accordions.length ; i++){
				init_array.push(0);
			}
			Cookies.setValue(my_cookie_name,init_array,'/');
		}
		//	---------------------------------------
		var my_array = Cookies.getValue(my_cookie_name).split(',');
		var my_prefix = sk.Accordion.prefix;
		//	---------------------------------------
		for(var i=0 ; i<my_accordions.length ; i++){
			var Head = my_accordions[i];
			var List = my_prefix + my_accordions[i];
			var List_style = (my_array[i] == '0') ? 'none' : 'block' ;
			View.setStyle($(List),{display:List_style});
			//	---------------------------------------
			$(Head).id_number = i;
			$(Head).onclick = function(){
				var target_list = my_prefix + this.id;
				var traget_status = ($(target_list).style.display == 'block' ) ? 'none' : 'block' ;
				View.setStyle($(target_list),{display:traget_status});
				my_array[this.id_number] = (traget_status == 'block') ? 1 : 0 ;
				//	---------------------------------------
				Cookies.setValue(my_cookie_name,my_array,'/');
				//	---------------------------------------
				return;
			}
		}
	}
}
/*	**********************************************************************	*/
//PullDown.console.innerHTML = PullDown.src;
/*	**********************************************************************	*/
//	初期化用のリスナーを配置(もしエラーが出る場合はアコーディオン描画後に配置)
addListener(window,'load',sk.Accordion.init,false);

/*	**********************************************************************	*/
//spacer画像によるmin-height設定
/*	**********************************************************************	*/
var sk_spacerHeight = function(){
	//spacerをロード
	var spacer = new Image();
	spacer.src = '/includes/images/spacer.gif';	
	//キービジュアル部分にスペーサーをセット
	var keyvisualTags = $tag($('Sk_KeyVisual'),'div');
	var newWidth = 409;
	if(keyvisualTags.length == 0){return}
	for(var i = 0;i < keyvisualTags.length;i++){
		if(keyvisualTags[i].className == 'left_block' && (keyvisualTags[i].parentNode.className == 'explanation' || keyvisualTags[i].parentNode.className == 'explanation_noimage')){
			var w = $tag(keyvisualTags[0],'img')[0].width;
			newWidth = 550 - w -1;
		}
		if(keyvisualTags[i].className == 'right_block' && (keyvisualTags[i].parentNode.className == 'explanation' || keyvisualTags[i].parentNode.className == 'explanation_noimage')){
			keyvisualTags[i].style.width = newWidth + 'px';
		}
	}
	var kayvisualImg = document.createElement('img');
		kayvisualImg.setAttribute('id','kayvisualImg_js');
		kayvisualImg.setAttribute('src',spacer.src);
	if($class('explanation')[0].className == 'explanation'){
		$class('explanation')[0].insertBefore(kayvisualImg,$tag($class('explanation')[0],'*')[0]);
		$('kayvisualImg_js').style.cssText = 'float:left;width:1px;height:170px;';
	}else if($class('explanation_noimage')[0].className == 'explanation_noimage'){
		$class('explanation_noimage')[0].insertBefore(kayvisualImg,$tag($class('explanation_noimage')[0],'*')[0]);
		$('kayvisualImg_js').style.cssText = 'float:left;width:1px;height:110px;';
	}
	//ULがある場合は調整
	var uls = $tag($('Sk_KeyVisual'),'ul');
	for(var i = 0;i < uls.length;i++){
		if(!uls[i]){continue};
		var lis = $tag(uls[i],'li');
		for(var v = 0;v < lis.length -1;v++){
			lis[v].style.margin = '0px';
			lis[v].style.padding = '0px 5px 0px 0px'
		}
	}
	//放送予定日部分にスペーサーをセット
	var broadTags = $tag($('Sk_Program'),'div');
	for(var i = 0;i < broadTags.length;i++){
		/* ************************タグ生成************************** */
		//height用画像生成
		var broadImg = 'broadImg' + i;
		var broadImg = document.createElement('img');
			broadImg.setAttribute('id','broadImg_js' + i);
			broadImg.setAttribute('src',spacer.src);
		//clearing用画像生成
		var clearingImg_b = 'clearingImg_b' + i;
		var clearingImg_b = document.createElement('img');
			clearingImg_b.setAttribute('class','clearing');
			clearingImg_b.setAttribute('src',spacer.src);
		/* ********************************************************** */
		if(broadTags[i].className == 'right_block'){
			$tag(broadTags[i],'p')[0].style.cssText = 'float:left;width:114px;padding:5px 5px 0px 10px;display:inline';
			broadTags[i].appendChild(broadImg);
			$('broadImg_js' + i).style.cssText = 'float:left;height:100px;width:1px;';
			broadTags[i].appendChild(clearingImg_b);
		}
	}
	
	if($('DaMovie_js')) return;
	//コンテンツ部分にスペーサーをセット
	var contentsTags = $tag($('Sk_Program'),'div');
	for(var i = 0;i<contentsTags.length;i++){
		//alert('Lengthは' + contentsTags.length + '\n今のiの値は' + i + '\nclassNameは' + contentsTags[i].className)
		if(contentsTags[i].className == 'contents'){
			/* ************************タグ生成************************** */
			//height用画像生成
			var contentsImg = 'contentsImg' + i;
			var contentsImg = document.createElement('img');
				contentsImg.setAttribute('id','contentsImg_js' + i);
				contentsImg.setAttribute('src',spacer.src);
			//clearing用画像生成
			var clearingImg = 'clearingImg' + i;
			var clearingImg = document.createElement('img');
				clearingImg.setAttribute('class','clearing');
				clearingImg.setAttribute('src',spacer.src);
			//contents用DIV生成
			var contentsSpan = 'contentsSpan' + i;
			var contentsSpan = document.createElement('span');
				contentsSpan.setAttribute('id','contentsSpan_js' + i);
			/* ********************************************************** */
			if($tag(contentsTags[i],'*')[0] == undefined ){
				contentsTags[i].appendChild(contentsImg);
				$('contentsImg_js' + i).style.cssText = 'width:1px;height:90px;';
			}else if($tag(contentsTags[i],'*')[0].className == 'clearing'){
					contentsTags[i].removeChild($tag(contentsTags[i],'*')[0]);
					contentsTags[i].appendChild(contentsImg);
					$('contentsImg_js' + i).style.cssText = 'width:1px;height:90px;';
				}else {
				/*
				while(--num > 0){
					//alert(contentsNode[num].firstChild.data)
					if(contentsNode[num].parentNode.className == 'contents'){
						var newNodeName = contentsNode[num].cloneNode(true);
						contentsSpan.appendChild(newNodeName);
						contentsTags[i].removeChild(contentsNode[num]);
						
					}
					//num--;
				}*/
				//var contentsNode = $tag(contentsTags[i],'*');
				var elm = contentsTags[i].innerHTML;
				contentsTags[i].innerHTML = '';
				contentsTags[i].appendChild(contentsSpan);
				$('contentsSpan_js' + i).innerHTML = elm
				//var num = contentsNode.length;
				/*
				for(var v = 0;v < --num;v++){
					if(contentsNode[v].parentNode.className == 'contents'){
						//var newNodeName = contentsNode[v].cloneNode(true);
						contentsSpan.appendChild(contentsNode[0]);
					}
				}
				for(var v = 0;v < num;v++){
					if(contentsNode[v].parentNode.className == 'contents'){
						contentsTags[i].removeChild(contentsNode[v])
					}
				}*/
				$('contentsSpan_js' + i).style.cssText = 'float:left;width:429px;';
				contentsTags[i].appendChild(contentsImg);
				$('contentsImg_js' + i).style.cssText = 'float:left;width:1px;height:90px;';
				contentsTags[i].appendChild(clearingImg);
			}
		}
	}
	
	//setKeyvisual();

	//既存のスタイルシートを編集
	/*
	var setStyle = function(linkNum){
		var RIGHT_BLOCK = '#Program #Sk_KeyVisual .right_block';	
		var RIGHT_BLOCK_Width = '409px';
		var linkNode_style = document.styleSheets[linkNum];
		if(linkNode_style.cssRules){
			//alert(linkNode_style.cssRules[50].selectorText)
			for(var i = 0,len = linkNode_style.cssRules.length;i<len;i++){
				if(linkNode_style.cssRules[i].selectorText == RIGHT_BLOCK){
					linkNode_style.cssRules[i].style.setProperty('width',RIGHT_BLOCK_Width,'');
				}
			}
		}else if(linkNode_style.rules){
			for(var i = 0,len = linkNode_style.rules.length;i<len;i++){
				if(linkNode_style.rules[i].selectorText == RIGHT_BLOCK){
					linkNode_style.rules[i].style.setAttribute('width',RIGHT_BLOCK_Width,1);
				}
			}
		}
		setSpacer();
	}
	//cornerstyle.cssのindex番号を取得
	var linkNumCheck = function(){
		var linkNodes = $tag(document,'LINK');
		for(var i = 0,len = linkNodes.length;i < len;i++){
			//alert(linkNodes[i].href);
			if(linkNodes[i].href.indexOf('cornerstyle.css') != -1){
				setStyle(i);
			}
		}
	}
	linkNumCheck();*/
}
//addListener(window,'load',sk_spacerHeight,false);
/*	**********************************************************************	*/
//放送予定日をXMLから入力
/*	**********************************************************************	*/
var setBCtime = function(xmlPath,week,idDefaultName){
	/* チェックモード設定------------------------------------------ */
	//trueにするとタイトルとサブタイトルが表示されます。
	var checkMode = false;
	//放送予定日表示個数
	var displayLength = '';
	/* ------------------------------------------------------------ */
	var defaultPath = "/sk/shared/xml/broadcasting/";
	var idnames = idDefaultName || 'TimeSchedule';
	var isWeekly = week || false;

	
	var getResponseArray = function(res){
		var a = [];
		var pgms = res.getElementsByTagName('program')//$tag(res,'program');
		var pgmArray = getData();
		for(var i=0,len=pgmArray.length;i<len;i++){
			var da=[]
			for(var j=0;j<pgmArray[i].length;j++){
				var obj = {};
				obj.name = pgmArray[i][j].getAttribute('name');
				obj.subname = pgmArray[i][j].getAttribute('subname');
				var day = $tag(pgmArray[i][j],'day')[0].firstChild.data;
				obj.month = day.substr(day.indexOf('年')+1,2);
				obj.day = day.substr(day.indexOf('月')+1,2);
				var time = $tag(pgmArray[i][j],'time')[0].firstChild.data;
				obj.time = time.substring(0,time.indexOf(':00.'));
				da.push(obj);
			}
			a.push(da);
		}
		if(week){
			a['month'] = res.getElementsByTagName('data')[0].firstChild.data;
		}
		
		function getData(){
			var n = $tag(pgms[0],'num')[0].firstChild.data;
			var dataArray=[];
			var aa=[];
			for(var i=0,len=pgms.length;i<len;i++){
				var v = $tag(pgms[i],'num')[0].firstChild.data;
				if(v != n){
					dataArray.push(aa);
					aa = [];
				};
				aa.push(pgms[i]);
				n = v;
			}
			dataArray.push(aa);
			return dataArray;
		}
		
		return a;
	}
	
	var info = {
		url:defaultPath+xmlPath+'?date='+new Date().getTime(),
		param:'',
		method:'get',
		success:function(response){
			var resObj = getResponseArray(response.responseXML);
			try{
				for(var i=0,len=resObj.length;i<len;i++){
					var month;
					if(week){
						var v = resObj['month'];
						month = (v.length==1)?'0'+v:v;
					}else{
						month = resObj[i][0].month;
					}
					 
					var src='<h2><img src="/sk/program/images/broadcasting_title_'+month+'.gif" width="130" alt="放送予定日"></h2>';
					src+='<p>';
					for(var j=0;j<resObj[i].length;j++){
						var data = resObj[i][j];
						var hoka = (j == displayLength-1&&resObj[i][j+1])?' 他':'';
						//console.log(week+':'+month+'!='+resObj[i][j].month);
						var m = (week&&month!=resObj[i][j].month)?((resObj[i][j].month.substr(0,1)=='0')?resObj[i][j].month.substr(1,1):resObj[i][j].month)+'月':'';
						src+=m + data.day+'日/'+data.time+'〜'+hoka+'<br>';
						if(j==displayLength-1){
							break;
						}
					}
					if(checkMode){
						src+='<strong>'+resObj['month']+'</strong><br />'+data.name+'<br />'+data.subname;
					}
					src+='</p>';
					var idNum = (i+1<10)?'0'+(i+1):i+1;
					if(isWeekly){
						if($(idnames+idNum)){
							$(idnames+idNum).innerHTML = src;
						};
					}else{
						$(idnames+idNum).innerHTML = src;
					}
				}
			}catch(e){
				alert(e)
			}
		},
		failure:function(status){
			switch(status){
				case 'AJAXE000': //オブジェクト生成エラー
					alert('このページには、お客様がご利用ののブラウザでご利用できない機能が含まれています。\n大変ご迷惑ウザをご利用の上で再度ご訪問いただきますよう、宜しくお願いいたします。');
					break;
				case 'AJAXE001': //404
					alert('プログラムのエラーにより、最新の情報を確認することができませんでした。お手数ですが暫くお待ち。');
					break;
				case 'AJAXE002': //timeout
					alert('制限時間を越えたため、サーバからの最新情報の取得を中止させていただきました。お手数ですが暫くちらの機能をご利用ください。');
					break;
				}
			}
	};

	//▼Ajax送信
	new AjaxLoader(
		info.url,
		info.param,
		info.method,
		{'success':info.success,'failure':info.failure},
		{}
	);
}
