openoffice-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1340205 - in /incubator/ooo/ooo-site/trunk/content/download: download_new_dl_aoo.js download_new_mirrorbrain_aoo.js index_aoo.html
Date Fri, 18 May 2012 18:47:58 GMT
Author: marcus
Date: Fri May 18 18:47:58 2012
New Revision: 1340205

URL: http://svn.apache.org/viewvc?rev=1340205&view=rev
Log:
Reworked the DL scripts regarding some points like language, schema, deprecated code

Added:
    incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js   (with props)
    incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js   (with props)
    incubator/ooo/ooo-site/trunk/content/download/index_aoo.html   (with props)

Added: incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js?rev=1340205&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js (added)
+++ incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js Fri May 18 18:47:58 2012
@@ -0,0 +1,797 @@
+/*
+ * get mirror host
+ * depends on which mirror is ready to receive load
+ */
+
+function getMirrorHost() {
+	var mirrorHost   = "";
+	var randVal      = ( Math.random() * 100 );
+	var MIRROR_RATIO = MIRROR_RATIO_1;
+
+	/*document.write( "ASF is active: " + MIRROR_ASF_ACTIVE + "<br/>" );
+	document.write( "SF is active: "  + MIRROR_SF_ACTIVE  + "<br/>" );
+	document.write( "Mirror ratio: "  + MIRROR_RATIO      + " % <br/>" );
+	document.write( "Random value: "  + randVal           + "<br/><br/>" );*/
+
+	// Are Apache mirrors working?
+	if ( MIRROR_ASF_ACTIVE > 0 ) {
+		// If random value is lower than ratio
+        	if ( randVal < MIRROR_RATIO ) {
+			mirrorHost = "Apache";
+			//document.write ("Apache wins <br/>");
+			return MIRROR_APACHE_URL;
+		}
+	}
+	// Are SourceForge mirrors working?
+	if ( MIRROR_SF_ACTIVE > 0 ) {
+		// If random value is higher than ratio
+        	if ( randVal > MIRROR_RATIO ) {
+			mirrorHost = "SourceForge";
+			//document.write ("SourceForge wins <br />");
+			return MIRROR_SOURCEFORGE_URL;
+		}
+	}
+
+	document.write( "Regular download goes to: " + mirrorHost + "<br/>" );
+
+	// Defining fall back mirror host
+	if ( mirrorHost == "" ) {
+		// Are Apache mirrors working?
+		if ( MIRROR_ASF_ACTIVE > 0 ) {
+			mirrorHost = "Apache";
+		}
+
+		// Else are SourceForge mirrors working?
+		else if ( MIRROR_SF_ACTIVE > 0 ) {
+			mirrorHost = "SourceForge";
+		}
+
+		// None is working, we have a problem
+		else {
+			mirrorHost = "No mirror host active, what to do?";
+		}
+
+		//document.write( "Fall back download goes to: " + mirrorHost + "<br/>" );
+		//document.write( "<br/>" );
+	}
+
+	return mirrorHost;
+}
+
+function getMirrorHost_asf_sf_mb_percent() {
+	var mirrorHost   = "";
+	var randVal      = ( Math.random() * 100 );
+	var MIRROR_RATIO = MIRROR_RATIO_2;
+
+	/*document.write( "ASF is active: " + MIRROR_ASF_ACTIVE + "<br/>" );
+	document.write( "SF is active: "  + MIRROR_SF_ACTIVE  + "<br/>" );
+	document.write( "MB is active: "  + MIRROR_MB_ACTIVE  + "<br/>" );
+	document.write( "Mirror ratio: "  + MIRROR_RATIO      + " % <br/>" );
+	document.write( "Random value: "  + randVal           + "<br/><br/>" );*/
+
+	// Are Apache mirrors working?
+	if ( MIRROR_ASF_ACTIVE > 0 ) {
+		// If random value is lower than ratio
+        	if ( randVal < MIRROR_RATIO ) {
+			mirrorHost = "Apache";
+		}
+	}
+	// Are SourceForge mirrors working?
+	if ( MIRROR_SF_ACTIVE > 0 ) {
+		// If random value is higher than ratio and lower than ratio * 2
+        	if ( ( randVal > MIRROR_RATIO ) && ( randVal < ( MIRROR_RATIO * 2 ) ) ) {
+			mirrorHost = "SourceForge";
+		}
+	}
+
+	// Are MirrorBrain mirrors working?
+	if ( MIRROR_MB_ACTIVE > 0 ) {
+		// If random value is higher than ratio * 2
+        	if ( randVal > ( MIRROR_RATIO * 2 ) ) {
+			mirrorHost = "MirrorBrain";
+		}
+	}
+
+	document.write( "Regular download goes to: " + mirrorHost + "<br/>" );
+
+	// Defining fall back mirror host
+	if ( mirrorHost == "" ) {
+		// Are Apache mirrors working?
+		if ( MIRROR_ASF_ACTIVE > 0 ) {
+			mirrorHost = "Apache";
+		}
+
+		// Else are SourceForge mirrors working?
+		else if ( MIRROR_SF_ACTIVE > 0 ) {
+			mirrorHost = "SourceForge";
+		}
+
+		// Else are MirrorBrain mirrors working?
+		else if ( MIRROR_MB_ACTIVE > 0 ) {
+			mirrorHost = "MirrorBrain";
+		}
+
+		// None is working, we have a problem
+		else {
+			mirrorHost = "None, what to do?";
+		}
+
+		//document.write( "Fall back download goes to: " + mirrorHost + "<br/>" );
+		//document.write( "<br/>" );
+	}
+
+	return mirrorHost;
+}
+
+function getMirrorHost_asf_sf_mb_weighted() {
+	var mirrorHost    = "";
+	// get total weight of the weight array (here it is 6)
+	var weight        = eval( MIRROR_HOSTS_WEIGHT.join( "+" ) );
+	// multiply the random numbe with the total weight and round it down
+	var randVal       = Math.floor ( Math.random() * weight );
+	// Assign the random position of the weighted array
+	var mirrorHost = MIRROR_HOSTS_WEIGHTED [ randVal ];
+
+	/*document.write( "ASF is active: " + MIRROR_ASF_ACTIVE        + "<br/>" );
+	document.write( "MB is active: "  + MIRROR_MB_ACTIVE         + "<br/>" );
+	document.write( "SF is active: "  + MIRROR_SF_ACTIVE         + "<br/>" );
+	document.write( "ASF weight: "    + MIRROR_HOSTS_WEIGHT[ 0 ] + "<br/>" );
+	document.write( "MB weight: "     + MIRROR_HOSTS_WEIGHT[ 1 ] + "<br/>" );
+	document.write( "SF weight: "     + MIRROR_HOSTS_WEIGHT[ 2 ] + "<br/>" );
+	for ( i = 0; i < weight ; i++ )
+		document.write( "ASF weight: " + MIRROR_HOSTS_WEIGHTED[ i ] + "<br/>" );
+	document.write( "Total weight: "  + weight                   + "<br/>" );
+	document.write( "Random value: "  + randVal                  + "<br/>" );
+	document.write( "<br/>" );
+
+	document.write( "Regular download goes to: " + mirrorHost + "<br/>" );
+	*/
+
+	// Defining fall back mirror host
+
+	// Is Apache down?
+	if ( ( MIRROR_ASF_ACTIVE < 1 ) && ( mirrorHost == "Apache" ) )
+		mirrorHost = "MirrorBrain";
+
+	// Is MirrorBrain down?
+	else if ( ( MIRROR_MB_ACTIVE < 1 ) && ( mirrorHost == "MirrorBrain" ) )
+		mirrorHost = "SourceForge";
+
+	// Is SourceForge down?
+	else if ( ( MIRROR_SF_ACTIVE < 1 ) && ( mirrorHost == "SourceForge" ) )
+		mirrorHost = "MirrorBrain";
+
+	// Is Apache and MirrorBrain down?
+	if ( ( MIRROR_ASF_ACTIVE < 1 ) && ( MIRROR_MB_ACTIVE < 1 ) )
+		mirrorHost = "SourceForge";
+
+	// Is Apache and SourceForge down?
+	else if ( ( MIRROR_ASF_ACTIVE < 1 ) && ( MIRROR_SF_ACTIVE < 1 ) )
+		mirrorHost = "MirrorBrain";
+
+	// Is MirrorBrain and SourceForge down?
+	else if ( ( MIRROR_MB_ACTIVE < 1 ) && ( MIRROR_SF_ACTIVE < 1 ) )
+		mirrorHost = "Apache";
+
+	// None is working, we have a problem
+	if ( ( MIRROR_ASF_ACTIVE < 1 ) && ( MIRROR_MB_ACTIVE < 1 )
+	&& ( MIRROR_SF_ACTIVE < 1 ) )
+		mirrorHost = "None, what to do?";
+
+	//document.write( "Fall back download goes to: " + mirrorHost + "<br/>" );
+	//document.write( "<br/>" );
+
+	return mirrorHost;
+}
+
+function getMirrorHost_asf_sf_mb_weighted2() {
+	var mirrorHost = "";
+	var weight     = MIRROR_ASF_WEIGHT + MIRROR_MB_WEIGHT + MIRROR_SF_WEIGHT;
+	var randVal    = Math.random();
+/*
+	document.write( "ASF is active: "  + MIRROR_ASF_ACTIVE              + "<br/>" );
+	document.write( "MB is active: "   + MIRROR_MB_ACTIVE               + "<br/>" );
+	document.write( "SF is active: "   + MIRROR_SF_ACTIVE               + "<br/>" );
+	document.write( "ASF weight: "     + MIRROR_ASF_WEIGHT + " ");
+	document.write( "with threshold: " + ( MIRROR_ASF_WEIGHT / weight ) + "<br/>" );
+	document.write( "MB weight: "      + MIRROR_MB_WEIGHT + " ");
+	document.write( "with threshold: " + ( MIRROR_MB_WEIGHT / weight )  + "<br/>" );
+	document.write( "SF weight: "      + MIRROR_SF_WEIGHT + " ");
+	document.write( "with threshold: " + ( MIRROR_SF_WEIGHT / weight )  + "<br/>" );
+	document.write( "Total weight: "   + weight                         + "<br/>" );
+	document.write( "Random value: "   + randVal                        + "<br/>" );
+	document.write( "<br/>" );
+	*/
+
+	// Are Apache mirrors working?
+	if ( MIRROR_ASF_ACTIVE > 0 ) {
+		// If random value is lower than ASF weight divided by total weight
+        	if ( randVal < ( MIRROR_ASF_WEIGHT / weight ) ) {
+			mirrorHost = "Apache";
+		}
+	}
+
+	// Are MirrorBrain mirrors working?
+	if ( MIRROR_MB_ACTIVE > 0 ) {
+		// If random value is lower than SF weight divided by the total weight
+		// and higher than ASF weight divided by the total weight
+		if ( ( randVal > ( MIRROR_ASF_WEIGHT / weight ) )
+		&& ( randVal < ( MIRROR_SF_WEIGHT / weight ) ) ) {
+			mirrorHost = "MirrorBrain";
+		}
+	}
+
+	// Are SourceForge mirrors working?
+	if ( MIRROR_SF_ACTIVE > 0 ) {
+		// If random value is higher than MB weight divided by total weight
+        	if ( randVal > ( MIRROR_MB_WEIGHT / weight ) ) {
+			mirrorHost = "SourceForge";
+		}
+	}
+
+	//document.write( "Regular download goes to: " + mirrorHost + "<br/>" );
+
+	// Defining fall back mirror host
+	if ( mirrorHost == "" ) {
+		// Are Apache mirrors working?
+		if ( MIRROR_ASF_ACTIVE > 0 ) {
+			mirrorHost = "Apache";
+
+		// Else are MirrorBrain mirrors working?
+		} else if ( MIRROR_MB_ACTIVE > 0 ) {
+			mirrorHost = "MirrorBrain";
+
+		// Else are SourceForge mirrors working?
+		} else if ( MIRROR_SF_ACTIVE > 0 ) {
+			mirrorHost = "SourceForge";
+
+		// None is working, we have a problem
+		} else {
+			mirrorHost = "None, what to do?";
+		}
+
+		//document.write( "Fall back download goes to: " + mirrorHost + "<br/>" );
+		//document.write( "<br/>" );
+	}
+
+	return mirrorHost;
+}
+//old download.js added here
+
+/*
+ * get array for language
+ */
+function getArray( nl_language ) {
+	var language = "";
+
+	if ( nl_language != "" )
+		language = nl_language;
+	else if ( navigator.language )
+		language = navigator.language;
+	else if ( navigator.userLanguage )
+		language = navigator.userLanguage;
+	else if ( navigator.systemLanguage )
+		language = navigator.systemLanguage;
+
+	// Convert "en" to "en-US" as well since en-US build is the canonical
+	// translation, and thus better tested.
+	if ( !language || language == "" || language == "null" || language == "en" )
+		language = "en-US";
+
+	// Konqueror uses '_' where other browsers use '-'.
+	if ( language.indexOf( "_" ) != -1 ) {
+		language = language.split( "_" ).join( "-" );
+	}
+
+	language = language.toLowerCase();
+	var languageCode = language.split( "-" )[ 0 ];
+	var regionCode = language.split( "-" )[ 1 ];
+
+	var thisLanguageSet = languages[ languageCode ];
+	if ( thisLanguageSet == null ) {
+		// language code not found inside array
+		languageCode = "en";
+		regionCode = "us";
+		thisLanguageSet  = languages[ languageCode ];
+	}
+
+	if ( regionCode != null ) {
+		// found additional region code
+		if ( thisLanguageSet[ regionCode ] != null ) {
+			// choose langCode-regionCode
+			thisLanguage = thisLanguageSet[ regionCode ];
+		} else {
+			// choose default
+			thisLanguage = thisLanguageSet[ "-" ];
+			if ( languageCode == "en" ) {
+				// special case, default is en-US for en-XX
+				regionCode = "us";
+				thisLanguageSet  = languages[ languageCode ];
+				thisLanguage = thisLanguageSet[ regionCode ];
+			}
+		}
+	} else {
+		// choose default for none given region code
+		thisLanguage = thisLanguageSet[ "-" ];
+	};
+	return thisLanguage;
+}
+
+/*
+ * get language for user-language
+ */
+function getLanguage( nl_language ) {
+	var a = getArray( nl_language );
+	return a[ 1 ];
+}
+
+/*
+ * set language in order to avoid navigator language detection
+ */
+function setLanguage( language ) {
+	NL_LANGUAGE = language;
+}
+
+/*
+ * get language for user-language in ISO format
+ */
+function getLanguageISO( nl_language ) {
+	var language = "";
+
+	if ( nl_language != "" )
+		language = nl_language;
+	else if ( navigator.language )
+		language = navigator.language;
+	else if ( navigator.userLanguage )
+		language = navigator.userLanguage;
+	else if ( navigator.systemLanguage )
+		language = navigator.systemLanguage;
+
+	// Convert "en" to "en-US" as well since en-US build is the canonical
+	// translation, and thus better tested.
+	if ( language == "" || language == "null" || language == "en" )
+		language = "en-US";
+	if ( language == "pt" )
+		language = "pt-PT";
+
+	// Konqueror uses '_' where other browsers use '-'.
+	if ( language.indexOf( "_" ) != -1 )
+		language = language.split( "_" ).join( "-" );
+
+	language = language.toLowerCase();
+	var languageCode = language.split( "-" )[ 0 ];
+	var regionCode = language.split( "-" )[ 1 ];
+
+	var thisLanguageSet  = languages[ languageCode ];
+	if ( thisLanguageSet == null ) {
+		return "en-US";
+	} else if ( regionCode != null ) {
+		if ( regionCode == "pt" && languageCode == "pt" ) {
+			// fix for Port. pt-PT downloads named only pt without region code!
+			return languageCode;
+		}
+		if ( thisLanguageSet[ regionCode ] != null ) {
+			// choose langCode-regionCode
+			return languageCode + "-" + regionCode.toUpperCase();
+		} else {
+			// choose default
+			if ( languageCode == "en" ) {
+				// special case, default is en-US for en-XX
+				return "en-US";
+			} else
+			   return languageCode;
+		}
+	} else {
+		// choose default
+		return languageCode;
+	};
+}
+
+/*
+ * get flag for mirror link
+ * was old bouncer flag
+ * depends on array-list
+ */
+function hasMirrorLink( nl_language ) {
+	var a = getArray( nl_language );
+	var platform = getPlatform();
+	var schema = SCHEMA;
+
+	// alert ("schema: -" + schema +"-");
+	if ( schema == "aoo" ) {
+		platform = getPlatform( schema );
+	}
+	
+	// alert ("Platform: -" + platform +"-");
+	// first check for availability
+	 if ( platform == 'none' ) {
+		 return false;
+	 }
+	 
+	if ( a[ 4 ] == 'y' ) {
+		// special handling for MAC, links in combination with general flag a[4]
+		if ( platform.indexOf( "Mac" ) == -1 || a[ 5 ] == 'y' ) {
+			return true;
+		} else {
+			return false;
+		}
+	} else {
+		return false;
+	}
+}
+
+/*
+ * get link
+ * depends on array-list and download-set nameschema
+ */
+function getLink( version, nl_language, mirror, schema ) {
+	if ( mirror != null ) {
+		if ( mirror.indexOf( "mirrorbrain" ) > -1 ) {
+			return mirrorbrain_getLink( version, nl_language, schema );
+		} else if ( mirror.indexOf( "sourceforge" ) > -1 ) {
+			return sourceforge_getLink( version, nl_language, schema );
+		} else if ( mirror.indexOf( "apache")  > -1) {
+			return apache_getLink ( version, nl_language, schema );
+		} else {
+			return mirrorbrain_getLink( version, nl_language, schema );
+		}
+
+	}
+}
+
+/*
+ * get link setting link language instead of letting the script detect it
+ * depends on getLink( version, mirror, schema ) and setLanguage( lang )
+ */
+function getLinkWithLang( version, nl_language, mirror, schema ) {
+	setLanguage( nl_language );
+	return getLink( version, nl_language, mirror, schema );
+}
+
+
+/* getLink mods for new mirrors */
+
+function sourceforge_getLink( version, nl_language, schema ) {
+	var mirrorbrain_link = mirrorbrain_getLink( version, nl_language, schema );
+	var sf_link = mirrorbrain_link.replace( MIRROR_MIRRORBRAIN_URL, MIRROR_SOURCEFORGE_URL ) + '/download';
+	return sf_link;
+}
+
+function apache_getLink( version, nl_language, schema ) {
+	var mirrorbrain_link = mirrorbrain_getLink( version, nl_language, schema );
+	var apache_link = mirrorbrain_link.replace( MIRROR_MIRRORBRAIN_URL, MIRROR_APACHE_REF ) ;
+	return apache_link;
+}
+/*
+ * get platform of browser
+ * independant from mirror-system
+ */
+function getPlatform() {
+	if ( navigator.platform != null &&  String(navigator.platform) != "" ) {
+		if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+			return "Windows";
+		} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+			return "Windows";
+		} else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+			return "Windows";
+		} else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+			if ( navigator.platform.indexOf( "64" ) != -1 ) {
+				if ( navigator.userAgent != null ) {
+					if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+						return "Linux Debian 64-bit (DEB)";
+					} else {
+						return "Linux 64-bit (RPM)";
+					}
+				} else {
+					return "Linux 64-bit (RPM)";
+				}
+			} else {
+				if ( navigator.userAgent != null ) {
+					if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+						return "Linux Debian 32-Bit (DEB)";
+					} else {
+						return "Linux 32-Bit (RPM)";
+					}
+				} else {
+					return "Linux 32-Bit (RPM)";
+				}
+			}
+		} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+			return "Solaris x86";
+		} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+			return "Solaris SPARC";
+		} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+			return "Solaris SPARC";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+			    navigator.platform.indexOf( "Intel" ) != -1 ) {
+			return "Mac OS Intel";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+			    navigator.platform.indexOf( "PPC" ) != -1 ) {
+			return "Mac OS PPC";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+			return "Mac OS Intel" ;
+		} else if ( navigator.platform.indexOf( "iPad" ) != -1 ||
+			    navigator.platform.indexOf( "iPhone" ) != -1 ||
+			    navigator.platform.indexOf( "iPod" ) != -1 ) {
+			// this code will redirect the iPad, iPhone and iPod entries
+			return "Mac OS Intel" ;
+		} else if ( navigator.platform.indexOf( "Series60" ) != -1 ) {
+			// this code will redirect the Series60 entries
+			return "Windows" ;
+		} else if ( navigator.platform.indexOf( "null" ) != -1 ) {
+			return "Windows" ;
+		} else {
+			// return platform name
+			return "no_platform";
+		}
+	}
+	return "Windows";
+}
+
+/* for customizing platforms for various schemas/release */
+function getPlatform( schema ) {
+	if ( schema == "aoo" ) {
+		if ( navigator.platform != null &&  String( navigator.platform ) != "" ) {
+			if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+				return "Windows";
+			} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+				return "Windows";
+			} else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+				return "Windows";
+			} else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+				if ( navigator.platform.indexOf( "64" ) != -1 ) {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux Debian 64-bit (DEB)";
+						} else {
+							return "Linux 64-bit (RPM)";
+						}
+					} else {
+						return "Linux 64-bit (RPM)";
+					}
+				} else {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux Debian 32-Bit (DEB)";
+						} else {
+							return "Linux 32-Bit (RPM)";
+						}
+					} else {
+						return "Linux 32-Bit (RPM)";
+					}
+				}
+			} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+				return "none";
+			} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+				return "none";
+			} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+				return "none";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				    navigator.platform.indexOf( "Intel" ) != -1 ) {
+				return "Mac OS Intel";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				    navigator.platform.indexOf( "PPC" ) != -1 ) {
+				return "none";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+				return "Mac OS Intel" ;
+			} else if ( navigator.platform.indexOf( "iPad" ) != -1 ||
+				    navigator.platform.indexOf( "iPhone" ) != -1 ||
+				    navigator.platform.indexOf( "iPod" ) != -1 ) {
+				// this code will redirect the iPad, iPhone and iPod entries
+				return "Mac OS Intel" ;
+			} else if ( navigator.platform.indexOf( "Series60" ) != -1 ) {
+				// this code will redirect the Series60 entries
+				return "Windows" ;
+			} else if ( navigator.platform.indexOf( "null" ) != -1 ) {
+				return "Windows" ;
+			} else {
+				// return platform name
+				return "no_platoform";
+			}
+		}
+	}
+	// if navigator.platform is null or empty
+	// and if no schema is set, fall through if nothing else works
+	return "no_platform";
+}
+
+/*
+ * get platform for bouncer-link
+ * must be changed
+ */
+function getPlatformForMirror() {
+	return bouncer_getPlatformForMirror();
+}
+
+/*
+ * deprecated
+ * must be changed
+ */
+function getPlatformForBouncer() {
+	return getPlatformForMirror();
+}
+
+/*
+ * get tupel for tracking
+ */
+function getTupel( href ) {
+    if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+		return bouncer_getTupel( href );
+	} else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		return mirrorbrain_getTupel( href );
+	}
+	return "";
+}
+
+/*
+ * get product name for tracking
+ */
+function getProduct( href ) {
+	var retVal = "";
+
+	if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+		return bouncer_getProduct( href );
+	} else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		return mirrorbrain_getProduct( href );
+	}
+	return retVal;
+}
+
+/*
+ * get language code for tracking
+ */
+function getLang( href ) {
+	var retVal = "";
+
+	if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+		return bouncer_getLang( href );
+	} else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		return mirrorbrain_getLang( href );
+	}
+	return retVal;
+}
+
+/*
+ * get os for tracking
+ */
+function getOS( href ) {
+	var retVal = "";
+
+	if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+		return bouncer_getOS( href );
+	} else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		return mirrorbrain_getOS( href );
+	}
+	return retVal;
+}
+
+/*
+ * get version for tracking
+ */
+function getVersion( href ) {
+	var retVal = "";
+
+	if ( href.indexOf( "?" ) > 0 && href.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+		return bouncer_getVersion( href );
+	} else if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		return mirrorbrain_getVersion( href );
+	}
+	return retVal;
+}
+
+function continueToDownload( uri ) {
+	uri = uri.replace( MIRROR_BOUNCER_URL, "" );
+	document.location = "http://download.openoffice.org/contribute.html" + uri;
+	//absolute to for use at other subdomains
+}
+
+function continueToDownloadTwo( uri ) {
+	uri = uri.replace("http://openoffice.bouncer.osuosl.org/","");
+	document.location = "http://download.openoffice.org/contribute.html" + uri;
+}
+
+function openItem( itemid, uri ) {
+	var thisDocument = document.getElementById("downloadextendedtext");
+	var thisDocument = document.getElementById(itemid);
+
+	if ( ( itemid=="optionitem1" ||
+	       itemid=="optionitem5" ||
+	       itemid=="optionitem6" ||
+	       itemid=="optionitem7" ||
+	       itemid=="optionitem8" ) &&
+	       uri.indexOf( MIRROR_BOUNCER_URL ) > -1 ) {
+
+		uri = uri.replace( MIRROR_BOUNCER_URL + "?","");
+		uri = "http://download.openoffice.org/contribute.html?download=bouncer&" + escape( uri );
+	} else if ( ( itemid=="optionitem1" ||
+		      itemid=="optionitem5" ||
+		      itemid=="optionitem6" ||
+		      itemid=="optionitem7" ||
+		      itemid=="optionitem8" ) &&
+		      uri.indexOf( MIRROR_MIRRORBRAIN_URL ) > -1 ) {
+
+		uri = uri.replace( MIRROR_MIRRORBRAIN_URL, "");
+		uri = "http://download.openoffice.org/contribute.html?download=mirrorbrain&" + escape( uri );
+	}
+	document.location = uri;
+	// start( uri );
+};
+
+function makeDownloadLIintoButtons() {
+	var downloadextendedtext = document.getElementById( "downloadextendedtext" );
+	var liItems = downloadextendedtext.getElementsByTagName("li");
+
+	for (var i = 0; i < liItems.length; i++) {
+		var liItemsAnchors = liItems[i].getElementsByTagName("a");
+		if (liItemsAnchors.length == 1) {
+			var hrefcontents = liItemsAnchors[0].href;
+			if (hrefcontents.search( "bouncer" ) > -1 || hrefcontents.search( MIRROR_MIRRORBRAIN_URL ) > -1) {
+				liItems[i].onclick = function () {
+					var myHref = this.getElementsByTagName("a")[0].href;
+					continueToDownload(myHref);
+					return false;
+				};
+			} else {
+				liItems[i].onclick = function () {
+					var myHref = this.getElementsByTagName("a")[0].href;
+					document.location = myHref;
+					return false;
+				};
+			}
+			liItems[i].style.cursor = "pointer";
+		}
+	}
+}
+
+function start( uri ) {
+	alert( 'Go to OpenOffice.org ' + uri );
+
+}
+function doLoad( uri ) {
+	// the timeout value should be the same as in the "refresh" meta-tag
+	setTimeout( "download('" + uri + "')", 2*1000 );
+}
+
+function download( uri ) {
+	// starting the download
+	window.location.href = uri;
+}
+
+function startDownload() {
+	var s = window.location.search;
+	i = s.indexOf( "download=" );
+	if ( i > -1 ) {
+		if ( s.indexOf( "download=bouncer" ) > -1 ) {
+			uri = unescape( s.split( "download=bouncer" )[1] );
+			uri = MIRROR_BOUNCER_URL + "?" + uri;
+		} else if ( s.indexOf( "download=mirrorbrain&" ) > -1 ) {
+			uri = unescape( s.split( "download=mirrorbrain&" )[1] );
+			uri = MIRROR_MIRRORBRAIN_URL + uri;
+		}
+  		s_linkType = "d";
+  		s_linkTrackVars = "events,products,eVar3,eVar8,prop19,prop20,prop21";
+  		s_linkTrackEvents = "event7";
+		s_events = "event7";
+  		s_eVar3 = "ooo";
+		s_linkName = "ooo:" + getTupel( uri );
+  		s_products = "Downloaded Products;" + getProduct( uri ) + " Download";
+  		s_eVar8 = getTupel( uri );
+  		s_prop19 = getOS( uri );
+  		s_prop20 = getLang( uri );
+  		s_prop21 = getVersion( uri );
+		if ( uri != null ) {
+			document.write( "Starting download from <a onClick='s_lnk=s_co(this);s_gs(s_account);' href='" + uri + "'>" + uri + "</a>." );
+			doLoad( uri );
+		}
+		// document.location = uri;
+		return false;
+	}
+}

