var pageposx, pageposy;

switch (pagetype) {
	case 'configurator':
		pageposx = 390;
		pageposy = 159;
		break;
	case 'reviewer':
		pageposx = 345;
		pageposy = 100;
		break;
	case 'admin':
		pageposx = 20;
		pageposy = 400;
		break;
	default:
		pageposx = 21;
		pageposy = 130;
		break;
}


// Set the coordinates for the marbles

var marblecoords = new Array('66|40|down','87|43|up','108|40|down','129|43|up','150|40|down','171|43|up','192|40|down','213|43|up','234|40|down','255|43|up','276|40|down','87|76|down','108|79|up','129|76|down','150|79|up','171|76|down','192|79|up','213|76|down','234|79|up','255|76|down','108|112|down','129|115|up','150|112|down','171|115|up','192|112|down','213|115|up','234|112|down','129|148|down','150|151|up','171|148|down','192|151|up','213|148|down','150|184|down','171|187|up','192|184|down','171|220|down');


// Set the shape and size

var shape = 'triangle';
var size = '15';


// Modifiers for admin tool

var shapewidth = 381;
var marblewidth = 30;
var adminscalex = 4.622;
var adminscaley = 4.702;


// Templates for this fixture

var template = new Array();
var templatefinish = new Array();

template[0] = '9,2,4,5,7,8,1,3,9,2,4,5,7,8,1,4,9,7,4,5,2,4,3,8,2,5,3,9,8,7,4,1,1,2,8,4';
templatefinish[0] = 0;

template[1] = '7,7,0,0,7,7,7,0,0,7,7,7,7,0,0,7,0,0,7,7,7,7,0,0,0,7,7,7,7,0,7,7,7,7,7,7';
templatefinish[1] = 0;

template[2] = '0,0,0,5,0,0,0,0,0,0,0,0,5,5,5,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0';
templatefinish[2] = 2;

template[3] = '3,3,0,0,3,3,0,0,3,3,0,3,3,0,0,3,3,0,0,3,3,3,0,0,3,3,0,3,3,0,0,3,3,3,0,3';
templatefinish[3] = 2;

template[4] = '0,3,3,3,0,0,0,3,3,3,0,3,3,3,0,0,0,3,3,3,0,0,0,0,0,0,0,0,3,3,3,0,3,3,3,0';
templatefinish[4] = 1;

template[5] = '0,0,0,4,4,4,4,4,0,0,0,0,4,4,4,4,4,4,4,0,4,4,4,4,4,4,4,4,4,4,4,4,0,0,0,0';
templatefinish[5] = 1;

template[6] = '4,4,4,0,0,0,0,0,8,8,8,4,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0,0,0,0,0,2,2,2,2';
templatefinish[6] = 2;

template[7] = '2,2,2,2,2,2,2,2,2,2,2,2,2,0,0,0,0,0,2,2,2,2,0,0,0,2,2,2,2,0,2,2,2,2,2,2';
templatefinish[7] = 2;

