window.onload = function() {            
			 
			 var wheelData =  [
			 {connections: [''], text: 'Light Cut M.E.', id: 'fatty-alcohols-light-cut', url: 'light-cut-methyl-esters'},

{connections: ['fatty-alcohols-light-cut'], text: 'CE-1618', id: 'ce-1618', url: 'light-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1875', id: 'ce-1875', url: 'light-cut-methyl-esters'},

{connections: [''], text: 'Mid Cut M.E.', id: 'fatty-alcohols-light-cut', url: 'mid-cut-methyl-esters'},

{connections: ['fatty-alcohols-light-cut'], text: 'CE-1214', id: 'ce-1214', url: 'mid-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1270', id: 'ce-1270', url: 'mid-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1295', id: 'ce-1295', url: 'mid-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1480', id: 'ce-1480', url: 'mid-cut-methyl-esters'},

{connections: [''], text: 'Heavy Cut M.E.', id: 'fatty-alcohols-light-cut', url: 'heavy-cut-methyl-esters'},

{connections: ['fatty-alcohols-light-cut'], text: 'CE-685', id: 'ce-685', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-810', id: 'ce-810', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-810L', id: 'ce-810l', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-895', id: 'ce-895', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-899', id: 'ce-899', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1095', id: 'ce-1095', url: 'heavy-cut-methyl-esters'},
{connections: ['fatty-alcohols-light-cut'], text: 'CE-1098', id: 'ce-1098', url: 'heavy-cut-methyl-esters'},

{connections: [''], text: 'Light Cut F.A.', id: 'fatty-alcohols-light-cut', url: 'light-cut-fatty-alcohols'},

{connections: ['fatty-alcohols-light-cut'], text: 'CO-899', id: 'co-899', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-1098', id: 'co-1098', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-1099', id: 'co-1099', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-899K', id: 'co-899k', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-1055', id: 'co-1055', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-1055 Synthetic', id: 'co-1055-synthetic', url: 'light-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-light-cut'], text: 'CO-1099K', id: 'co-1099k', url: 'light-cut-fatty-alcohols'},

{connections: [''], text: 'Mid Cut F.A.', id: 'fatty-alcohols-–-mid-cut', url: 'mid-cut-fatty-alcohols'},

{connections: ['fatty-alcohols-–-mid-cut'], text: 'CO-1214', id: 'co-1214', url: 'mid-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-mid-cut'], text: 'CO-1270', id: 'co-1270', url: 'mid-cut-fatty-alcohols'},

{connections: [''], text: 'Heavy Cut F.A.', id: 'fatty-alcohols-–-heavy-cut', url: 'heavy-cut-fatty-alcohols'},

{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1695', id: 'co-1695', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1698', id: 'co-1698-cetyl', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1895', id: 'co-1895', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1897', id: 'co-1897-stearyl', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1898', id: 'co-1898-stearyl', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'CO-1899', id: 'co-1899-stearyl', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'TA-1618', id: 'ta-1618', url: 'heavy-cut-fatty-alcohols'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'TA-1618BL', id: 'ta-1618bl', url: 'heavy-cut-fatty-alcohols'},

{connections: [''], text: 'Fatty Acids', id: 'fatty-alcohols-–-heavy-cut', url: 'fatty-acids'},

{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-670', id: 'c-670', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-698', id: 'c-698', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-810', id: 'c-810', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-810L', id: 'c-810l', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-810 K', id: 'c-810-kosher-eu', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-895', id: 'c-895', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-898', id: 'c-898', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-899', id: 'c-899', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-899 K', id: 'c-899-kosher-eu', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-1095', id: 'c-1095', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-1098', id: 'c-1098', url: 'fatty-acids'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'C-699', id: 'c-699', url: 'fatty-acids'},

{connections: [''], text: 'A. Ethoxylates', id: 'fatty-alcohols-–-heavy-cut', url: 'alcohol-ethoxylates'},

{connections: ['fatty-alcohols-–-heavy-cut'], text: 'AE-2', id: 'ae-2', url: 'alcohol-ethoxylates'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'AE-3', id: 'ae-3', url: 'alcohol-ethoxylates'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'AE-7', id: 'ae-7', url: 'alcohol-ethoxylates'},
{connections: ['fatty-alcohols-–-heavy-cut'], text: 'AE-9', id: 'ae-9', url: 'alcohol-ethoxylates'},

{connections: [''], text: 'Glycerin', id: 'glycerin-2', url: 'glycerin-americas'},

{connections: ['glycerin-2'], text: 'CP Glycerin', id: 'cp-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Moon K', id: 'moon-k-usp', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Moon OU Glycerin', id: 'moon-ou-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Vegetable Glycerine', id: 'vegetable-glycerine', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Superol KPO Glycerin', id: 'superol-kpo-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Superol NK Glycerin', id: 'superol-nk-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Star KPO Glycerin', id: 'star-kpo-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Star NK Glycerin', id: 'star-nk-glycerin', url: 'glycerin-americas'},
{connections: ['glycerin-2'], text: 'Superol K', id: 'superol-k-glycerin', url: 'glycerin-americas'},

{connections: [''], text: 'Specialty Surfactants', id: 'age', url: 'specialty-surfactants-age-ags'},

{connections: ['age'], text: 'AGE-1214', id: 'age-1214', url: 'specialty-surfactants-age-ags'},
{connections: ['age'], text: 'AGS-1214', id: 'ags-1214', url: 'specialty-surfactants-age-ags'},

{connections: [''], text: 'Amine Oxide', id: 'amine-oxide', url: 'specialty-surfactants-age-ags'},

{connections: ['amine-oxide'], text: 'AO-1214', id: 'ao-1214', url: 'specialty-surfactants-age-ags'},

{connections: [''], text: 'Sefose', id: 'sefose', url: 'specialty-surfactants-age-ags'},

{connections: ['sefose'], text: '1618S Soyate', id: '1618s-soyate', url: 'specialty-surfactants-age-ags'},
{connections: ['sefose'], text: '1618 U', id: '1618-u', url: 'specialty-surfactants-age-ags'},
{connections: ['sefose'], text: '1618 UB 6', id: '1618-ub-6', url: 'specialty-surfactants-age-ags'},
{connections: ['sefose'], text: '1618 H Stearate', id: '1618-h-stearate', url: 'specialty-surfactants-age-ags'},
{connections: ['sefose'], text: '1618SC', id: '1618sc', url: 'specialty-surfactants-age-ags'},
{connections: ['sefose'], text: '2275', id: '2275', url: 'specialty-surfactants-age-ags'},

{connections: [''], text: 'Olean', id: 'olean', url: 'specialty-surfactants-age-ags'},

{connections: ['olean'], text: 'Olean Sample', id: 'olean-sample', url: 'specialty-surfactants-age-ags'},

{connections: [''], text: 'Tertiary Amines', id: 'tertiary-amines', url: 'tertiary-amines'},

{connections: ['tertiary-amines'], text: 'AT-1214A - AT-1214A', id: 'at-1214-at-1214a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-121416A', id: 'at-121416a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1270A', id: 'at-1270a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1295A', id: 'at-1295a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1495A', id: 'at-1495a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1695A', id: 'at-1695a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1895A', id: 'at-1895a', url: 'tertiary-amines'},
{connections: ['tertiary-amines'], text: 'AT-1216A', id: 'at-1216a', url: 'tertiary-amines'}	
];
			 
	//var wheel = new MooWheel(wheelData, $('canvas'));
	
	
	new MooWheel(wheelData, $('canvas'), {
        onItemClick: function(item, e) {
            var url = '/?products=' + item.url;
            window.open(url);
        },
        type: 'cold'
    });
	
};
