function Panoramic( id, posLeft, posTop, posWidth, posHeight, URL, StartTimeout, Timeout, Repeat ) {
	var Pan = document.getElementById( "Pan" );
	if( !Pan ) return;
	
	var PanDiv = document.createElement( "div" );
	if( !PanDiv ) return;
		
	PanDiv.id = "Panoramic_" + id;

	PanDiv.StartTimeout = StartTimeout;
	PanDiv.Timeout = Timeout;
	PanDiv.Repeat = Repeat;
	PanDiv.Step = 1;
	PanDiv.Left = 0;
	PanDiv.posLeft = posLeft;
	PanDiv.posTop = posTop;
	PanDiv.posWidth = posWidth;
	PanDiv.posHeight = posHeight;
	
	with( PanDiv.style ) {
		position = "absolute";
		left = "0px";
		top = "0px";
		width = "0px";
		height = "0px";
	}
	
	PanDiv.img1 = document.createElement( "img" );
	PanDiv.img2 = document.createElement( "img" );
	if( !PanDiv.img1 || !PanDiv.img2 ) return;
	
	PanDiv.img1.src = URL;
	PanDiv.img2.src = URL;

	with( PanDiv.img1.style ) {
		position = "absolute";
		left = "0px";
		top = "0px";
	}
	
	with( PanDiv.img2.style ) {
		position = "absolute";
		left = "0px";
		top = "0px";
	}
	
	PanDiv.appendChild( PanDiv.img1 );
	PanDiv.appendChild( PanDiv.img2 );
	Pan.appendChild( PanDiv );

	loadImages( PanDiv.id );
}

function loadImages( id ) {
	var PanDiv = document.getElementById( id );
	if( !PanDiv ) return;

	if( !PanDiv.img1.complete || !PanDiv.img2.complete ) {
		setTimeout( "loadImages( '" + PanDiv.id + "' )", 0 );
		return;
	}

	with( PanDiv.style ) {
		left = PanDiv.posLeft + "px";
		top = PanDiv.posTop + "px";
		width = PanDiv.posWidth + "px";
		height = PanDiv.posHeight + "px";
	}
	
	setTimeout( "doPanoramic( '" + PanDiv.id + "' )", PanDiv.StartTimeout );
}

function doPanoramic( id ) {
	var PanDiv = document.getElementById( id );
	if( !PanDiv ) return;
	
	PanDiv.Left--;
	var Left2 = PanDiv.Left + PanDiv.img1.width;
	
	PanDiv.img1.style.left = PanDiv.Left + "px";
	PanDiv.img2.style.left = Left2 + "px";
	
	if( Left2 <= 0 ) PanDiv.Left = 0;
	
	setTimeout( "doPanoramic( '" + PanDiv.id + "' )", PanDiv.Timeout );
}