Propchange: incubator/ooo/ooo-site/trunk/content/download/download_new_dl_aoo.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js?rev=1340205&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js (added)
+++ incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js Fri May 18 18:47:58 2012
@@ -0,0 +1,527 @@
+/*
+ * get link to mirror system in combination with schema for download-set
+ * depends on array-list
+ */
+function mirrorbrain_getLink( version, nl_language, schema ) {
+	var a = getArray( nl_language );
+	var platform = getPlatform();
+	var link = null;
+	var language = nl_language;
+
+	if ( schema == "aoo" )
+		platform = getPlatform( schema );
+
+	if ( language == "" )
+		language = getLanguageISO( nl_language );
+
+	// if we don't support platform, we should send them to other.html, ok, taken care of in hasMirrorLink()
+	// not the right place really but ???
+
+	if ( hasMirrorLink() ) {
+		// use mirror link
+		if ( version == VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/";
+			if ( language == "en-US" ) {
+				link = link + "stable/" + version + "/";
+			} else {
+				link = link + "localized/" + language + "/" + version + "/";
+			}
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == OLD_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/";
+			if ( language == "en-US" ) {
+				link = link + "stable/" + version + "/";
+			} else {
+				link = link + "localized/" + language + "/" + version + "/";
+			}
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == RC_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/extended/" + mirrorbrain_getVersionForDownloadFolder( version ) + "/";
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == BETA_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/extended/" + version + "/";
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == DEV1_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == DEV2_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == DEVB_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/extended/developer/" + version + "/";
+			return link + mirrorbrain_getFileName( version, language, schema );
+		} else if ( version == TEST_VERSION ) {
+			link = MIRROR_MIRRORBRAIN_URL + "files/";
+			if ( language == "en-US" ) {
+				link = link + "stable/" + version + "/";
+			} else {
+				link = link + "localized/" + language + "/" + version + "/";
+			}
+			return link + mirrorbrain_getFileName( version, language, schema );
+		}
+		// error
+		return "no_link";
+	} else {
+		// The following lines are no longer valid and commented out as the porting is done
+		// and Mac an official build
+		// if ( platform.indexOf( "Mac" ) != -1 ) {
+		// send MAC requests to porting.o.o
+		//	return "http://porting.openoffice.org/mac/download/";
+		// } else {
+			// use direct link
+			return a[2];
+		// }
+	}
+}
+
+/*
+ * special tupel for tracking
+ */
+function mirrorbrain_getTupel( href ) {
+	var retVal = "";
+	var file;
+	file = mirrorbrain_getTagFileName( href );
+    if ( file != null ) {
+		var product, os, lang, version;
+		product = mirrorbrain_getTagProduct( file );
+		version = mirrorbrain_getTagVersion( file );
+		os = mirrorbrain_getTagOS( file );
+		lang = mirrorbrain_getTagLang( file );
+		retVal = product + " " + version + "-" + os + "-" + lang + "-" + version;
+    }
+    return retVal;
+}
+
+/*
+ * extract file name from url
+ */
+function mirrorbrain_getTagFileName( href ) {
+	var retVal;
+    if ( href.indexOf( MIRROR_MIRRORBRAIN_URL + "files/" ) > -1 ) {
+		var s = href.split( "/" );
+		retVal = s[s.length-1];
+    }
+    return retVal;
+}
+
+/*
+ * get product name for tracking, external used method
+ */
+function mirrorbrain_getProduct( href ) {
+	var file;
+	file = mirrorbrain_getTagFileName( href );
+	return mirrorbrain_getTagProduct( file ) + " " + mirrorbrain_getTagVersion( file );
+}
+
+/*
+ * get version for tracking, external used method
+ */
+function mirrorbrain_getVersion( href ) {
+	var file;
+	file = mirrorbrain_getTagFileName( href );
+	return mirrorbrain_getTagVersion( file );
+}
+
+/*
+ * get os for tracking, external used method
+ */
+function mirrorbrain_getOS( href ) {
+	var file;
+	file = mirrorbrain_getTagFileName( href );
+	return mirrorbrain_getTagOS( file );
+}
+
+/*
+ * get language code for tracking, external used method
+ */
+function mirrorbrain_getLang( href ) {
+	var file;
+	file = mirrorbrain_getTagFileName( href );
+	return mirrorbrain_getTagLang( file );
+}
+
+/*
+ * get language code for tracking, internal method
+ */
+function mirrorbrain_getTagLang( file ) {
+	var retVal;
+	if ( file != null &&
+	     ( file.indexOf( "_install-" ) > -1 ||
+	     ( file.indexOf( "_install_" ) > -1 &&
+	     ( file.indexOf( "_Linux_" ) > -1 ||
+	       file.indexOf( "_MacOS_" ) > -1 ||
+	       file.indexOf( "_Win_" ) > -1 ||
+	       file.indexOf( "_Solaris_" ) > -1 ) ) ) ) {
+
+		var s = file.split( "_install" );
+		s = s[1].split( "." );
+		s = s[0].split( "_" );
+		retVal = s[s.length-1];
+
+	} else if ( file != null && file.indexOf( "_install_" ) > -1 ) {
+		var s = file.split( "_install_" );
+		s = s[1].split( "." );
+		s = s[0].split( "_" );
+		if ( s[s.length-1].indexOf( "deb" ) > -1 ) {
+			retVal = s[s.length-2];
+		} else {
+			retVal = s[s.length-1];
+		}
+	}
+	return retVal;
+}
+
+/*
+ * get os name for tracking, internal method
+ */
+function mirrorbrain_getTagOS( file ) {
+	var retVal;
+	if ( file != null && (
+	     file.indexOf( "_install-" ) > -1 ||
+	     ( file.indexOf( "_install_" ) > -1 &&
+	     ( file.indexOf( "_Linux_" ) > -1 ||
+	       file.indexOf( "_MacOS_" ) > -1 ||
+	       file.indexOf( "_Win_" ) > -1 ||
+	       file.indexOf( "_Solaris_" ) > -1 ) ) ) ) {
+
+		var s = file.split( "_install" );
+		s = s[0].split( "_" );
+		retVal = s[ s.length -2 ] + s[ s.length -1 ];
+		retVal = retVal.toLowerCase();
+		if ( retVal.indexOf( "winx86" ) > -1 ) {
+			retVal = "win";
+		} else if ( retVal == "linuxx86" ) {
+			retVal = "linuxintel";
+		} else if ( retVal == "macosx86" ) {
+			retVal = "macosxintel";
+		} else if ( retVal == "macosppc" ) {
+			retVal = "macosxppc";
+		}
+		if ( file.indexOf( "install-deb" ) > -1 ) {
+			retVal = retVal + "deb";
+		}
+	} else if ( file != null && file.indexOf( "_install_" ) > -1 ) {
+		var s = file.split( "_install_" );
+		s = s[0].split( "_" );
+		retVal = s[ s.length -1 ];
+		retVal = retVal.toLowerCase();
+		if ( retVal.indexOf( "win32intel" ) > -1 ) {
+			retVal = "win";
+		}
+		if ( file.indexOf( "_deb" ) > -1 ) {
+			retVal = retVal + "deb";
+		} else if ( file.indexOf( "install-deb" ) > -1 ) {
+			retVal = retVal + "deb";
+		}
+	}
+	return retVal;
+}
+
+/*
+ * get product name for tracking, internal method
+ */
+function mirrorbrain_getTagProduct( file ) {
+	var retVal = null;
+	if ( file != null ) {
+		var s = file.split( "_" );
+		retVal = s[0];
+	}
+	return retVal;
+}
+
+/*
+ * get version for tracking, internal method
+ */
+function mirrorbrain_getTagVersion( file ) {
+	var retVal = null;
+	if ( file != null ) {
+		var s = file.split( "_" );
+		retVal = s[1];
+		if ( s[0] == "OOo-Dev" ) {
+			if ( file.indexOf( "_install-" ) > -1 ||
+			   ( file.indexOf( "_install_" ) > -1 &&
+			   ( file.indexOf( "_Linux_" ) > -1 ||
+			     file.indexOf( "_MacOS_" ) > -1 ||
+			     file.indexOf( "_Win_" ) > -1 ||
+			     file.indexOf( "_Solaris_" ) > -1 ) ) ) {
+				// new schema
+				if ( s[1].indexOf( "_m" ) > -1 ) {
+					retVal = s[1];
+				} else if ( s[1].indexOf( "m" ) > -1 ) {
+					var s2 = s[1].split( "m" );
+					retVal = s2[0] + "_m" + s2[1];
+				} else {
+					retVal = s[1];
+				}
+			} else {
+				// old schema
+				retVal = s[1] + "_" + s[2];
+			}
+		}
+	}
+	return retVal;
+}
+
+/*
+ * method trim timestamp from version, required for RC, requested by MLA
+ */
+function mirrorbrain_getVersionForDownloadFolder( version ) {
+	var s = null;
+	if ( version.indexOf( "_" ) > -1 ) {
+		s = version.split( "_" )[0];
+	} else {
+		s = version;
+	}
+
+	if ( version == VERSION ) {
+		return version;
+	} else if ( version == OLD_VERSION ) {
+		return version;
+	} else if ( version == RC_VERSION ) {
+		return s;
+	} else if ( version == BETA_VERSION ) {
+		return version;
+	} else if ( version == DEV1_VERSION ) {
+		return version;
+	} else if ( version == DEV2_VERSION ) {
+		return version;
+	} else if ( version == TEST_VERSION ) {
+		return version;
+	}
+	// error
+	return "no_version";
+}
+
+function mirrorbrain_getFileName( version, nl_language, schema ) {
+	var a = getArray( nl_language );
+	var platform = getPlatform();
+	var fileName = null;
+	var language = nl_language;
+
+	if ( language == "" )
+		language = getLanguageISO( nl_language );
+
+	if ( hasMirrorLink() ) {
+		// use mirror link
+		if ( schema == "ooo" ) {
+			if ( version == VERSION ) {
+				fileName = "OOo_"     + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == OLD_VERSION ) {
+				fileName = "OOo_"     + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == RC_VERSION ) {
+				fileName = "OOo_"     + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == BETA_VERSION ) {
+				fileName = "OOo_"     + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == DEV1_VERSION ) {
+				fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == DEV2_VERSION ) {
+				fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == DEVB_VERSION ) {
+				fileName = "OOo-Dev_" + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else if ( version == TEST_VERSION ) {
+				fileName = "OOo_"     + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else {
+				fileName = "no_ooo_filename";
+			}
+		} else if (schema == "aoo") {
+			if ( version == VERSION ) {
+				fileName = "Apache_OpenOffice_incubating_" + version + "_" + mirrorbrain_getPlatformForMirror( language, schema ) + "_" + language + mirrorbrain_getExtension( language, schema );
+			} else {
+				fileName = "no_aoo_filename";
+			}
+		} else {
+			return "no_generic_filename";
+		}
+		return fileName;
+	}
+	// error
+	return "no_generic_filename";
+}
+
+/*
+ * get platform for mirror-link
+ */
+function mirrorbrain_getPlatformForMirror( nl_language, schema ) {
+	var a = getArray( nl_language );
+	if ( navigator.platform != null && String( navigator.platform ) != "" ) {
+		if ( schema == "ooo" ) {
+			if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+				return "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+				return "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+				return "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+				if ( navigator.platform.indexOf( "64" ) != -1 ) {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux_x86-64_install-deb";
+						} else {
+							return "Linux_x86-64_install-rpm";
+						}
+					} else {
+						return "Linux_x86-64_install-rpm";
+					}
+				} else {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux_x86_install-deb";
+						} else {
+							return "Linux_x86_install-rpm";
+						}
+					} else {
+						return "Linux_x86_install-rpm";
+					}
+				}
+
+				if ( navigator.userAgent != null ) {
+					if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+						return "Linux_x86_install-deb";
+					} else {
+						return "Linux_x86_install-rpm";
+					}
+				} else {
+					return "Linux_x86_install-rpm";
+				}
+			} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+				return "Solaris_x86_install";
+			} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+				return "Solaris_Sparc_install";
+			} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+				return "Solaris_Sparc_install";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				    navigator.platform.indexOf( "Intel" ) != -1 ) {
+				return "MacOS_x86_install";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				    navigator.platform.indexOf( "PPC" ) != -1 ) {
+				return "MacOS_PPC_install";
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+				return "MacOS_x86_install";
+			// testing if this code will help to redirect the iPad, iPhone, iPod entries
+			} else if ( navigator.platform.indexOf( "iPad" ) != -1 ||
+				    navigator.platform.indexOf( "iPhone" ) != -1 ||
+				    navigator.platform.indexOf( "iPod" ) != -1 ) {
+				return "MacOS_x86_install" ;
+			} else {
+				return "no_ooo_platform";
+			}
+		} else if (schema == "aoo") {
+			if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+				return   "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+				return  "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+				return  "Win_x86_install";
+			} else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+				if ( navigator.platform.indexOf( "64" ) != -1 ) {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux_x86-64_install-deb";
+						} else {
+							return  "Linux_x86-64_install-rpm";
+						}
+					} else {
+						return  "Linux_x86-64_install-rpm";
+					}
+				} else {
+					if ( navigator.userAgent != null ) {
+						if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+						     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+							return "Linux_x86_install-deb";
+						} else {
+							return  "Linux_x86_install-rpm";
+						}
+					} else {
+						return  "Linux_x86_install-rpm";
+					}
+				}
+
+				if ( navigator.userAgent != null ) {
+					if ( navigator.userAgent.toLowerCase().indexOf( "debian" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "ubuntu" ) != -1 ||
+					     navigator.userAgent.toLowerCase().indexOf( "iceweasel" ) != -1 ) {
+						return "Linux_x86_install-deb";
+					} else {
+						return  "Linux_x86_install-rpm";
+					}
+				} else {
+					return  "Linux_x86_install-rpm";
+				}
+			/*} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+				return  "Solaris_x86_install";
+			} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+				return  "Solaris_Sparc_install";
+			} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+				return  "Solaris_Sparc_install";*/
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				    navigator.platform.indexOf( "Intel" ) != -1 ) {
+				return "MacOS_x86_install";
+			/*} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+				      navigator.platform.indexOf( "PPC" ) != -1 ) {
+				return "MacOS_PPC_install";*/
+			} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+				return "MacOS_x86_install";
+			// testing if this code will help to redirect the iPad, iPhone, iPod entries
+			} else if ( navigator.platform.indexOf( "iPad" ) != -1 ||
+				    navigator.platform.indexOf( "iPhone" ) != -1 ||
+				    navigator.platform.indexOf( "iPod" ) != -1 ) {
+				return "MacOS_x86_install" ;
+			} else {
+				return "no_aoo_platform";
+			}
+		}
+	} else {
+		//  return a dummy value if navigator.platform is null or empty regardless of schema
+		return "no_generic_platform";
+	}
+}
+
+/*
+ * get extension for mirror-link
+ */
+function mirrorbrain_getExtension( nl_language, schema ) {
+	var a = getArray( nl_language );
+	if ( navigator.platform != null ) {
+		if ( navigator.platform.indexOf( "Win32" ) != -1 ) {
+			return ".exe";
+		} else if ( navigator.platform.indexOf( "Win64" ) != -1 ) {
+			return ".exe";
+		} else if ( navigator.platform.indexOf( "Win" ) != -1 ) {
+			return ".exe";
+		} else if ( navigator.platform.indexOf( "Linux" ) != -1 ) {
+			return ".tar.gz";
+		} else if ( navigator.platform.indexOf( "SunOS i86pc" ) != -1 ) {
+			return ".tar.gz";
+		} else if ( navigator.platform.indexOf( "SunOS sun4u" ) != -1 ) {
+			return ".tar.gz";
+		} else if ( navigator.platform.indexOf( "SunOS" ) != -1 ) {
+			return ".tar.gz";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+			    navigator.platform.indexOf( "Intel" ) != -1 ) {
+			return ".dmg";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 &&
+			    navigator.platform.indexOf( "PPC" ) != -1 ) {
+			return ".dmg";
+		} else if ( navigator.platform.indexOf( "Mac" ) != -1 ) {
+			return ".dmg";
+		// this code provides working entries for iPad, iPhone, iPod
+		} else if ( navigator.platform.indexOf( "iPad" ) != -1 ||
+			    navigator.platform.indexOf( "iPhone" ) != -1 ||
+			    navigator.platform.indexOf( "iPod" ) != -1 ) {
+			return ".dmg" ;
+		} else {
+			return "no_extension";
+		}
+	}
+	return "no_extension";
+}
+

