// Namespace object for Music-Downloadshop functions
var ms247  = new Object();
ms247.isIE = !jQuery.support.opacity; // IE uses alpha filters, so this is false for IE

/******* CONTEXT */
ms247.Settings 							= new Object();
ms247.Settings.Coverflow_Width 			= "504";
ms247.Settings.Coverflow_Height			= "186";
ms247.Settings.FlashMusicPlayerWidth  	= "755";
ms247.Settings.FlashMusicPlayerHeight 	= "490";
ms247.Settings.PriceImageServer 		= "image.redblue.de"; // TODO: read from config.xml
ms247.Settings.FlashPriceImagePrefix 	= "http://" + ms247.Settings.PriceImageServer + "/price2.0/va";
ms247.Settings.FlashPriceImageSuffix 	= "/slNL-MM/dfpng_ftEUR0000,00/ys24_bild.png";  // TODO: read from config.xml
var defaultSettings = { distanceX: 10, distanceY: -45 }; // used for tooltips confirming an action
//var defaultSettings = { distanceX: 145, distanceY: -45 }; // used for tooltips confirming an action
var defaultErrorTooltipSettings = { distanceX: 10, distanceY: -45 };
ms247.mustLoginDisablesPageUsingOverlay = true;
/**************************************************************************************************/

/*****************
 * GENERAL SETUP *
 *****************/
// do not cache any ajax call!
jQuery.ajaxSetup({
	cache: false/*,
	scriptCharset: 'iso-8859-15',
	contentType: 'application/x-www-form-urlencoded; charset=iso-8859-15'*/
});

jQuery.fn.exists = function(){return jQuery(this).length>0;}

/** CHECKOUT *****/
//Namespace Object for Music-Downloadshop Checkout
ms247.Checkout = new Object();

//This can also direct the user to a different page (e.g. for promotional products)
ms247.Checkout.DirectUserToPaymentPage = function(nextStepUrl) {
	if (!ms247.SSOClientMCS.isUserLoggedIn()) {
		ms247.SSOClientMCS.mustLoginFirst();
		return false;
	}
	window.location.href = nextStepUrl;
}

