function swapImage ( id ) {
	var iphone_screen_name = "main_iphone_screen";
	var obj = ( document.all && document.all( iphone_screen_name )
				|| document.getElementById && document.getElementById( iphone_screen_name ) );
	
	if ( obj && obj.style ) {
		var val;
		if ( id == "title" ) {
			val = "0px 0px";
			
		} else if ( id == "playerSelect" ) {
			val = "-264px 0px";
			
		} else if ( id == "options" ) {
			val = "-528px 0px";
			
		} else if ( id == "playing" ) {
			val = "0px -396px";
			
		} else if ( id == "ranking" ) {
			val = "-264px -396px";
			
		} else if ( id == "records" ) {
			val = "-528px -396px";
			
		}
		obj.style.backgroundPosition = val;
	
		/*
		alert( obj.style.backgroundPosition );
		var txt = "";
		for ( var prop in obj.style.backgroundPosition ) {
			txt += ( prop + ": " + obj.style.backgroundPosition[ prop ] );
			
		}
		alert( txt );
		*/
		
	}
	
	//alert( obj );
	//alert( obj[ "style" ] );
	
}

function openImage ( id ) {
	var url;
	if ( id == "title" ) {
		url = "images/snaps/title.jpg";
		
	} else if ( id == "playerSelect" ) {
		url = "images/snaps/playerSelect.jpg";
		
	} else if ( id == "options" ) {
		url = "images/snaps/options.jpg";
		
	} else if ( id == "playing" ) {
		url = "images/snaps/playing.jpg";
		
	} else if ( id == "ranking" ) {
		url = "images/snaps/ranking.jpg";
		
	} else if ( id == "records" ) {
		url = "images/snaps/records.jpg";
		
	}
	window.open( url, "snaps" );
	
}
