//
// Set the account name according to our domain
//
var sURL = window.location.href.toLowerCase();
var s_accountName;
if ( ( sURL.indexOf( 'photoshop.com' ) != -1 ) || ( sURL.indexOf( 'storage.adobe.com' ) != -1 ) )
{
	s_accountName= 'mxmacromedia,mxpxprod';
}
else
{
	s_accountName= 'mxpxqa';
}


//
// Set the channe depending on RIA versus Landing Page
//
var s_channel;
if ( ( typeof( appName ) != "undefined" ) && ( typeof( appLanding ) != "undefined" ) && ( appName == appLanding ) )
	s_channel = "Photoshop.com Landing";
else
	s_channel = "Photoshop.com";


//
// Handle the case where URL contains "/user/", and we go to the landing page HTML, not the RIA HTML
//
if ( ( sURL.indexOf( '/user/' ) != -1 ) )
	s_channel += ": Personal URL, Not Signed In";
	
var s_wd = window, s_tm = new Date;
if ( s_code != ' ' )
{
	if (typeof(isWrapper) == "undefined")	// We are NOT running the RIA or the Flash Landing Page or the Non-Flash Landing Page 
	{
		s_code = s_dc( s_accountName );
		if (s_code)
			document.write( s_code )
	}
	else									// We ARE running the RIA or the Flash Landing Page or the Non-Flash Landing Page 
	{
		s_wds(s_accountName);
		s_ca(s_accountName); 
	}
}
