/* Globals
/ Major version of Flash required */
var requiredMajorVersion = 9;
/* Minor version of Flash required */
var requiredMinorVersion = 0;
/* Minor version of Flash required */
var requiredRevision = 28;
/* Version check for the Flash Player that has the ability to start Player Product Install (6.0r65) */
var hasProductInstall = DetectFlashVer(6, 0, 65);
/* Version check based upon the values defined in globals */
var hasRequestedVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);
/* Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback */
if ( hasProductInstall && !hasRequestedVersion ) {
/* MMdoctitle is the stored document.title value used by the installation process to close the window that started the process
This is necessary in order to close browser windows that are still utilizing the older version of the player after installation has completed
DO NOT MODIFY THE FOLLOWING FOUR LINES
Location visited after installation is complete if installation is required */
var MMPlayerType = (isIE == true) ? "ActiveX" : "PlugIn";
var MMredirectURL = window.location;
document.title = document.title.slice(0, 47) + " - Flash Player Installation";
var MMdoctitle = document.title;
AC_FL_RunContent(
"src", "playerProductInstall",
"FlashVars", "MMredirectURL="+MMredirectURL+"&MMplayerType="+MMPlayerType+"&MMdoctitle="+MMdoctitle+"&mapSource=/cs/sociomap/last_fm/Maki89/data/c878a234603567ce48d321332a098bba.xml",
"width", "788",
"height", "700",
"align", "top",
"id", "smx_reader",
"quality", "high",
"bgcolor", "#ffffff",
"name", "smx_reader",
"allowScriptAccess", "sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"allowFullScreen", "true",
"menu", "false",
"salign", "t",
"loop", "false",
"scale", "exactfit",
"wmode", "",
"element", "flashcontentsmx_reader"
);
} else if (hasRequestedVersion) {
/* if we've detected an acceptable version
embed the Flash Content SWF when all tests are passed */
AC_FL_RunContent(
"src", "/static/swf/SociomapViewer",
"FlashVars", "mapSource=/cs/sociomap/last_fm/Maki89/data/c878a234603567ce48d321332a098bba.xml",
"width", "788",
"height", "700",
"align", "top",
"id", "smx_reader",
"quality", "high",
"bgcolor", "#ffffff",
"name", "smx_reader",
"allowScriptAccess","sameDomain",
"type", "application/x-shockwave-flash",
"pluginspage", "http://www.adobe.com/go/getflashplayer",
"allowFullScreen", "true",
"menu", "false",
"salign", "t",
"loop", "false",
"scale", "exactfit",
"wmode", "",
"element", "flashcontentsmx_reader"
);
} else { /* flash is too old or we can't detect the plugin */
var alternateContent = 'Pro plnohodnotné zobrazní potřebujete aktuální verzi přehrávače Adobe Flash Player'
+ 'Stáhnout si jej můžete na adrese'
+ 'Get Flash';
document.write(alternateContent); /* insert non-flash content */
}
var script;
if((script = document.getElementById('noscript')) != null)
script.parentNode.removeChild(script);
Last.fm Friends Sociomap
if (calendars.length != null && calendars.length > 0) {
calendars.each( function(cal) {
if (cal != null) {
var now = new Date();
cal['obj'] = new CalendarPopup(cal['name']+'_id');
now.setDate(now.getDate()-1);
if (cal['fromToday'])
{
cal['obj'].addDisabledDates(null,formatDate(now, 'yyyy-MM-dd'));
}
cal['obj'].setCssPrefix('date-');
cal['obj'].setWeekStartDay(1);
cal['obj'].setMonthNames(
cal['months'][0]
,cal['months'][1]
,cal['months'][2]
,cal['months'][3]
,cal['months'][4]
,cal['months'][5]
,cal['months'][6]
,cal['months'][7]
,cal['months'][8]
,cal['months'][9]
,cal['months'][10]
,cal['months'][11]
);
cal['obj'].setDayHeaders(
cal['days'][0]
,cal['days'][1]
,cal['days'][2]
,cal['days'][3]
,cal['days'][4]
,cal['days'][5]
,cal['days'][6]
);
cal['obj'].setTodayText(cal['today']);
var a = $(cal['name']+'_anchor');
var inp = $E('input[name='+cal['name']+']');
a.addEvent('click', function(e) {
e = new Event(e).stop();
if (cal['obj'] != null) {
cal['obj'].select(inp, cal['name']+'_anchor', 'dd. MM. yyyy');
}
});
}
});
}

