function whoisTry( ) {
	var attemptednickname = getElement(window.document,"trynickname");
	window.document.qmpautoform.action = "default.asp";
	window.document.qmpautoform.whoiscommand.value = "TRY";
	window.document.qmpautoform.attemptednickname.value = attemptednickname.value;
	window.document.qmpautoform.submit( );
	return false;
}



function WhoisSlideShow(game,parts) {
	this.ie = true;
	this.blinkingholder = new Array( );
	this.currentindex = 0;
	this.intervalhandle = 0;
				
	this.draw = function( ) {
		if ( this.currentindex < (this.blinkingholder.length - 1) ) {
			this.currentindex++;
		} else {
			this.currentindex = 0;
		}
		this.blendPart(this.currentindex);
	}
					
	this.startSlide = function( ) {
		// imposta l'intervallo
		var blenddelay = (ie) ? document.images.slide.filters[0].duration*1000 : 0;
		this.intervalhandle = window.setInterval("theslide.draw( )",1000 + blenddelay);
		this.draw( );
	}
				
	this.init = function( ) {
		this.ie = document.all;
		this.currentindex = 0;
		for( var i = 0; i < parts.length; i++ ) {
			this.blinkingholder[i] = new Image( );
			this.blinkingholder[i].src = _HTTP_HOST + "games/whois/game_" + game + "/" + parts[i];
		}
	}
				
	this.blendPart = function(index) {
		if (! document.images) return;
		//alert( "index = " + index + "\r\n" + "this.indexholder[index] = " + this.indexholder[index] );
					
		if (this.ie) {
			document.images.slide.filters[0].apply( );
		}

		document.images.slide.src = this.blinkingholder[index].src;
		
		if (this.ie) { 
			document.images.slide.filters[0].play( );
		}
	}		
	this.init( );	
}


	
