
		httpRequest = false;
		if(window.XMLHttpRequest) {
		    // Firefox, Opera など
		    httpRequest = new XMLHttpRequest();
		    httpRequest.overrideMimeType('text/xml');
		} else if(window.ActiveXObject) {
		    // IE
		    try {
		        httpRequest = new ActiveXObject('Msxml2.XMLHTTP');
		    } catch (e) {
		        httpRequest = new ActiveXObject('Microsoft.XMLHTTP');
		    }
		}

	
		var m_over = "#CCCCCC";
		var m_out = "#FFFFFF";
		var m_click = "#FFFFCC";

		function bbc(x,y){
			var bc = document.getElementById(x).clicked;
			 if(y==1){ 
			 	if (bc != "true")
				 	cb(x,m_out);
				else
					cb(x,m_click);
			} else { 
				cb(x,m_over);
			}
		}

		function cclp(x , uuid , url){

			cb(x,m_click);
		    httpRequest.abort();
		    httpRequest.open('GET', 'http://cx.matomenomori.net/pb/px/b/' + uuid, true);
		    httpRequest.onreadystatechange = function() {
		        if(httpRequest.readyState == 4) {
		            if(httpRequest.status == 200) {
						document.getElementById(x).clicked = "true";
		            }
					        
		        }
		    }
		    httpRequest.send(null);

		}
		
		function ccv(x){
			document.getElementById(x).clicked = "true";
			cb(x,m_click);
		}
		
		
		function cb(x,bg){
			 if(document.getElementById){
			  document.getElementById(x).style.background=bg;
			 }
			 //IE4用
			 else if(document.all){
			  document.all(x).style.background=bg;
			 }
		}
	
		String.prototype.camelize = function() {
			return this.replace( /-([a-z])/g,
			function( $0, $1 ) { return $1.toUpperCase() } );
		}
		String.prototype.deCamelize = function() {
			return this.replace( /[A-Z]/g,
			function( $0 ) { return "-" + $0.toLowerCase() } );
		}

		function getActiveStyle( element, property, pseudo ) {
			if( element.currentStyle ) {           //IE
				property = ( property.match( /-/ ) ) ? property.camelize( ) : property;
				return element.currentStyle[ property.camelize( ) ];
			}
			else if( document.defaultView.getComputedStyle ) { //Mozilla
				property = ( property.match( /-/ ) == null ) ? property.deCamelize( ) : property;
				return document.defaultView.getComputedStyle( element, pseudo ).getPropertyValue( property );
			}
				return "";
		}

		function visitedChk(){
			i = 1;
			while(i < 999) {
				obj = document.getElementById("itmlnk" + i);
				if (obj == null) {
					break;
				}else{
					b = getActiveStyle(obj,"color");
					if (b == "rgb(85, 26, 139)")
						ccv('itm' + i);
						
					// checkEntry(i);
						
				}
				i++;
			}
		}

		function visitedChk_ext(oid){
			visitedChk();
			var uls = $("article_ul");
			parent.document.getElementById(oid).style.height = ( uls.clientHeight  + 5) + "px";
		}

		window.onload = function() {
		  setTimeout(function(){window.scrollTo(0, 1);}, 100);
		}
		
		function change_category(link_value){
			window.location = link_value;
		}
		
		function loadHTMLFile(fName ,oid,pnum ){
			httpObj = createXMLHttpRequest(	function displayData(){
					if ((httpObj.readyState == 4) && (httpObj.status == 200)){
						var lobj = parent.document.getElementById(oid);
						lobj.innerHTML = "<object id=\"obj_id_"+oid+"\" data=\"" + fName + "\" width=\"100%\"></object> <span id=\"next_article__"+ pnum +"\"></span>   ";
					}else{
						$(oid).innerHTML = "";
					}
				}
			);
			if (httpObj){
				httpObj.open("GET",fName,true);
				httpObj.send(null);
			}
		}


		function createXMLHttpRequest(cbFunc){
			var XMLhttpObject = null;
			try{
				XMLhttpObject = new XMLHttpRequest();
			}catch(e){
				try{
					XMLhttpObject = new ActiveXObject("Msxml2.XMLHTTP");
				}catch(e){
					try{
						XMLhttpObject = new ActiveXObject("Microsoft.XMLHTTP");
					}catch(e){
						return null;
					}
				}
			}

			if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
				return XMLhttpObject;
		}

		// document.getElementById
		function $(tagId)
		{
			return document.getElementById(tagId);
		}

