	 
switch(SiteVars.islandId){
  case 'statewide':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/TIO_Hawaii-Brushstroke Logo_rgb.jpg';
    break
  case 'kauai':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/KVB09_CMYK_3in.jpg';
    break
  case 'oahu':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/OVB_CMYK_3 in.jpg';
    break
  case 'molokai':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/Molokai_logo_4C_2005.jpg';
    break
  case 'lanai':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/LVB_CMYK_3in.jpg';
    break
  case 'maui':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/MAUI_CMYK_3 in.jpg';
    break
  case 'big-island':
    SiteVars.modules.Gigya.pageSettings.img = '/images/public/hvcb/BIVB logo_tag_4C.jpg';
    break
}

function showShareBarUI() {
   
	// Constructing a UserAction Object
	var act = new gigya.services.socialize.UserAction();
	
	// Setting the default user message 
	// (will be presented as default text in the edit box on the Share UI)
	act.setUserMessage(SiteVars.modules.Gigya.phrases.setUserMessage);
	
	// Setting the title and description 
	// (will be presented in the preview on the Share UI)
	act.setTitle(SiteVars.modules.Gigya.pageSettings.title);
	act.setDescription(SiteVars.modules.Gigya.pageSettings.desc);
	
	// Setting a link back to the publishing source
	act.setLinkBack(location.href);
	
	// Adding Action Link
	act.addActionLink(SiteVars.modules.Gigya.pageSettings.title, location.href);
	
	var image = {
		src: SiteVars.modules.Gigya.pageSettings.link + SiteVars.modules.Gigya.pageSettings.img,
		href: location.href,
		type: SiteVars.modules.Gigya.pageSettings.type
	};	
	
	act.addMediaItem(image);
	
	var buttons = 'Facebook-Like';
	
	var ie7 = /MSIE (\d+\.\d+);/.test(navigator.userAgent) ? (Number(RegExp.$1) == 7 ? true : false) : false;
	!ie7 && (buttons += ',Google-plusone');
	
	// Define Share Bar plugin's Parameters  
	var shareBarParams= { 
		containerID: 'gigya-counts',
		shareButtons: buttons,
		iconsOnly: 'true',
		userAction: act
	};
	
	var shareBarParams2= { 
		containerID: 'gigya-icons',
		shareButtons: [ { 
			provider: 'Facebook',
			enableCount: 'false',
			iconImgUp:'./template_images/hvcb/gigya-share-fb.png'
		},
		{ 
			provider: 'Twitter',
			iconImgUp:'./template_images/hvcb/twitter.png'
		},
		{ 
			provider: 'Yahoo Bookmarks',
			enableCount: 'false',
			iconImgUp:'./template_images/hvcb/gigya-share-y!.png'
		},
		{ 
			provider: 'Email',
			iconImgUp:'./template_images/hvcb/gigya-share-email.png'
		},
		{ 
			provider: 'Share',
			enableCount: 'false',
			iconImgUp:'./template_images/hvcb/gigya-share-more.png'
		}
		],
		iconsOnly: 'true',
		userAction: act
	};

	  
	// Load Share Bar plugin  
	gigya.services.socialize.showShareBarUI({}, shareBarParams);
	gigya.services.socialize.showShareBarUI({}, shareBarParams2);	  
}

modules.loadActions.prototype.gigyaWidget = function(){	
	showShareBarUI();
}

