var pageposx, pageposy;

switch (pagetype) {
	case 'configurator':
		pageposx = 430;
		pageposy = 196;
		break;
	case 'reviewer':
		pageposx = 385;
		pageposy = 137;
		break;
	case 'admin':
		pageposx = 20;
		pageposy = 400;
		break;
	default:
		pageposx = 21;
		pageposy = 130;
		break;
}


// Set the coordinates for the marbles

var marblecoords = new Array('37|37','64|37','91|37','118|37','145|37','172|37','199|37','37|64','64|64','91|64','118|64','145|64','172|64','199|64','37|91','64|91','91|91','118|91','145|91','172|91','199|91','37|118','64|118','91|118','118|118','145|118','172|118','199|118','37|145','64|145','91|145','118|145','145|145','172|145','199|145','37|172','64|172','91|172','118|172','145|172','172|172','199|172','37|199','64|199','91|199','118|199','145|199','172|199','199|199');


// Set the shape and size

var shape = 'square';
var size = '12';


// Modifiers for admin tool

var shapewidth = 258;
var marblewidth = 21;
var adminscalex = 4.505;
var adminscaley = 4.515;

// Templates for this fixture

var template = new Array();
var templatefinish = new Array();

template[0] = '2,2,9,8,9,7,5,4,1,3,1,4,2,3,8,4,7,9,5,3,9,2,3,5,1,2,9,7,1,7,8,8,4,1,8,3,2,9,5,2,4,7,7,4,8,3,4,1,5';
templatefinish[0] = 0;

template[1] = '7,0,0,0,0,0,2,0,7,0,0,0,2,0,0,0,7,0,2,0,0,0,0,0,0,0,0,0,0,0,5,0,3,0,0,0,5,0,0,0,3,0,5,0,0,0,0,0,3';
templatefinish[1] = 2;

template[2] = '0,1,1,1,0,0,0,0,1,1,1,7,7,7,0,1,1,1,7,7,7,3,3,3,0,7,7,7,3,3,3,2,2,2,0,3,3,3,2,2,2,0,0,0,0,2,2,2,0';
templatefinish[2] = 0;

template[3] = '0,0,0,0,0,0,0,0,2,2,0,3,3,0,0,2,2,0,3,3,0,0,0,0,0,0,0,0,0,5,5,0,7,7,0,0,5,5,0,7,7,0,0,0,0,0,0,0,0';
templatefinish[3] = 0;

template[4] = '0,1,1,1,1,1,1,3,0,1,1,1,1,1,3,3,0,1,1,1,1,3,3,3,0,1,1,1,3,3,3,3,0,1,1,3,3,3,3,3,0,1,3,3,3,3,3,3,0';
templatefinish[4] = 0;

template[5] = '0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,8,0,0,0,0,0,8,0,8,0,0,0,0,0,8,0,0,0,0,0';
templatefinish[5] = 1;

template[6] = '0,9,9,0,9,9,0,2,0,9,9,9,0,7,2,2,0,9,0,7,7,0,2,2,0,7,7,0,2,2,0,3,0,7,7,2,0,3,3,3,0,7,0,3,3,0,3,3,0';
templatefinish[6] = 2;

template[7] = '2,2,0,0,0,2,2,2,2,0,0,0,2,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,2,0,0,0,2,2,2,2,0,0,0,2,2';
templatefinish[7] = 1;

