// JavaScript Document

// Delimiter for database
var Delimiter = ";";

var CameraDB = new Array( 
// 1st column - Visible field - always 1
// 1st row - name of columns (selectbox)
"Visible;Camera model;URL;Sensor type;Optical format of sensor, inch;Active pixels;Pixel size, um;Shutter type;Frame rate at full resolution, fps;Color/Mono;Bit depth;Lens mount;Interface type;Sensor manufacturer;Price, $;External trigger connector",
// 2nd row - hints for selectbox
"0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15",
// next rows is cameras info
"1;CommandShot SMX-155M;smx-155m.html;1.3 Mpixel CMOS;2/3;1280 x 1024;6.7 x 6.7;Global & Rolling;27.5;Mono;Selectable, 8 bits or 10 bits;C;USB2.0;Cypress;900 ... 1200;yes",
"1;CommandShot SMX-150M;smx-150m.html;1.3 Mpixel CMOS;2/3;1280 x 1024;6.7 x 6.7;Global & Rolling;27.5;Mono;Selectable, 8 bits or 10 bits;C;USB2.0;Cypress;900 ... 1200;yes",
"1;CommandShot SMX-M71M;smx-m71m.html;1.3 Mpixel CMOS;1/2;1280 x 1024;5.2 x 5.2;Rolling;30;Mono;Selectable, 8 bits or 10 bits;C;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-M72;smx-m72.html;2 Mpixel CMOS;1/2;1600 x 1200;4.2 x 4.2;Rolling;20;Color;Selectable, 8 bits or 10 bits;C;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-M73;smx-m73.html;3 Mpixel CMOS;1/2;2048 x 1536;3.2 x 3.2;Rolling, Global Reset;12;Color;Selectable, 8 bits or 10 bits;C;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-M81M;smx-m81m.html;1.3 Mpixel CMOS;1/2;1280 x 1024;5.2 x 5.2;Rolling;15;Mono;Selectable, 8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;less than 600;no",
"1;CommandShot SMX-M82C;smx-m82c.html;2 Mpixel CMOS;1/2;1600 x 1200;4.2 x 4.2;Rolling;10;Color;Selectable, 8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;less than 600;no",
"1;CommandShot SMX-M83C;smx-m83c.html;3 Mpixel CMOS;1/2;2048 x 1536;3.2 x 3.2;Rolling (Optional Global Reset);6;Color;Selectable, 8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;less than 600;no",
"1;CommandShot SMX-160M;smx-160m.html;6.6 Mpixel CMOS;1;2208 x 3000;3.5 x 3.5;Rolling;6;Mono;Selectable, 8 bits or 10 bits;C;USB2.0;Cypress;more than 1200;no",
"1;CommandShot SMX-160C;smx-160c.html;6.6 Mpixel CMOS;1;2208 x 3000;3.5 x 3.5;Rolling;6;Color;Selectable, 8 bits or 10 bits;C;USB2.0;Cypress;more than 1200;no",
"1;CommandShot SMX-M95C;smx-m95c.html;5 Mpixel CMOS;1/2.5;2592 x 1944;2.2 x 2.2;Rolling, Global Reset;8;Color;Selectable, 8 bits, 10 bits or 12 bits;C;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-M95M;smx-m95m.html;5 Mpixel CMOS;1/2.5;2592 x 1944;2.2 x 2.2;Rolling, Global Reset;8;Mono;Selectable, 8 bits, 10 bits or 12 bits;C;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-10M1M;smx-10m1m.html;1.3 Mpixel CMOS;1/2;1280 x 1024;5.2 x 5.2;Rolling;30;Mono;8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-10M2C;smx-10m2c.html;2 Mpixel CMOS;1/2;1600 x 1200;4.2 x 4.2;Rolling;20;Color;8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-10M3C;smx-10m3c.html;3 Mpixel CMOS;1/2;2048 x 1536;3.2 x 3.2;Rolling, Global Reset;12;Color;8 bits or 10 bits;C/CS;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-11M5C;smx-11m5c.html;5 Mpixel CMOS;1/2.5;2592 x 1944;2.2 x 2.2;Rolling, Global Reset;8;Color;8 bits, 10 bits or 12 bits;C/CS;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-11M5M;smx-11m5m.html;5 Mpixel CMOS;1/2.5;2592 x 1944;2.2 x 2.2;Rolling, Global Reset;8;Mono;8 bits, 10 bits or 12 bits;C/CS;USB2.0;Micron Technology, Inc;600 ... 900;yes",
"1;CommandShot SMX-12A2M;smx-12a2m.html;2.1 Mpixel CMOS;2/3;HDTV, 1920x1080;5 x 5;Electronic Focal Plane Rolling Shutter;60;Mono;Selectable,8 bits or 12 bits;C;GigaBit Ethernet;AltaSens, Inc.;more than 1200;yes",
"1;CommandShot SMX-12A2C;smx-12a2c.html;2.1 Mpixel CMOS;2/3;HDTV, 1920x1080;5 x 5;Electronic Focal Plane Rolling Shutter;60;Color;Selectable,8 bits or 12 bits;C;GigaBit Ethernet;AltaSens, Inc.;more than 1200;yes"
);

// What criterias index is active ?
var SimpleCriterias = new Array(3,5,6,4,8,7,9,10,11,12,14,13,15);
var AdvancedCriterias = new Array();
