var pageposx, pageposy;

switch (pagetype) {
	case 'configurator':
		pageposx = 418;
		pageposy = 172;
		break;
	case 'reviewer':
		pageposx = 373;
		pageposy = 113;
		break;
	case 'admin':
		pageposx = 20;
		pageposy = 400;
		break;
	default:
		pageposx = 21;
		pageposy = 130;
		break;
}
		

// Set the coordinates for the marbles

var marblecoords = new Array('139|45','170|49','199|65','218|91','231|121','231|153','218|183','199|208','170|223','139|229','107|223','79|208','58|183','48|153','48|121','58|91','79|65','107|49','139|75','170|83','193|105','201|138','193|167','170|190','139|198','108|190','86|167','77|136','86|105','108|83','139|105','167|121','167|152','139|167','112|152','112|121','139|136');


// Set the shape and size

var shape = 'circle';
var size = '12';


// Modifiers for admin tool

var shapewidth = 298;
var marblewidth = 23;
var adminscalex = 3.866;
var adminscaley = 3.866;


// Templates for this fixture

var template = new Array();
var templatefinish = new Array();

template[0] = '8,1,3,9,2,4,5,7,8,1,3,9,2,4,9,7,5,4,9,2,7,3,2,9,4,7,3,5,2,3,4,8,7,5,2,1,9';
templatefinish[0] = 0;

template[1] = '0,2,2,0,8,8,0,2,2,0,8,8,0,2,2,0,8,8,0,2,0,8,0,2,0,8,0,2,0,8,0,0,0,0,0,0,0';
templatefinish[1] = 0;

template[2] = '1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,1,0';
templatefinish[2] = 2;

template[3] = '0,0,0,0,0,0,1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,1';
templatefinish[3] = 0;

template[4] = '4,0,0,1,0,0,5,0,0,7,0,0,2,0,0,8,0,0,4,0,1,0,5,0,7,0,2,0,8,0,4,1,5,7,2,8,0';
templatefinish[4] = 2;

template[5] = '8,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,8,0,0,0,0,0,8,0,0,0,0,0,8,0,0,8,0,0,8';
templatefinish[5] = 1;

template[6] = '3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,3,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0';
templatefinish[6] = 2;

template[7] = '3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,3,0,0,0,3,0,3,0,3,0,0,0,3,0,3,3,3,0,3';
templatefinish[7] = 0;

