		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){

		    httpRequest.abort();
		    httpRequest.open('GET', 'http://cx.matomenomori.net/pb/px/b/' + uuid, true );
		    httpRequest.onreadystatechange = function() {
		        if(httpRequest.readyState == 4) {
			cb(x,m_click);
		            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 == null ) return ""; 
			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(){
			cn = (document.getElementById("ac").childNodes.length) + 1;
			for (var i = 1 ; i <=  ( cn / 2) - 1  ; i++ ){
				obj = document.getElementById("itmlnk" + i);
				b = getActiveStyle(obj,"color");
				if (b == "rgb(85, 26, 139)")
					ccv('itm' + i);
			}
		}
		
		function onLoad(){
			visitedChk();
		}