//
// Client IDS
// Defines the CLIENT_ID (AppID's) of the OAuth2 providers
// relative to the domain host where this code is presented.

var location_https = window.location.href.indexOf('https://') === 0;


// Register your domain with Facebook at  and add here
var FACEBOOK_CLIENT_ID = {
	'adodson.com' : '160981280706879',
	'local.knarly.com' : '285836944766385',
	'mrswitch.github.com' : '304672569582045'
}[window.location.hostname];

// Register your domain with Windows Live at http://manage.dev.live.com and add here
var WINDOWS_CLIENT_ID = {
	'adodson.com' : '00000000400D8578',
	'mrswitch.github.com' : '0000000044088105',
	'local.knarly.com' : '000000004405FD31'
}[window.location.hostname];


// Google Register --  https://console.developers.google.com
var GOOGLE_CLIENT_ID = '656984324806-sr0q9vq78tlna4hvhlmcgp2bs2ut8uj8.apps.googleusercontent.com';

// To make it a little easier
var CLIENT_IDS = {
	windows : WINDOWS_CLIENT_ID,
	google : GOOGLE_CLIENT_ID,
	facebook : FACEBOOK_CLIENT_ID
};

// Dropbox full 't5s644xtv7n4oth'... requires production authentication
var DROPBOX_CLIENT_ID = '1lkagy1bz7h2uhl';

// LinkedIn Register - https://www.linkedin.com/secure/developer
var LINKEDIN_CLIENT_ID = 'bixrjszkfk0j'; // 'exgsps7wo5o7'

var YAHOO_CLIENT_ID = {
	'local.knarly.com' : 'dj0yJmk9cjVDdHlDaGtrbldJJmQ9WVdrOVYyZFhSWE4yTm04bWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1jOA--',
	'adodson.com' : 'dj0yJmk9dkVoREN1R3BLTThhJmQ9WVdrOVYyNUpORXRXTnpZbWNHbzlNQS0tJnM9Y29uc3VtZXJzZWNyZXQmeD1mNw--'
}[window.location.hostname];

var TWITTER_CLIENT_ID = {
	'local.knarly.com' : 'krGNvpEVVBE27jcemC6uA',
	'adodson.com' : 'eQuyZuECKWPiv3D7E4qdg'
}[window.location.hostname];


// SoundCloud Register - http://soundcloud.com/you/apps/
var SOUNDCLOUD_CLIENT_ID = {
	'local.knarly.com' : '8a4a19f86cdab097fa71a15ab26a01d6',
	'adodson.com' : location_https ? 'eacfb4d662e046c19e53c9e44bf7f7b7' : '47a386647dadf913e559c12ef6db4292'
}[window.location.hostname];

// FourSquare Register - https://foursquare.com/developers/apps
var FOURSQUARE_CLIENT_ID = {
	'local.knarly.com' : '3HEXMBQVH2SV0VXUKXOGQRPWH1PUTEIZN4KBDY5L54ZDXCDP',
	'adodson.com' : 'MFRXCJP1TKMUSYC2JBYU50L0IH0GJP1HTNS1BV0ML3NNXG5B'
}[window.location.hostname];

// Github Register - https://github.com/settings/applications
var GITHUB_CLIENT_ID = {
	'local.knarly.com' : 'ca7e06a718b2e8eef737',
	'adodson.com' : location_https ? 'c379ed1ef504fccfa85c' : 'd934ef34e2e40cf9b00a'
}[window.location.hostname];

// Instagram Register - http://instagram.com/developer/clients/manage/
var INSTAGRAM_CLIENT_ID = {
	'local.knarly.com' : 'bfbbf362ac3148aeb1150e5b8256bbe9',
	'adodson.com' : location_https ? 'e47d210f864c4b1ca94225ddab97205a' : '264d13a33ba845f396a152cc326e6f5d'
}[window.location.hostname];


var FLICKR_CLIENT_ID = {
	'local.knarly.com' : '46dfea40b0f9d3765bc598966b5955d3',
	'adodson.com' : '8d7cfb86e6d6bfab49579c3bfdb95796'
}[window.location.hostname];

// join.me Register - https://developer.join.me
var JOINME_CLIENT_ID = 'myenm7aw34dbgejhuw4sv8zz';

// To make it a little easier
var CLIENT_IDS_ALL = {
	windows : WINDOWS_CLIENT_ID,
	google : GOOGLE_CLIENT_ID,
	facebook : FACEBOOK_CLIENT_ID,
	dropbox : DROPBOX_CLIENT_ID,
	twitter : TWITTER_CLIENT_ID,
	yahoo : YAHOO_CLIENT_ID,
	instagram : INSTAGRAM_CLIENT_ID,
	linkedin : LINKEDIN_CLIENT_ID,
	soundcloud : SOUNDCLOUD_CLIENT_ID,
	foursquare : FOURSQUARE_CLIENT_ID,
	github : GITHUB_CLIENT_ID,
	flickr: FLICKR_CLIENT_ID,
	vk: VK_CLIENT_ID
};

var TUMBLR_CLIENT_ID = {
	'local.knarly.com' : '1odTR4hLo2oAoPlIoGN8O60d1tUw0CsZGdysFFPikX7APlcXlN',
	'adodson.com' : 'BHKkYCvKt33lL34iM1yWUhkYRw1lqwifbKKTfgh5FAX5uBzzxn'
}[window.location.hostname];

var VK_CLIENT_ID = '4998483';

//
// OAUTH PROXY
//
var OAUTH_PROXY_URL = {
	'local.knarly.com' : 'http://local.knarly.com:5500/proxy'
}[window.location.hostname] || 'https://auth-server.herokuapp.com/proxy';

@@ -3689,17 +3689,83 @@
 D = 
-'4998483'
+%7B%0A%09'local.knarly.com' : '',%0A%09'adodson.com' : ''%0A%7D%5Bwindow.location.hostname%5D
 ;%0A%0A/

Update vk client id