(function(){
var $$;
$$=jQuery.fn.flash=function(_67,_68,_69,_6a){
var _6b=_69||$$.replace;
_68=$$.copy($$.pluginOptions,_68);
if(!$$.hasFlash(_68.version)){
if(_68.expressInstall&&$$.hasFlash(6,0,65)){
var _6c={flashvars:{MMredirectURL:location,MMplayerType:($.browser.msie?"ActiveX":"PlugIn"),MMdoctitle:jQuery("title").text()}};
}else{
if(_68.update){
_6b=_6a||$$.update;
}else{
return this;
}
}
}
_67=$$.copy($$.htmlOptions,_6c,_67);
return this.each(function(){
_6b.call(this,$$.copy(_67));
});
};
$$.copy=function(){
var _6d={},flashvars={};
for(var i=0;i<arguments.length;i++){
var arg=arguments[i];
if(arg==undefined){
continue;
}
jQuery.extend(_6d,arg);
if(arg.flashvars==undefined){
continue;
}
jQuery.extend(flashvars,arg.flashvars);
}
_6d.flashvars=flashvars;
return _6d;
};
$$.hasFlash=function(){
if(/hasFlash\=true/.test(location)){
return true;
}
if(/hasFlash\=false/.test(location)){
return false;
}
var pv=$$.hasFlash.playerVersion().match(/\d+/g);
var rv=String([arguments[0],arguments[1],arguments[2]]).match(/\d+/g)||String($$.pluginOptions.version).match(/\d+/g);
for(var i=0;i<3;i++){
pv[i]=parseInt(pv[i]||0);
rv[i]=parseInt(rv[i]||0);
if(pv[i]<rv[i]){
return false;
}
if(pv[i]>rv[i]){
return true;
}
}
return true;
};
$$.hasFlash.playerVersion=function(){
try{
try{
var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
try{
axo.AllowScriptAccess="always";
}
catch(e){
return "6,0,0";
}
}
catch(e){
}
return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version").replace(/\D+/g,",").match(/^,?(.+),?$/)[1];
}
catch(e){
try{
if(navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin){
return (navigator.plugins["Shockwave Flash 2.0"]||navigator.plugins["Shockwave Flash"]).description.replace(/\D+/g,",").match(/^,?(.+),?$/)[1];
}
}
catch(e){
}
}
return "0,0,0";
};
$$.htmlOptions={height:240,flashvars:{},pluginspage:"http://www.adobe.com/go/getflashplayer",src:"#",type:"application/x-shockwave-flash",width:320};
$$.pluginOptions={expressInstall:false,update:true,version:"6.0.65"};
$$.replace=function(_74){
this.innerHTML="<div class=\"alt\">"+this.innerHTML+"</div>";
jQuery(this).addClass("flash-replaced").prepend($$.transform(_74));
};
$$.update=function(_75){
var url=String(location).split("?");
url.splice(1,0,"?hasFlash=true&");
url=url.join("");
var msg="<p>This content requires the Flash Player. <a href=\"http://www.adobe.com/go/getflashplayer\">Download Flash Player</a>. Already have Flash Player? <a href=\""+url+"\">Click here.</a></p>";
this.innerHTML="<span class=\"alt\">"+this.innerHTML+"</span>";
jQuery(this).addClass("flash-update").prepend(msg);
};
function toAttributeString(){
var s="";
for(var key in this){
if(typeof this[key]!="function"){
s+=key+"=\""+this[key]+"\" ";
}
}
return s;
}
function toFlashvarsString(){
var s="";
for(var key in this){
if(typeof this[key]!="function"){
s+=key+"="+escape(this[key])+"&";
}
}
return s.replace(/&$/,"");
}
$$.transform=function(_7c){
if(_7c.flashvars){
_7c.flashvars.toString=toFlashvarsString;
}
if(typeof _7c.id=="undefined"){
if ($.browser.msie) _7c.id="flash-"+$("object").length;
else _7c.id="flash-"+$("embed").length;
}
var _7d="<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" align=\"middle\" width=\""+_7c.width+"\" height=\""+_7c.height+"\" id=\""+_7c.id+"\">";
$.each(_7c,function(i,e){
if(i!="type"&&i!="pluginspage"&&i!="width"&&i!="height"&&i!="id"){
if(i=="src"){
i="movie";
}
_7d+="<param name=\""+i+"\" value=\""+e+"\" />";
}
});
_7d+="</object>";
_7c.name=_7c.id;
_7c.toString=toAttributeString;
var _80="<embed "+String(_7c)+"/>";
if($.browser.msie){
return _7d;
}
return _80;
};
if(window.attachEvent){
window.attachEvent("onbeforeunload",function(){
__flash_unloadHandler=function(){
};
__flash_savedUnloadHandler=function(){
};
});
}
})();
$.fn.flash.replace=function(_81){
jQuery(this).addClass('no-border').empty().addClass("flash-replaced").prepend(jQuery.fn.flash.transform(_81));
};
$(function(){
	var varz = {}, win = navigator.appVersion.indexOf("Win")!=-1;
	$('#intro').flash(
		{ src: (win ? '/swf/intro01T.swf' : '/swf/intro01.swf'), width: 575, height: 501, bgcolor: '#245691', wmode : (win ? 'transparent' : 'window') },
		{ version: 8, expressInstall: true, update: false }
	);
	if (/\?lofi/.test(window.location.href)) varz.lofi = true;
	if (/\/en\//.test(window.location.href)) varz.en = true;
		
	$('#playah').flash(
		{ src: '/swf/player07.swf', width: 526, height: 350, bgcolor: '#ffffff', flashvars: varz },
		{ version: 8, expressInstall: false, update: false }
	);
});
if($.fn.flash.hasFlash(8)) {
	createStyleRule("#intro", "background-image:none!important;");
	createStyleRule("#playah p", "display:none;");
}
//dynamicCSS.js v1.0 <http://www.bobbyvandersluis.com/articles/dynamicCSS.php>
function createStyleRule(selector, declaration) {
	if (!document.getElementsByTagName || !(document.createElement || document.createElementNS)) return false;
	var agt = navigator.userAgent.toLowerCase();
	var is_ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
	var is_iewin = (is_ie && (agt.indexOf("win") != -1));
	var is_iemac = (is_ie && (agt.indexOf("mac") != -1));
	if (is_iemac) return false;
	var head = document.getElementsByTagName("head")[0]; 
	var style = ((typeof document.createElementNS != "undefined") ?  document.createElementNS("http://www.w3.org/1999/xhtml", "style") : document.createElement("style"));
	if (!is_iewin) {
		var styleRule = document.createTextNode(selector + " {" + declaration + "}");
		style.appendChild(styleRule);
	}
	style.setAttribute("type", "text/css");
	style.setAttribute("media", "screen"); 
	if (head) head.appendChild(style);
	if (is_iewin && document.styleSheets && document.styleSheets.length > 0) {
		var lastStyle = document.styleSheets[document.styleSheets.length - 1];
		if (typeof lastStyle.addRule == "object") {
			lastStyle.addRule(selector, declaration);
		}
	}
}
