var stCookieChecker = {
	init:function() {
		if(this.hasPartnerCookies()) {
			this.destroyPartnerCookies();
		}
	},
	hasPartnerCookies:function() {
			for( var c in this.getPartnerCookieArray() ) {
				if ( cookie.get(this.getPartnerCookieArray()[c]) ) {
					return true;
				}
			}
			return false;
		},	
	getPartnerCookieArray:function() {
			// Same constants as com.soundstrue.Constants
			return ['STPartnerHome', 'STPartnerCode', 'STPartnerBackToUrl', 'STPartnerTimestamp'];
		},
	destroyPartnerCookies:function() {
			var destroyJsessionId = false;
			for( var c in this.getPartnerCookieArray() ) {
				if ( cookie.get(this.getPartnerCookieArray()[c]) ) {
					destroyJsessionId = true;
					cookie.destroy(this.getPartnerCookieArray()[c]);
				}
			}
		}	
};




