	var int_broadcast_Timeout=10000; //輪播秒數

	//article 遊記
	var int_articleValue = 2;
	var article_Timeout;
	var str_article_content_tmp1 = false;
	var str_article_content_tmp2 = false;
	function article_showHide_start(int_Stop)
	{
			str_Unit_Name='article';
			int_Unit_Name=3;
			if (int_Stop!=1 && int_Stop!=2) {
				for(i=1;i<=4;i++){
					if (eval('int_'+str_Unit_Name+'Value')==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'))==false){ 
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,eval('int_'+str_Unit_Name+'Value'));
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'));
						}
					} else {
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
				eval('int_'+str_Unit_Name+'Value++');
				eval('if (int_'+str_Unit_Name+'Value>4) int_'+str_Unit_Name+'Value=1');
			} else {
				eval('window.clearTimeout('+ str_Unit_Name +'_Timeout)');
				for(i=1;i<=2;i++){
					if (int_Stop==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop)==false){
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,int_Stop);
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop);
						}
					} else{
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
								
			}
	}	
	

	
	
	
	
	
	//album 
	var int_albumValue = 1;
	var album_Timeout;
	var str_album_content_tmp1 = false;
	var str_album_content_tmp2 = false;
	function album_showHide_start(int_Stop)
	{
			str_Unit_Name='album';
			int_Unit_Name=4;
			if (int_Stop!=1 && int_Stop!=2 ){
				for(i=1;i<=4;i++){
					if (eval('int_'+str_Unit_Name+'Value')==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'))==false){ 
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,eval('int_'+str_Unit_Name+'Value'));
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'));
						}
					} else {
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
				eval('int_'+str_Unit_Name+'Value++');
				eval('if (int_'+str_Unit_Name+'Value>4) int_'+str_Unit_Name+'Value=1');
			} else {
				eval('window.clearTimeout('+ str_Unit_Name +'_Timeout)');
				for(i=1;i<=2;i++){
					if (int_Stop==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop)==false){
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,int_Stop);
							//alert('1');
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop);
							//alert('2');
						}
					} else{
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
								
			}
	}	
		


	//forum 
	var int_forumValue = 1;
	var forum_Timeout;
	var str_forum_content_tmp1 = false;
	var str_forum_content_tmp2 = false;
	function forum_showHide_start(int_Stop)
	{
			str_Unit_Name='forum';
			int_Unit_Name=5;
			if (int_Stop!=1 && int_Stop!=2){
				for(i=1;i<=2;i++){
					if (eval('int_'+str_Unit_Name+'Value')==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'))==false){ 
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,eval('int_'+str_Unit_Name+'Value'));
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+eval('int_'+str_Unit_Name+'Value'));
						}
					} else {
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
				eval('int_'+str_Unit_Name+'Value++');
				eval('if (int_'+str_Unit_Name+'Value>4) int_'+str_Unit_Name+'Value=1');
			} else {
				eval('window.clearTimeout('+ str_Unit_Name +'_Timeout)');
				for(i=1;i<=2;i++){
					if (int_Stop==i){
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab tw-tab-on';
						//判斷資料是否暫存
						if (eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop)==false){
							sendAJAX(1,str_Unit_Name+'_content',int_Unit_Name,int_Stop);
						} else {
							document.getElementById(str_Unit_Name+'_content').innerHTML=eval('str_'+str_Unit_Name+'_content_tmp'+int_Stop);
						}
					} else{
						document.getElementById('url_'+str_Unit_Name+i).className='tw-tab';
					} 
				}
								
			}
	}	
			
	

	
	//rtitle
	function rtitle_content(int_rtitle)
	{
		for(i=1;i<=5;i++){
			if (int_rtitle==i){
				document.getElementById('url_rtitle'+i).className='r-title-tab r-title-tab-on';
				sendAJAX(1,'rtitle_content',6,int_rtitle);
			} else{
				document.getElementById('url_rtitle'+i).className='r-title-tab';
			} 
		}	

	}	
	
	
	
	//Ad_News 
	var Ad_News_Timeout;
	function fun_Ad_News_start(int_Stop)
	{
			if (int_Stop!=1){
				sendAJAX(2,'Ad_News',5,0);
			} else {
				window.clearTimeout(Ad_News_Timeout);
			}
	}	
	
	
	//TRProduct_List 
	var TRProduct_List_Timeout;
	function fun_TRProduct_List_start(int_Stop,int_Area_Class)
	{
			if (int_Stop!=1){
				sendAJAX(1,'TRProduct_List',7,int_Area_Class);
			} else {
				window.clearTimeout(TRProduct_List_Timeout);
			}
	}	
		

	//sendAJAX Function
	function sendAJAX(int_Files,div_Name,hp_class,hp_id)
	{
		eval('XmlHttp_'+div_Name+'=createXMLHttp();');
		if(eval('XmlHttp_'+div_Name)){
		    if(int_Files==1){ 
				eval('XmlHttp_'+div_Name+'.Open("POST","/Ajax/Receive_left_menu.aspx?hp_class='+hp_class+'&hp_id='+hp_id+'",true);');	
				eval('XmlHttp_'+div_Name+'.send(null);');
				eval('XmlHttp_'+div_Name+'.onreadystatechange=function(){if (XmlHttp_'+div_Name+'.readystate==4 || XmlHttp_'+div_Name+'.readystate=="complete") if (XmlHttp_'+div_Name+'.responsetext!="" ) {document.getElementById(div_Name).innerHTML =XmlHttp_'+div_Name+'.responsetext;str_'+div_Name+'_tmp'+hp_id+'=XmlHttp_'+div_Name+'.responsetext;}};');	
			} else {
				eval('XmlHttp_'+div_Name+'.Open("POST","/Ajax/Receive_member.aspx?member_class='+hp_class+'",true);');	
				eval('XmlHttp_'+div_Name+'.send(null);');
				eval('XmlHttp_'+div_Name+'.onreadystatechange=function(){if (XmlHttp_'+div_Name+'.readystate==4 || XmlHttp_'+div_Name+'.readystate=="complete") if (XmlHttp_'+div_Name+'.responsetext!="" ) {document.getElementById(div_Name).innerHTML =XmlHttp_'+div_Name+'.responsetext;str_'+div_Name+'_tmp'+hp_class+'=XmlHttp_'+div_Name+'.responsetext;}};');	
			}
		}
	}
	

	// 製作XMLHttp物件
	function createXMLHttp() {
		try {
			return new ActiveXObject ("Microsoft.XMLHTTP");
		}catch(e){
			try {
				return new XMLHttpRequest();
			}catch(e) {
				return null;
			}
		}
		return null;
	}	
	

///setSlideDownSpeed(5);
///setslidedownWidth(350);	

//promo_showHide_start(1);
//blogger_showHide_start(1);
//article_showHide_start(1);
//album_showHide_start(1);
//forum_showHide_start(1);
//rtitle_content(1)
///fun_Ad_News_start()

///promo_Timeout=setInterval('promo_showHide_start()',int_broadcast_Timeout);
///blogger_Timeout=setInterval('blogger_showHide_start()',int_broadcast_Timeout);
///article_Timeout=setInterval('article_showHide_start()',int_broadcast_Timeout);
///Ad_News_Timeout=setInterval('fun_Ad_News_start()',int_broadcast_Timeout);

//promo_showHide_start();
//blogger_showHide_start();
//article_showHide_start();

