/* onDOMLoad */
eval(function(p,a,c,k,e,r){e=function(c){return c.toString(36)};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'\\w'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3.5=r;3.7=[];3.6=4(){1(d.9.8){n}d.9.8=u;1(5){q(5)}f a;for(i in 7){1(typeof(a=7[i])=="4"){a.g(2)}}};4 onDOMLoad(a){7.push(a);1(d.9.8){n}d.9.8=u;1(2.k){2.k("DOMContentLoaded",6,r)}else 1(2.all&&!3.opera){2.write(\'<j type="text/t" id="s" l="l" src="t:void(0);"><\\/j>\');f b=2.getElementById("s");b.onreadystatechange=4(){1(this.o=="m"){6.g(2)}}}1(/Safari/i.p(navigator.userAgent)){5=setInterval(4(){1(/loaded|m/.p(2.o)){q(5);6.g(2)}},10)}f c=(3.h)?3.h:4(){};3.h=4(e){c(e);6()}}',[],31,'|if|document|window|function|sFT|callDLFs|onDLFs|done|callee||||arguments||var|apply|onload||script|addEventListener|defer|complete|return|readyState|test|clearInterval|false|contentloadtag|javascript|true'.split('|'),0,{}))

var vmix_tracking_string = '';
var pid = '';

var travel_cid = 6325;
var health_cid = 6316;
var entertainment_cid = 6286;
var pets_cid = 6321;
var tech_cid = 6323;
var food_cid = 6313;
var comedy_cid = 6280;
var sports_cid = 6290;
var green_cid = 6346;
var fashion_cid = 6307;
var movies_cid = 8917;

// alternate content collections
var comedy_a_cid = 8904;
var entertainment_a_cid = 8905;
var fashion_a_cid = 8906;
var food_a_cid = 8907;
var green_a_cid = 8908;
var health_a_cid = 8909;
var pets_a_cid = 8910;
var sports_a_cid = 8911;
var tech_a_cid = 8912;
var travel_a_cid = 8913;

// triton collections
var triton_mon_cid = 8670;
var triton_tue_cid = 8671;
var triton_wed_cid = 8672;
var triton_thu_cid = 8673;
var triton_fri_cid = 8674;


var players = {
	'default' : {
		'partner_name' : 'default',
		'template_name' : 'default',
		'width' : 580,
		'height' : 664,
		'bgcolor' : '#ffffff',
		'flashvars' : {
			'bgcolor' : '#ffffff',
			'auto_play' : 0,
			'orientation' : 'vertical',
			'player_event_handler' : 'vmix_event_handler',
			'show_warnings' : 0,
			'stateful_links' : 0,
//			'show_description_area' : 1,
			'player_id' : '92e129fdb7976db10eccc55d97c273c7'
		}
	},

	// 128 modbee.com
	'128_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '4db2dff37ee626c06ea67aaa3313bdd2',
			'player_id' : '18b64735fa58635e25332f475c34d6ce'
		}
	},

	// 133 bellinghamherald.com
	'133_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
			'auth_token' : '7ba8f74970cf12d0353c61dd1e396021',
			'player_id' : 'efccc69cc153cd4638c821fd68b706e3'
                }
        },

	// 135 heraldonline.com
        '135_default' : {
                'width' : 616,
                'height' : 686,
                'flashvars' : {
			'auth_token' : '9e95721ae51ed1801ccecaf128f4b02d',
			'player_id' : 'a74648748c82dcd56fa852d0be41cb6a'
                }
        },

	// 126 myrtlebeachonline.com
        '126_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
			'auth_token' : '1b5caf7d92a7829ebec053893aca4775',
			'player_id' : '5ff502b332e070f850c812c5294c43a0'
                }
        },
	

	// 354 star-telegram.com
	'354_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'a56fa94fa626afb6b9abca17bf669006',
			'player_id' : '82ab12ae17ca3c24d91e6ba00af31ab2'
		}
	},

	// 122 kentucky.com
        '122_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
			'auth_token' : '9c4fa3dbe5d0c0960a827522b4fc809b',
			'player_id' : 'a26345942726e794bd90e789596f9c41'
                }
        },

	// 71 Macon.com
        '71_default' : {
                'width' : 315,
                'height' : 480,
                'flashvars' : {
			'auth_token' : 'e4added7a082250801e441c12e26d5a2',
			'player_id' : 'aa5a8a715a1e3961f9226360b0f56bec'
                }
        },

	// 123 Tacoma.com
        '123_default' : {
                'width' : 650,
                'height' : 715,
                'flashvars' : {
			'auth_token' : 'fae638eac7469721b162623c14b7e860',
			'player_id' : 'ccd12c354929de9b29c4e52487422e4d'
                }
        },

	// 533 Live Better - Media News
        '533_default' : {
                'width' : 650,
                'height' : 350,
                'flashvars' : {
			'orientation' : 'horizontal',
			'auth_token' : 'fe0eb3283a397cf7d6814e6b6c3e0062',
			'player_id' : 'd0730ea991d40eae05e3c047c56ba4e0'
                }
        },

	// 124 kansas.com
        '124_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
			'auth_token' : '488dc7d97f65de4fa9caf51244ea9660',
			'player_id' : 'd5cfa1db24b20d8b4d2faa2442f20a43'
                }
        },

        // 127 sunherald.com
        '127_default' : {
                'width' : 290,
                'height' : 440,
                'flashvars' : {
                        'auth_token' : 'f845962b341d33ebd8e3d4fa1a5994f3',
                        'player_id' : 'd04487b9a398e796994b15b1dd69edb2',
			'player_height' : 190
                }
        },

        // 127 sunherald.com -- food
        '127_food' : {
                'width' : 270,
                'height' : 505,
		'background' : '#2521A1',
                'flashvars' : {
                        'auth_token' : 'f845962b341d33ebd8e3d4fa1a5994f3',
			'player_id' : 'd04487b9a398e796994b15b1dd69edb2',
			'orientation' : 'vertical',
			'background_color_primary' : '#C4C4C4',
			'background_color_secondary' : '#979797',
			'theme_color_primary' : '#C4C4C4',
			'theme_color_secondary' : '#979797',
			'text_color' : '#000000',
			'max_videos' : '15',
			'comments_enabled' : '1',
			'ratings_enabled' : '1',
			'show_description_area' : '1',
			'player_height' : 178
                }
        },

        // 127 sunherald.com -- entertainment
        '127_entertainment' : {
                'width' : 270,
                'height' : 505,
		'background' : '#2521A1',
                'flashvars' : {
                        'auth_token' : 'f845962b341d33ebd8e3d4fa1a5994f3',
			'player_id' : 'd04487b9a398e796994b15b1dd69edb2',
			'orientation' : 'vertical',
			'background_color_primary' : '#C4C4C4',
			'background_color_secondary' : '#979797',
			'theme_color_primary' : '#C4C4C4',
			'theme_color_secondary' : '#979797',
			'text_color' : '#000000',
			'max_videos' : '15',
			'comments_enabled' : '1',
			'ratings_enabled' : '1',
			'show_description_area' : '1',
			'player_height' : 178
                }
        },

        // 131 ledger-enquirer.com
        '131_default' : {
                'width' : 275,
                'height' : 440,
                'flashvars' : {
                        'auth_token' : '83c2f97dbc094024f73cca2d1e067783',
			'player_id' : 'a06f536313c334fddbdbabb386a35745'
                }
        },

        // 46 sacbee.com
        '46_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
                        'auth_token' : 'f7acecefe1ea4291129ecbb995e44624',
			'player_id' : 'a06f536313c334fddbdbabb386a35745'
                }
        },

        // 202 sanluisobispo.com
        '202_default' : {
                'width' : 580,
                'height' : 664,
                'flashvars' : {
                        'auth_token' : '060fe4ea36125898d2dbeb50970ce186',
			'player_id' : 'a06f536313c334fddbdbabb386a35745'
                }
        },

        // 119 elnuevo.com
        '119_default' : {
                'width' : 460,
                'height' : 538,
                'flashvars' : {
                        'auth_token' : '63ce3b7a405c61b9ecc719b9cff6d8e1',
			'player_id' : 'a06f536313c334fddbdbabb386a35745'
                }
        },

        // 26 miamiherald.com
		'26_default' : {
			'width' : 460,
			'height' : 538,
			'flashvars' : {
				'auth_token' : 'a813f1e71978008c6ea880b8fbafac0f',
				'player_id' : 'a06f536313c334fddbdbabb386a35745'
			}
        },


	// 14_lee
	'14_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e0c1a13a8078f5de8535fcbeb6dc7e3b',
			'player_id' : '1632ac7c117b87f6998c103d9316b452'
		}
	},

	// 94_stltoday.com
	'94_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '7b30039febbae9e88421dba0f5a6a047',
			'player_id' : 'c6fc0b1eb0ffd499936c879cd9977ebf'
		}
	},

	// 95_azstarnet.net
	'95_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'd89e8a80bc4e8b4e2189219bfa0e9773',
			'player_id' : '8a5d6b687e6e5ea142a53134c4007478'
		}
	},

	// 96_nctimes.com
	'96_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'ffcb4506dfcfbd8bd34bb16122120582',
			'player_id' : '747e444127b3965ac8d6a54f05d5a234'
		}
	},

	// 97_madison.com
	'97_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '4d0ddbb1883527e16c0c7a7504448e8d',
			'player_id' : 'd4d3b8a46b71bb9780bf92dda3384584'
		}
	},

	// 98_casperstartribune.com
	'98_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '3bbe25320eb9d0b0bbf3046287b91339',
			'player_id' : '6e35fa00c0938695528b9a8a52b84d0c'
		}
	},

	// 99_tdn.com
	'99_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '4cb622ab3509bd32429470144ab0ac8e',
			'player_id' : '6417a2a2eb8b300090356d0f0c4f8a4c'
		}
	},

	// 100_journalstar.com
	'100_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '0e702d59ea6c608fea4f55dd30c791b1',
			'player_id' : '5f850c8ab8518d14cc8bc0f6eaa403e0'
		}
	},

	// 101_pantagraph.com
	'101_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '9a241aa6c25b830e500bf5d93fc48266',
			'player_id' : 'ef080cfb56725e6ed9c805ccb3f29dd9'
		}
	},

	// 102_heraldextra.com
	'102_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '889013907b7f5476077cc36941a898ad',
			'player_id' : '570c8a736a93f0892a6ee416fe67acac'
		}
	},

	// 103_nwitimes.com
	'103_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '3be7dd193748fcc70be86f25fe8999aa',
			'player_id' : 'f18340bdaa4b78989a9a2d32a4469be1'
		}
	},

	// 104_billingsgazette.com
	'104_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'edd1035f8e4d5bb198609889ee94679d',
			'player_id' : '34d13a3b45dd143f54a22d204523a114'
		}
	},

	// 105_lacrossetribune.com
	'105_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'b2c3f812e53b4304b208e7fbf990373f',
			'player_id' : 'ff0dec9f498a182d1ad5661afbdfdfb0'
		}
	},

	// 106_qctimes.com
	'106_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '136804401a4eec0dca493433bc32c4ef',
			'player_id' : '33cff98dea2f1c636415328e9b1ab64d'
		}
	},

	// 107_missoulian.com
	'107_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e42e490177482aaf1a0762b83df56ca6',
			'player_id' : 'c8fd63d0d45c63d937354f89880b5944'
		}
	},

	// 108_bismarcktribune.com
	'108_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '481353df713e2eac624fc86efbfdd2e5',
			'player_id' : '0f433cbce0b1c71e7225905787eb0262'
		}
	},

	// 109_herald-review.com
	'109_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'd3bb9ac183c45ec6aa2ceb7dfc2272c3',
			'player_id' : '56839dd68039c81a777fa4c1669f5f79'
		}
	},

	// 110_thesouthern.com
	'110_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e74dbd1a684a87affede71c3be211fa6',
			'player_id' : 'dc95a7ae1fad5130c645b9e4bccf52cf'
		}
	},

	// 111_wcfcourier.com
	'111_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'a2ecb1bc64553b90bf3ded4b46233f89',
			'player_id' : 'f036c451a07eb0fb950d2e5cc123e2f8'
		}
	},

	// 112_siouxcityjournal.com
	'112_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'fd76dc7b844a22bed6e68f1d66343943',
			'player_id' : 'fc234e4b525c9a39bb97e707c6ec0275'
		}
	},

	// 113_rapidcityjournal.com
	'113_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '8fbd6234fba3f143874a3bc3ad9f6041',
			'player_id' : '3bde29f69b79a4e2f6496393a8e9200c'
		}
	},

	// 114_poststar.com
	'114_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'fd73b4257588a59c6b2779710ea135bf',
			'player_id' : '94855c900b01811d47ad95c249c72281'
		}
	},

	// 115_napavalleyregister.com
	'115_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e604dd959fc0798574ae2d6579d60067',
			'player_id' : '73b6e22b386ab4747f2108947070a14c'
		}
	},

	// 116_globegazette.com
	'116_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '833fa1cf5554f9790780e80e42843c5c',
			'player_id' : 'c6c0492a500d528d432addcba333e75e'
		}
	},

	// 117_magicvalley.com
	'117_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '638b9f6664010ef6da1d02fe28a77bf3',
			'player_id' : 'bfd80611923ace09a001348486ed171f'
		}
	},

	// 118_santamariatimes.com
	'118_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e94972606d6e159eeaa00d79e2b0150d',
			'player_id' : '2e788a7459bda2c9293eff7084fbe06b'
		}
	},

	// 42_kansascity.com
	'42_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'b0bb3e937469a374e9b7f6c298a43bf4',
			'player_id' : 'b16e75586b0c719245875b66cb895e1e'
		}
	},

	// 33_adn.com
	'33_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'a5314735cfde34d93ed673d9a8fa8f56',
			'player_id' : '3352e505daff04ed61da0aa5fdb6de92'
		}
	},

	// 242_gazettetimes.com
	'242_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '4c2260d41395e454c3f9223be2a5ac3c',
			'player_id' : '17e32f5cd802c3e87fb80052a71e3150'
		}
	},

	// 243_democratherald.com
	'243_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'c4548c35cd8ff3f6e694c1a859373b7a',
			'player_id' : '1f10abf089063f1ee64e657e3abcc01d'
		}
	},

	// 245_suburbanjournals.stltoday.com
	'245_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '858a81764dd528a2819fd3b6330d5f39',
			'player_id' : '74ff59f92d0c3838926f629284229540'
		}
	},

	// 281_dailyjournalonline.com
	'281_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '5f6ea863ca2591505e6ec999df75a01b',
			'player_id' : '750060c0556202b81787f6c40d0d0298'
		}
	},

	// 370_helenair.com
	'370_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '0d21b8180164886d1258ab7c9ac2c036',
			'player_id' : '71d53eefc5134ca4c5565ba768af26b0'
		}
	},

	// 372_hanfordsentinel.com
	'372_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'f0f277041d2034b3585e551ca6a838ba',
			'player_id' : 'af764f83709d1e62c266732d9ed1c9d0'
		}
	},

	// 373_mtstandard.com
	'373_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '9e978d523a601f569a334de400eb1a5b',
			'player_id' : '955fd4849cbe5a0e6be9843ff791fb1d'
		}
	},

	// 376_elkodaily.com
	'376_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '8fe323cc2b53bfb9aff980bf3caa8e2a',
			'player_id' : 'a2ed3a0f13af5c1ea6864575aa15212a'
		}
	},

	// 377_thetandd.com
	'377_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'a9ad4563f2e303e3e25e3243e5de4d0a',
			'player_id' : '31fb20d7394c98630e13889ad6278369'
		}
	},

	// 378_wiscnews.com
	'378_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'ba67527f0259920eb73b008a1889b95b',
			'player_id' : 'ae06d029535195bb2e56a24d23b21154'
		}
	},

	// 382_chippewa.com
	'382_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'ecf02affd58bb58f0fb75615090bae3c',
			'player_id' : '55c96f14da8ab4193b7ae143cd82bd00'
		}
	},

	// 385_cumberlink.com
	'385_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e6d666c5f2d96730a58bcc38655bf9cf',
			'player_id' : 'd90e68a881101b27a7a280fe19b5555c'
		}
	},

	// 411_ravallirepublic.com
	'411_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '4460d59a7fdf8c9ce25f05f03f1317ee',
			'player_id' : 'fe44fa4a6cb6d6e5588fd2cdd28e814b'
		}
	},

	// 125_idahostatesman.com
	'125_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '6cf4625d1fb0ecf3869653133f39208c',
			'player_id' : '2c31a5549f35f0863319aace172f8397'
		}
	},

	// 138_mercedsunstar.com
	'138_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '1734427f0d89fec0c4ad3a9829051af7',
			'player_id' : 'c0c1151a93d7fae643cb0a058edda9e5'
		}
	},

	// 70_charlotte.com
	'70_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'eab0cbcabd81180059402a1d72bbd7b1',
			'player_id' : 'f945bec4d48038cf596ca2038d8d360c'
		}
	},

	// 44_newsobserver.com
	'44_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'd0aee8ceffc01a88c9c6a49d081ab9a7',
			'player_id' : 'e2768bdcaff45338bd8858a9c2e1062d'
		}
	},

	// 129_bradenton.com
	'129_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'fa69f06de8923123588a06067f1a1a64',
			'player_id' : 'f2d834ad7e2c0eefa63544509f98934e'
		}
	},

	// 130_belleville.com
	'130_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'ac0c3ce812d876d915b0645e0be92ab7',
			'player_id' : '16c777a758043081499929cf4e3c5194'
		}
	},

	// 25_fresnobee.com
	'25_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '16355070c0b26957b522798ac7b3b57a',
			'player_id' : '40282a68b1ce12a851f1bea5f4b56c08'
		}
	},

	// 134_tri-cityherald.com
	'134_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '5c046a835c54f129d8b06736793dc117',
			'player_id' : 'c6472136df7a3569ce664ca887f0b492'
		}
	},

	// 45_mcclatchydc.com
	'45_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '5d9cdfd81c1c09e4e18030564916e06f',
			'player_id' : 'f25a09ad367d777fb248b22eb191a105'
		}
	},

	// 41_lowcountrytoday.com
	'41_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : 'e38716c6f3ffc52cabbd7786ee9e9963',
			'player_id' : '262b1b965dfc8f434ce4d9b21e7ee277'
		}
	},

	// 137_islandpacket.com
	'137_default' : {
		'width' : 580,
		'height' : 664,
		'flashvars' : {
			'auth_token' : '8e698888761eb591a44c601844b5b420',
			'player_id' : '802fe030d67f6d17a58bff3e14a0a574'
		}
	},

	// 425_KOAS.com
	'425_default' : {
		'width' : 535,
		'height' : 600,
		'flashvars' : {
			'auth_token' : '2ffb20c433dafa3c4167e845831e9c52',
			'player_id' : '092b1ebdc5458220d80f7b45d4d62426'
		}
	},

	// 426_KVGS.com
	'426_default' : {
		'width' : 485,
		'height' : 700,
		'flashvars' : {
//			'player_height' : 230,
			'auth_token' : '45567dd30aef297456f58c0949d5e454',
			'player_id' : '676e5a4d9a6c25f3f0ad590a6fc276e0'
		}
	},

	// 27_theolympian.com
        '27_default' : {
                'width' : 485,
                'height' : 600,
                'flashvars' : {
			'auth_token' : 'c04082c3fa0dfdf788f928ae1592f890',
			'player_id' : 'd9513892725a58d018294ab4b96de865'
                }
        },

	// 363_Raycom-WLOX
        '363_default' : {
                'width' : 600,
                'height' : 600,
                'flashvars' : {
			'auth_token' : '1683be9827bee62106d214c00d26aa4b',
			'player_id' : '1355ccea3f06d9907ace2de4714e0200'
                }
        },

	// 458_JRC
        '458_default' : {
                'width' : 300,
                'height' : 450,
                'flashvars' : {
			'player_height' : 180,
			'auth_token' : 'c497df753c922a1f0d6660b3bb760078',
			'player_id' : '44189e3cd6cd1f8b8c90871f4ea1357a'
                }
        },

	// TRITON TEMPLATES
        // 521_boneradio.com_triton
        '521_boneradio.com_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_ktux.com_triton
        '521_ktux.com_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_area1079.com_triton
        '521_area1079.com_default' : {
		'triton' : true,
                'width' : 483,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_1029thebuzz.com_triton
        '521_1029thebuzz.com_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_wktg.com_triton
        '521_wktg.com_default' : {
		'triton' : true,
                'width' : 424,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_red1043.com_triton
        '521_red1043.com_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_rock106kxrr.com_triton
        '521_rock106kxrr.com_default' : {
		'triton' : true,
                'width' : 300,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_1039thebear.com_triton
        '521_1039thebear.com_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_kfma.com_triton
        '521_kfma.com_default' : {
		'triton' : true,
                'width' : 500,
                'height' : 600,
                'flashvars' : {
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        },

        // 521_triton
        '521_default' : {
		'triton' : true,
                'width' : 652,
                'height' : 600,
                'flashvars' : {
//			'orientation' : 'horizontal',
                        'auth_token' : '9ba5e5f7e50b007e1f38aa107f4997b8',
                        'player_id' : 'ddeafd064bcbea29ad2ed517434e3857'
                }
        }

}

function vmix_event_handler(event){
	if (event.type == 'video_load'){
		var media_title = vmix_player.call('getVideo').title;
		var media_id = vmix_player.call('getVideo').media_id;
		vmix_tracking_string = "/"+pid+"/"+media_id+"/"+media_title;
	}
	if (event.type == 'video_start'){
//		pageTracker._trackPageview(vmix_tracking_string+'/start/');
	}
}

function render_vmix_player(params){
	onDOMLoad( function(){
		if (!params.player_id || !params.target_id){
			return false;
		} else {
			pid = params.player_id;
		}

		if (players[pid]){
			var str = '<div id="vmix_player"></div>';
	                document.getElementById(params.target_id).innerHTML = str;
		}

		// break the pid into partner_id and genre_id
		var pid_pieces = pid.split('::');
		var partner_id = pid_pieces[0];
		var genre_id = pid_pieces[1];

		// :: as a token was problematic so let's use _ instead
		eval('partner_default = players["'+partner_id+'_default"]');

		// load defaults
		var background = players['default'].bgcolor;
		var flashvars = players['default'].flashvars;
		var width = players['default'].width;
		var height = players['default'].height;

		// load partner specific defaults
		if (players[partner_id+'_default']){
			background = players[partner_id+'_default'].bgcolor;
			flashvars = object_merge(flashvars, players[partner_id+'_default'].flashvars);
			width = players[partner_id+'_default'].width;
			height = players[partner_id+'_default'].height;
		}

		// load partner AND genre specific values
		if (players[partner_id+'_'+genre_id]){
			background = players[partner_id+'_'+genre_id].bgcolor;
			flashvars = object_merge(flashvars, players[partner_id+'_'+genre_id].flashvars);
			width = players[partner_id+'_'+genre_id].width;
			height = players[partner_id+'_'+genre_id].height;
		}

                // custom behavior for triton deal to rotate highlighted/selected day of week for current day of week
                if (players[partner_id+'_default'].triton == 1 || (players[partner_id+'_'+genre_id] && players[partner_id+'_'+genre_id].triton == 1)){
	                var today = new Date();
			day_of_week = today.getDay();
			switch (day_of_week){
				case 1:
                                	genre_id = 'triton_mon';
					break;
                        	case 2:
                                	genre_id = 'triton_tue';
                                	break;
                        	case 3:
                                	genre_id = 'triton_wed';
                                	break;
                        	case 4:
                                	genre_id = 'triton_thu';
                                	break;
                        	default:
                                	genre_id = 'triton_fri';
                                	break;
                	}
		}

		// look up and associate the proper collection id based on the category they passed in via pid (probably shouldn't have called this genre, confusing)
                eval('flashvars.collection_id = '+genre_id+'_cid');


		var flashparams = {menu: 'false', wmode: 'transparent', allowscriptaccess: 'always', allowfullscreen: 'true', quality: 'high', bgcolor: background, menu: 'false', swliveconnect: 'true'};
		swfobject.embedSWF("http://cdn-akm.vmixcore.com/core-flash/PlaylistPlayer/PlaylistPlayer.swf", "vmix_player", width, height, "9.0.0","expressInstall.swf", flashvars, flashparams, {id: 'vmix_player', name: 'vmix_player'});
	});
}

function object_merge(destination, source){
	for (i in source){
		destination[i] = source[i];
	}
	return destination;
}

document.write('<scr'+'ipt type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></scr'+'ipt>');
