Figment.Import( 'Figment.EventHandler',Figment.getJSRoot() + "_framework/" );
Figment.Import( 'Figment.DOM',Figment.getJSRoot() + "_framework/" );

function getObject(id) {
   if (document.getElementById(id)) {
     return document.getElementById(id);
   } else {
     return window.document[id];
   }
}


Figment.Namespace('Disney.DLR.IBC.ShopAndCompare.Events');

Disney.DLR.IBC.ShopAndCompare.Events = {

main:function(evt){



	var objLinkShopAndCompare = getObject('savedOffersLabel');

	if( objLinkShopAndCompare != null ) {

		Figment.EventHandler.addEvent( objLinkShopAndCompare,'click',Disney.DLR.IBC.ShopAndCompare.Events.EVENT_ShopAndCompare_onClick );
	}

},


EVENT_ShopAndCompare_onClick:function(evt){

	document.columnLeft_Form.strRetrieveShop.value='ShopAndCompare';

	document.columnLeft_Form.submit();

}

};


Figment.EntryPoint.add( Disney.DLR.IBC.ShopAndCompare.Events );