var pageposx, pageposy;

switch (pagetype) {
	case 'configurator':
		pageposx = 390;
		pageposy = 152;
		break;
	case 'reviewer':
		pageposx = 345;
		pageposy = 93;
		break;
	case 'admin':
		pageposx = 20;
		pageposy = 400;
		break;
	default:
		pageposx = 21;
		pageposy = 130;
		break;
}


// Set the coordinates for the marbles

var marblecoords = new Array('170|56','200|60','226|71','251|89','269|113','280|140','285|170','280|199','269|227','251|250','226|268','200|280','170|284','141|280','114|268','90|250','70|227','60|199','56|170','60|140','70|113','90|89','114|71','141|60','170|85','200|89','225|104','244|128','255|155','255|184','244|212','225|236','200|250','170|255','142|250','116|236','97|212','87|184','87|155','97|128','116|104','142|89','170|113','199|120','220|141','226|170','220|198','199|220','170|226','140|220','120|198','115|170','120|141','140|120','170|141','196|156','196|183','170|198','145|183','145|156','170|170');


// Set the shape and size

var shape = 'circle';
var size = '16';


// Modifiers for admin tool

var shapewidth = 363;
var marblewidth = 21;
var adminscalex = 4.205;
var adminscaley = 4.231;


// 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,5,7,8,1,3,9,2,4,5,7,5,7,8,1,3,9,2,4,5,7,1,3,2,5,4,8,1,2,1,2,7,1,3,8,2,4,7,2,5,3,8,3,4,7,5,1,9';
templatefinish[0] = 0;

template[1] = '7,7,7,0,0,0,7,7,7,7,7,0,0,0,7,7,7,7,7,0,0,0,7,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7';
templatefinish[1] = 2;

template[2] = '8,0,0,0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,0,0,8,8,8,8,8,8,8,8,8,8,8,8,8,0,0,0,8,8,8,8,8,8,8,8,8,0,8,8,8,8,8';
templatefinish[2] = 2;

template[3] = '5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,5,0,5,0,5,0,5,0,5,0,0,0,0,0,0,0';
templatefinish[3] = 1;

template[4] = '0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,7,0,0,0,0,0,0,0,0,0,0,0,0,7,0,7,0,7,0,0,0,0,0,7,7,7,0,7';
templatefinish[4] = 1;

template[5] = '4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,6,6,6,6,6,6,6,6,6,4,4,4,4,4,6,4,4,4,4,4,4,4,4,4,6,4,4,4,4,4,4,4';
templatefinish[5] = 0;

template[6] = '4,4,4,4,0,0,0,0,0,4,4,4,4,4,4,4,0,0,0,0,0,4,4,4,4,4,4,0,0,0,0,4,4,4,4,4,0,0,0,0,4,4,4,4,0,0,0,4,4,4,0,0,0,4,4,0,0,4,0,0,0';
templatefinish[6] = 1;

template[7] = '4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,4,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0,0,0,0,4,4,4,4,4,4,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0';
templatefinish[7] = 1;