Propchange: incubator/ooo/ooo-site/trunk/content/download/download_new_mirrorbrain_aoo.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: incubator/ooo/ooo-site/trunk/content/download/index_aoo.html
URL: http://svn.apache.org/viewvc/incubator/ooo/ooo-site/trunk/content/download/index_aoo.html?rev=1340205&view=auto
==============================================================================
--- incubator/ooo/ooo-site/trunk/content/download/index_aoo.html (added)
+++ incubator/ooo/ooo-site/trunk/content/download/index_aoo.html Fri May 18 18:47:58 2012
@@ -0,0 +1,354 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+  <title>Apache OpenOffice Downloads</title>
+  <!-- <script type="text/javascript" src="globalvars.js"></script> -->
+  <!-- <script type="text/javascript" src="download.js"></script> -->
+  <!-- <script type="text/javascript" src="download_bouncer.js"></script> -->
+  <!-- <script type="text/javascript" src="globalvars_new_dl.js"></script> -->
+  <script type="text/javascript" src="globalvars_new_dl_aoo.js"></script>
+  <!-- <script type="text/javascript" src="download_new_dl.js"></script> -->
+  <script type="text/javascript" src="download_new_dl_aoo.js"></script>
+  <!-- <script type="text/javascript" src="download_new_mirrorbrain.js"></script> -->
+  <script type="text/javascript" src="download_new_mirrorbrain_aoo.js"></script>
+  <script type="text/javascript" src="languages_new_dl.js"></script>
+  <script type="text/javascript" src="../scripts/entourage.js"></script>
+  <style type="text/css">
+  /* <![CDATA[ */
+  /*-------------------- Exceptions on standard css -----------------------*/
+  @import "styles.css";
+  @import "exceptions.css";
+  /* ]]> */
+  </style>
+  <script type="text/javascript">
+    var _gaq = _gaq || [];
+    _gaq.push(['_setAccount', 'UA-30193653-1']);
+    _gaq.push(['_setDomainName', 'openoffice.org']);
+    _gaq.push(['_trackPageview']);
+
+    (function() {
+      var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+      ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+      var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+    })();
+  </script>	
+</head>
+
+<body>
+
+<div class="optionset">
+
+<!-- Green: Stable release -->
+  <script type="text/javascript">  
+  <!--
+  var NL_LANGUAGE = "";
+  var LINK = getLink( VERSION, NL_LANGUAGE, MIRROR, SCHEMA );
+
+  // alert ( "Download link: " + LINK );
+  // normal processing to simply quoting issues -- keep original
+  // var newLINK = "<a href=\"" + LINK + "\"" + " title = \"" + LINK + " \" >";
+  // alert ( "hasMirrorLink: " + hasMirrorLink() );
+  if ( hasMirrorLink( NL_LANGUAGE ) ) {
+    document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+    + LINK + "');" + "return false;\">" );
+    document.write( "<h2><a href='" + LINK + "' title='" + LINK + "'>Download Apache OpenOffice " + VERSION + "</a></h2>"
+    + "<p><a href='" + LINK + "' title='" + LINK + "'>Click to start downloading the most recent version for "
+    + getPlatform( SCHEMA ) + " and " + getLanguage( NL_LANGUAGE ) + "."
+    + "<br/></p>" );
+  } else {
+    // dump SF download and redirect to NL webpage (see URLs in "languages.js") if no mirror link (hasMirrorLink() == false)
+    // alert( "link before replacment: " + LINK );
+    var newLINK = LINK.replace(/\/download$/,"");
+    // alert ( "link after replacment: " + newLINK );
+    document.write( "<div class=\"first button green\" id=\"optionitem1\" onclick=\"openItem('optionitem1','"
+    + newLINK + "');" + "return false;\">" );
+    document.write( "<h2><a href='" + newLINK + "' title='" + newLINK + "'>Download Apache OpenOffice</a></h2>"
+    + "<p><a href='" + newLINK + "' title='" + newLINK + "'>Get Apache OpenOffice from your Native Language "
+    + "community.</a></p>" );
+  }
+  
+  document.write( "</div>" );
+  document.write( "<div class=\"sub-green\">"
+    + "<p><a href='other.html' title='Get all platforms, source, languages, language packs to download'>"
+    + "<b>All platforms, source, languages, language packs</b></a> | "
+    + "<a href='../development/releases/" + VERSION + ".html'"
+    + "title='What is new, what has been improved in Apache OpenOffice " + VERSION + "?'>Release Notes</a> | "
+    + "<a href='legacy/index.html' title='Get the legacy version OpenOffice.org 3.3.0'>Legacy Version</a> | "
+    + "<a href='checksums/3.4.0_checksums.html' title='Checksums for Apache OpenOffice " + VERSION + "'>Checksums</a></p>"
+  + "</div>" );
+  
+  entourage.initialize();
+  //-->
+  </script>
+
+<!-- Green: Stable release: No JavaScript enabled -->
+  <noscript>
+  <div class="button green" id="optionitem1" onclick="openItem('optionitem1','other.html#tested-full'); return false;">
+    <h2><a href="other.html" title="Select from other platforms and languages to download">
+    Download Apache OpenOffice</a></h2>
+    <p><a href="other.html" title="Select from other platforms and languages to download">
+    JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+    Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+  </div>
+  <div class="sub-green">
+    <p><a href="other.html" title="Get all platforms, languages, language packs to download">
+    <b>All platforms, source, languages, language packs</b></a> |
+    <a href="../development/releases/index.html" title="What is new, what has been improved in Apache OpenOffice?">
+    Release Notes</a> |
+    <a href='legacy/index.html' title='Get the legacy version OpenOffice.org 3.3.0'>Legacy Version</a> |
+    <a href="checksums/3.4.0_checksums.html" title="Checksums for Apache OpenOffice">Checksums</a></p>
+  </div>
+  </noscript>
+
+<!-- Blue: Extensions -->
+  <div class="button blue" id="optionitem3" onclick="openItem('optionitem3','http://extensions.services.openoffice.org');
+    return false;">
+    <h2><a href="http://extensions.services.openoffice.org"
+    title="Choose from a wide range of additional and individual functionality">Get Apache OpenOffice Extensions</a></h2>
+    <p><a href="http://extensions.services.openoffice.org"
+    title="Choose from a wide range of additional and individual functionality">
+    Extend your Apache OpenOffice functionality with a large and growing library of extensions with other users.</a></p>
+  </div>
+  
+  <!-- Blue: Templates -->
+  <div class="button blue" id="optionitem3" onclick="openItem('optionitem3','http://templates.services.openoffice.org');
+    return false;">
+    <h2><a href="http://templates.services.openoffice.org"
+    title="Choose from a wide range of additional and individual documents">Get Apache OpenOffice Templates</a></h2>
+    <p><a href="http://templates.services.openoffice.org"
+    title="Choose from a wide range of additional and individual documents">
+    Extend your Apache OpenOffice creativity with a large and growing library of templates with other users.</a></p>
+  </div>
+
+<!-- Yellow: Release Candidate online -->
+  <script type="text/javascript">
+  /*
+  <!--
+  if ( RC_ACTIVE == 1 ) {
+    document.write( "<div class=\"button yellow\" id=\"optionitem4\" onclick=\"openItem('optionitem4',"
+      + "'all_rc.html#untested-full');"
+      + "return false;\">"
+      + "<h2><a href='all_rc.html#untested-full' title='Select from other platforms and languages to download'>"
+      + "Get OpenOffice.org Release Candidates</a></h2>"
+      + "<p><a href='all_rc.html#untested-full' title='Select from other platforms and languages to download'>"
+      + "<b>Most recent: OOo " + RC_NAME + " " + RC_NUMBER + "</b></a></p>"
+    + "</div>" );
+    document.write( "<div class=\"sub-yellow\">"
+      + "<p><a href='all_rc.html' title='Get all platforms, languages, language packs to download'>"
+      + "Get all platforms, languages, language packs</a> | "
+      + "<a href='http://www.openoffice.org/development/releases/" + RC_BUILD + ".html'"
+      + "title='What is new, what has been improved in OpenOffice.org " + RC_NAME + RC_NUMBER + "?'>Release Notes</a> | "
+      + "<a href='next/md5sums/" + RC_BUILD + "_md5sums.txt' title='MD5 checksums for OpenOffice.org " + RC_NAME + RC_NUMBER
+      + "'>MD5 checksums</a></p>"
+    + "</div>" );
+  } else if ( RC_ACTIVE == 0 ) {
+  // Yellow: Release Candidate coming soon
+    document.write( "<div class=\"button yellow\" id=\"optionitem4\">"
+      + "<h2><a>Get OpenOffice.org Release Candidate <small>(" + RC_NAME + RC_NUMBER + " coming soon)</small></a></h2>"
+      + "<p><a>A wide range of platforms and languages will be available."
+      + "<br/><b>Important:</b> These builds are nearly ready but needs to be finally tested and are therefore not "
+      + "released.</a></p>"
+    + "</div>" );
+  }
+  //-->
+  */
+  </script>
+
+<!-- Yellow: Release Candidate: No JavaScript enabled -->
+  <!--
+  <noscript>
+  <div class="button yellow" id="optionitem4" onclick="openItem('optionitem4','all_rc.html#untested-full'); return false;">
+    <h2><a href="all_rc.html" title="Select from all platforms, languages, language packs to download">
+    Get OpenOffice.org Release Candidate</a></h2>
+    <p><a href="all_rc.html" title="Select from other platforms, languages, language packs to download">
+    JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+    Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+  </div>
+  <div class="sub-yellow">
+    <p><a href="all_rc.html" title="Get all platforms, languages, language packs to download">
+    Get all platforms, languages, language packs</a> |
+    <a href="http://www.openoffice.org/development/releases/dev_index.html"
+    title="What is new, what has been improved in OpenOffice.org?">Release Notes</a> |
+    <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+  </div>
+  </noscript>
+  //-->
+
+<!-- Yellow: Beta Release online -->
+  <script type="text/javascript">
+  /*
+  <!--
+  if ( BETA_ACTIVE == 1 ) {
+    document.write( "<div class=\"button yellow\" id=\"optionitem2\" onclick=\"openItem('optionitem2','all_beta.html');"
+      + "return false;\">"
+      + "<h2><a href='all_beta.html' title='Select from all platforms, languages, language packs to download'\">"
+      + "Get OpenOffice.org Beta Release</a></h2>"
+      + "<p><a href='all_beta.html' title='Select from all platforms, languages, language packs to download'\">"
+      + "<b>Most recent: OOo-Dev " + BETA_NAME + " " + BETA_NUMBER + "</b></a></p>"
+    + "</div>" );
+    document.write( "<div class=\"sub-yellow\">"
+      + "<p><a href='all_beta.html' title='Get all platforms, languages, language packs to download'>"
+      + "Get all platforms, languages, language packs</a> | "
+      + "<a href='http://www.openoffice.org/development/releases/" + BETA_BUILD + ".html'"
+      + "title='What is new, what has been improved in OpenOffice.org " + BETA_NAME + BETA_NUMBER + "?'>Release Notes</a> | "
+      + "<a href='next/md5sums/index.html" + BETA_BUILD + "_md5sums.txt' title='MD5 checksums for OpenOffice.org "
+      + BETA_NAME + BETA_NUMBER + "'>MD5 checksums</a></p>"
+    + "</div>" );
+  } else if ( BETA_ACTIVE == 0 ) {
+  // Yellow: Beta Release coming soon
+    document.write( "<div class=\"button yellow\" id=\"optionitem2\">"
+      + "<h2><a>Get OpenOffice.org Beta Release <small>(" + BETA_NAME + BETA_NUMBER + " coming soon)</small></a></h2>"
+      + "<p><a>A wide range of platforms and languages will be available."
+      + "<br/><b>Important:</b> The Beta is feature complete but can contain issues and detailed tests needs to be done."
+      + "</a></p>"
+    + "</div>" );
+  }
+  //-->
+  */
+  </script>
+
+<!-- Yellow: Beta: No JavaScript enabled -->
+  <!--
+  <noscript>
+  <div class="button yellow" id="optionitem2" onclick="openItem('optionitem2','all_beta.html#untested-full'); return false;">
+    <h2><a href="all_beta.html" title="Select from all platforms, languages, language packs to download">
+    Get OpenOffice.org Beta Release</a></h2>
+    <p><a href="all_beta.html" title="Select from all platforms, languages, language packs to download">
+    JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+    Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+  </div>
+  <div class="sub-yellow">
+    <p><a href="all_beta.html" title="Get all platforms, languages, language packs to download">
+    Get all platforms, languages, language packs</a> |
+    <a href="http://www.openoffice.org/development/releases/dev_index.html"
+    title="What is new, what has been improved in OpenOffice.org?">Release Notes</a> |
+    <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+  </div>
+  </noscript>
+  //-->
+
+<!-- Red: Developer Snapshots online -->
+  <script type="text/javascript">
+  /*
+  <!--
+  document.write( "<div class=\"button orange\" id=\"optionitem5\" onclick=\"openItem('optionitem5','next/index.html');"
+    + "return false;\">"
+    + "<h2><a href='next/index.html' title='Select from the most recent OpenOffice.org Developer Snapshots'>"
+    + "Get OpenOffice.org Developer Snapshots</a></h2>" );
+    document.write( "<p><a href='next/index.html' title='Select from the most recent OpenOffice.org Developer "
+    + "Snapshots'><b>" );
+    if ( DEV1_VERSION != "" ) {
+      document.write( "Most recent: " + DEV1_VERSION + " (" + DEV1_BUILD + ") and " + DEV2_VERSION + " (" + DEV2_BUILD
+        + ")" );
+    } else {
+      document.write( "Most recent: " + DEV2_VERSION + " (" + DEV2_BUILD + ")" );
+    }
+    document.write( "</b></a></p>"
+  + "</div>" );
+  document.write( "<div class=\"sub-orange\">"
+    + "<p><a href='next/other.html' title='Get all platforms, languages, SDK builds, source tarballs to download'>"
+    + "Get all platforms, languages, SDK builds, source tarballs</a> | "
+    + "<a href='http://www.openoffice.org/development/releases/dev_index.html'"
+    + "title='What is new, what has been improved in OpenOffice.org?'>Release Notes</a> | "
+    + "<a href='next/md5sums/index.html' title='MD5 checksums for OpenOffice.org'>MD5 checksums</a></p>"
+  + "</div>" );
+  //-->
+  */
+  </script>
+
+<!-- Red: Developer Snapshots: No JavaScript enabled -->
+  <!--
+  <noscript>
+  <div class="button orange" id="optionitem5" onclick="openItem('optionitem5','next/index.html'); return false;">
+    <h2><a href="next/other.html" title="Select from the most recent OpenOffice.org Developer Snapshots">
+    Get OpenOffice.org Developer Snapshots</a></h2>
+    <p><a href="next/other.html" title="Select from the most recent OpenOffice.org Developer Snapshots">
+    JavaScript needs to be enabled to take full advantage of this download section. Currently it does not seem to be enabled.
+    Please click on this text to use the alternative webpage to select the favorite platform and language.</a></p>
+  </div>
+  <div class="sub-orange">
+    <p><a href="next/other.html" title="Get all platforms, languages, language packs, SDK builds, source tarballs to
+    download">
+    Get all platforms, languages, language packs, SDK builds, source tarballs</a> |
+    <a href="http://www.openoffice.org/development/releases/dev_index.html" title="What is new, what has been improved in
+    OpenOffice.org?">
+    Release Notes</a> | <a href="next/md5sums/index.html" title="MD5 checksums for OpenOffice.org">MD5 checksums</a></p>
+  </div>
+  </noscript>
+  //-->
+</div>
+
+<div class="additionalinformation">
+
+  <h2>Additional Information</h2>
+  <ul>
+    <li><a href="../license.html" title="Apache OpenOffice License">License</a></li>
+    <li><a href="other.html#tested-sdk"
+    title="For developers and power users: Get the source to build Apache OpenOffice from scratch.">Source</a>
+    <li><a href="http://wiki.services.openoffice.org/wiki/Documentation/Building_Guide"
+    title="For developers and power users: HowTo guide to build Apache OpenOffice from scratch.">Building Guide</a></li>
+    </li>
+  </ul>
+
+  <h3>Documentation</h3>
+  <ul>
+    <li><a href="http://wiki.services.openoffice.org/wiki/Product_Release" title="When are the next releases planned?">
+    Release Schedule</a></li>
+    <li><a href="../development/releases/index.html"
+    title="What is new, what has been improved in Apache OpenOffice?">Release Notes</a>
+    </li>
+    <li><a href="checksums/3.4.0_checksums.html"
+    title="Several checksums for Apache OpenOffice">Checksums for Apache OpenOffice</a></li>
+    <li><a href="../product/index.html" title="A tour through all Apache OpenOffice applications">Product Information</a></li>
+    <li><a href="../dev_docs/source/sys_reqs_30.html"
+    title="HDD: ~300MB free - Memory: &gt;128MB - Processor: &gt;500MHz - OS: Win, Linux, Mac, Solaris, FreeBSD...">
+    System Requirements</a></li>
+    <li><a href="common/instructions.html"
+    title="Instructions for installing Apache OpenOffice on Windows, Linux and Mac OS machines">Install Guides</a> and
+    <a href="../documentation/index.html" title="Extensive user manuals for every day use">User Guides</a></li>
+    <li><a href="../development/releases/eol.html"
+    title="Information about releases that have reached End-Of-Life status">End-Of-Life Information</a></li>
+    <li><a href="../support/index.html"
+    title="If the information above did not answer your question: Free and paid support!">Support</a></li>
+    <li><a href="common/java.html" title="Explains why to use Java and what it is">Java and Apache OpenOffice</a></li>
+    <li><a href="http://java.com/en/download/manual.jsp" title="Get most recent Java Runtime Environment (JRE)">
+    Get the most recent Java (JRE)</a></li>
+  </ul>
+
+  <h3>Additional Resources</h3>
+  <ul>
+    <li><a href="../lingucomponent/download_dictionary.html"
+    title="Add additional language support to your Apache OpenOffice installation">Dictionaries</a></li>
+    <li><a href="http://templates.services.openoffice.org" title="Get a headstart with Apache OpenOffice">Templates</a></li>
+    <li><a href="http://extensions.services.openoffice.org"
+    title="Choose from a wide range of additional and individual functionality">Extensions</a></li>
+    <li><a href="../projects/native-lang.html"
+    title="Information and support in your favorite language">Localizations</a></li>
+    <li><a href="sdk/index.html" title="For developers: Software Development Kit">Software Development Kit (SDK)</a></li>
+    <!--
+    <li><a href="../distribution/cdrom/iso_download.html"
+    title="Download OpenOffice.org as ISO file and burn it yourself on CD-ROM">ISO images</a> and
+    <a href="../distribution/cdrom/index.html#cdrom"
+    title="If you cannot download OpenOffice.org, order a CD-ROM">Order CD-ROM</a>
+    <li><a href="../distribution/mirrors#mirrors" title="To get alternative download locations">
+    All Mirror Server</a><br/></li>
+    <li><a href="archive.html" title="Download legacy and archived releases">Archived legacy releases</a><br/></li>
+    -->
+  </ul>
+
+  <div id="SupportedAndSupporters">
+    <a href="http://validator.w3.org/check?uri=http://www.openoffice.org/download/index.html"
+    title="W3C Markup Validation Service - Check the markup (HTML, XHTML, ...) of Web documents">
+    <img src="http://www.w3.org/Icons/valid-xhtml10-blue.png"
+    alt="W3C Markup Validation Service - Check the markup (HTML, XHTML, ...) of Web documents"/></a>
+    &nbsp;&nbsp;&nbsp;
+    <a href="http://www.mirrorbrain.org" title="MirrorBrain - A download redirector and metalink generator">
+    <img src="http://mirrorbrain.org/static/images/powered-by-mirrorbrain-50x128-transparent.png"
+    alt="MirrorBrain - A download redirector and metalink generator"/></a>
+  </div>
+</div>
+
+</body>
+</html>
+

Propchange: incubator/ooo/ooo-site/trunk/content/download/index_aoo.html
------------------------------------------------------------------------------
    svn:eol-style = native



Mime
View raw message