function css_browser_selector(u){var ua = u.toLowerCase(),is=function(t)
{return ua.indexOf(t)>-1;},g='gecko',w='webkit',s='safari',h=document.getElementsByTagName('html')[0],
b=[(!(/opera|webtv/i.test(ua))&&/msie\s(\d)/.test(ua))?('ie ie'+RegExp.$1):is('firefox/2')?g+' ff2':is('firefox/3')?g+' ff3':is('gecko/')?g:/opera(\s|\/)(\d+)/.test(ua)?'opera opera'+RegExp.$2:is('konqueror')?'konqueror':is('chrome')?w+' chrome':is('applewebkit/')?w+' '+s+(/version\/(\d+)/.test(ua)?' '+s+RegExp.$1:''):is('mozilla/')?g:'',is('j2me')?'mobile':is('iphone')?'iphone':is('ipod')?'ipod':is('mac')?'mac':is('darwin')?'mac':is('webtv')?'webtv':is('win')?'win':is('freebsd')?'freebsd':(is('x11')||is('linux'))?'linux':'','js']; c = b.join(' '); h.className += ' '+c; return c;}; css_browser_selector(navigator.userAgent);

function fl(file){
    document.write("<div id='fl'><img src='/images/"+file+".jpg'></div>");
    var so = new SWFObject("/flash/"+file+".swf","fl","882","175","8");
    so.addParam("wmode","transparent");
    so.write("fl");
}
jQuery(document).ready(function($){
  var be=location.pathname.substr(0,4);
  var lo=location.pathname.substr(1);
  var se=location.search.substr(4);
  if($("#anmts")){
    $("#anmts div:eq(0) a:eq(0)").attr("href",$("#anmts span:eq(-1) a:eq(0)").attr("href"));
    $("#anmts div:eq(1) a:eq(0)").attr("href",$("#anmts span:eq(0) a:eq(0)").attr("href"));
    $("#anmts div:eq(2) a:eq(0)").attr("href",$("#anmts span:eq(1) a:eq(0)").attr("href"));
    $("#anmts div:eq(3) a:eq(0)").attr("href",$("#anmts span:eq(2) a:eq(0)").attr("href"));
    $("#anmts div:eq(4) a:eq(0)").attr("href",$("#anmts span:eq(3) a:eq(0)").attr("href"));
    $("#anmts div:eq(5) a:eq(0)").attr("href",$("#anmts span:eq(4) a:eq(0)").attr("href"));
    $("#anmts div:eq(6) a:eq(0)").attr("href",$("#anmts span:eq(5) a:eq(0)").attr("href"));
    $("#anmts div:eq(7) a:eq(0)").attr("href",$("#anmts span:eq(6) a:eq(0)").attr("href"));
    $("#anmts div").eq(3).after("<br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />");
  }
  if($("#pranmts").length!=0){
    var pr=document.getElementById("pranmts").innerHTML;
    for(var i=0; i<pr.length; i++){
	pr=pr.replace("<span class=\"h2\">","<div class='h2'>");
	pr=pr.replace("</span>"," <a id='pa' href=''>more</a></div><div class='d2'>");
	pr=pr.replace("</a></td>","</div></td>");
	pr=pr.replace("7E","index.php?id=");
	pr=pr.replace("%7E","");
	pr=pr.replace("~","");
    }
    document.getElementById("pranmts").innerHTML=pr;
    $("#pranmts .h2").each(function(i){
	$("a",this).attr("href",$("#pranmts .d2:eq("+i+") a:eq(0)").attr("href"));
	if(be=="/fr/") $("a",this).text("plus");
    });
    $(".d2").remove();
  }
  if($(".accordion")){
    $(".accordion tr:nth-child(2n+1)").addClass("hnd");
    $(".accordion tr:nth-child(2n+2)").addClass("drw");
    $(".accordion tr:nth-child(2n+1)").click(function(){
	if(navigator.userAgent.indexOf("MSIE")!=-1){ $(".accordion tr:nth-child(2n+2)").hide(); }
	$(".accordion tr:nth-child(2n+1)").removeClass("hndactive");
	$(this).addClass("hndactive");
    });
    $(".accordion").accordion({ header:"tr:nth-child(2n+1)" });
  }
  if($("div.accordion")){
    $("div.accordion li").addClass("hnd");
    $("div.accordion li a").addClass("drw");
    $("div.accordion li").click(function(){
	$("div.accordion li").removeClass("hndactive");
	$(this).addClass("hndactive");
    });
    $("div.accordion").accordion({ header:"li.hndactive" });
  }
  //if($("#lndiv")){ $("#lndiv ul").attr("id","ln"); }
  if($("#map")){
    $("#map area").mouseover(function(){
	var rList = "."+$(this).attr("id")+"-list";
	if(!$("#txt td").hasClass("selected")) $(rList).css("display","inline"); $("<img src='/images/boxlft.png' id='im'>").appendTo("td"+rList);
    }).mouseout(function(){
	var rList = "."+$(this).attr("id")+"-list";
	if(!$("#txt td").hasClass("selected")) $(rList).css("display","none");
    });
    $("#map area").click(function(){
	$("#txt td").removeClass("selected").css("display","none");
	var rList = "."+$(this).attr("id")+"-list";
	$(rList).addClass("selected").css("display","inline");
    });
  }
  if($(".newtbl")){
    $(".newtbl tr:even td").attr("style","background:#efeeed; border-top:1px solid #ccc; border-bottom:1px solid #ccc;");
    $(".newtbl tr").each(function(){ $("td:eq(0)",this).css({ display:"none", background:"none", border:0 }); });
    $(".newtbl .s h3").attr("style","position:relative; margin-top:-1px; border-top:2px solid #ccc; font-size:8pt; line-height:11pt;");
  }
  if(lo=="news-and-investor-center/archives/press-release-archives-2010.php" ||
	lo=="news-and-investor-center/archives/press-release-archives-2009.php" ||
	lo=="news-and-investor-center/archives/press-release-archives-2008.php" ||
	lo=="news-and-investor-center/archives/press-release-archives-2007.php" ||

	lo=="fr/news-and-investor-center/archives/archives-des-communiques-de-presse-2010.html" ||
	lo=="fr/news-and-investor-center/archives/archives-des-communiqu-de-presse-2009.html" ||
	lo=="fr/news-and-investor-center/archives/archives-des-communiqu-de-presse-2008.html" ||
	lo=="fr/news-and-investor-center/archives/archives-des-communiqu-de-presse-2007.html" ||

	lo=="sp/news-and-investor-center/archives/press-release-archives-2010.php" ||
	lo=="sp/news-and-investor-center/archives/press-release-archives-2009.php" ||
	lo=="sp/news-and-investor-center/archives/press-release-archives-2008.php" ||
	lo=="sp/news-and-investor-center/archives/press-release-archives-2007.php" ||

	lo=="kr/news-and-investor-center/archives/press-release-archives-2010.html" ||
	lo=="kr/news-and-investor-center/archives/press-release-archives-2009.html" ||
	lo=="kr/news-and-investor-center/archives/press-release-archives-2008.html" ||
	lo=="kr/news-and-investor-center/archives/press-release-archives-2007.html"){
    $(".subcontent .h2").css({"display":"block","margin":"5px 0px -12px 0px"}); $(".subcontent img").attr("align","texttop"); $(".subcontent p").css("padding-bottom","10px");
  }else{
	if($(".subcontent") && lo!="news-and-investor-center.php" && lo!="news-and-investor-center/press-releases.php" && lo!="fr/news-and-investor-center.php" && lo!="fr/news-and-investor-center/press-releases.php" && lo!="kr/news-and-investor-center.php" && lo!="kr/news-and-investor-center/press-releases.php" && lo!="sp/news-and-investor-center.php" && lo!="sp/news-and-investor-center/press-releases.php" && se!=516 && lo!="news-and-investor-center/prosep-in-the-news.php" && lo!="fr/news-and-investor-center/prosep-in-the-news.php" && lo!="kr/news-and-investor-center/prosep-in-the-news.php" && lo!="sp/news-and-investor-center/prosep-in-the-news.php" && lo!="news-and-investor-center/archives/press-release-archives-2010.php" && lo!="fr/news-and-investor-center/archives/archives-des-communiques-de-presse-2010.html" && lo!="sp/news-and-investor-center/archives/press-release-archives-2010.php" && lo!="kr/news-and-investor-center/archives/press-release-archives-2010.html") $(".subcontent .h2").remove(); //$(".subcontent strong:eq(0)").css({"color","#259ab0"});
  }
});
