var bikemoments_feed = {
	init:function(){
		var a = document.getElementById('BM_LINK');
		if(a == null || a.href != 'http://www.bikemoments.com/'){ 
			alert('The Code for the Bikemoments Widget is Invalid!') 
			return;
		}
		
		var iframe = document.createElement("IFRAME");
			
		BIKEMOMENTS_DESIGN = BIKEMOMENTS_DESIGN + '';
		
		switch(BIKEMOMENTS_DESIGN){
			case '1':
			iframe.setAttribute('width','592');
			iframe.setAttribute('height','435');
			break;	
			case '2':
			iframe.setAttribute('width','252');
			iframe.setAttribute('height','390');
			break;
			default:
			break;
		}
		
		iframe.setAttribute('allowTransparency','true');
		iframe.setAttribute('frameBorder','0');
		iframe.setAttribute('scrolling','no');
		iframe.setAttribute('src','http://www.bikemoments.com/fixture/api/index.cfm?feedid=' + BIKEMOMENTS_FEED + '&KEY=' + BIKEMOMENTS_KEY + '&designID=' + BIKEMOMENTS_DESIGN);
		var container = document.getElementById('BM_FEED');
		container.innerHTML = '';
		container.appendChild(iframe);
		return;
	}
}
bikemoments_feed.init();