// JavaScript Document
<!--

// Used for IE to overcome meta navigation dropdown menu
metaNav = function() {
        var sfEls = document.getElementById("metaNav").getElementsByTagName("LI");
        for (var i=0; i<sfEls.length; i++) {
                sfEls[i].onmouseover=function() {
                        this.className+=" metaNavHover";
                }
                sfEls[i].onmouseout=function() {
                        this.className=this.className.replace(new RegExp(" metaNavHover\\b"), "");
                }
        }
}
if (window.attachEvent) window.attachEvent("onload", metaNav);

// Used for IE to overcome business channel navigation dropdown menu
businessChannelNav = function() {
        var busChlNav = document.getElementById("businessChannelNav");
        if(busChlNav != null) {
                var sfEls = busChlNav.getElementsByTagName("LI");
                for (var i=0; i<sfEls.length; i++) {
                        sfEls[i].onmouseover=function() {
                                this.className+=" businessChannelNavHover";
                        }
                        sfEls[i].onmouseout=function() {
                                this.className=this.className.replace(new RegExp(" businessChannelNavHover\\b"), "");
                        }
                }
        }
}
if (window.attachEvent) window.attachEvent("onload", businessChannelNav);       

// Stop the background image flickering on IE by including this code in the header of your page.
// http://snipplr.com/view/1270/stop-annoying-ie-background-image-flicker-bug/
try {
        document.execCommand('BackgroundImageCache', false, true);
        } 
        catch(e) {
}

// Open a pop up window
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

// Alternate row colours for data tables
window.onload=function()
{       var b, r, t = document.getElementsByTagName("TABLE");
        for(var i=0; i<t.length; i++)
        {       var current_t = t[i];
                if(current_t.className && current_t.className == "dataTable")
                {       b = current_t.getElementsByTagName("TBODY");
                        for(var j=0; j<b.length; j++)
                        {       var current_b = b[j];
                                r = current_b.getElementsByTagName("TR");
                                for(var k=0; k<r.length; k+=2)
                                {       r[k].className = "odd";
                                }
                        }
                }
        }
}
//-->

// Disclaimer
function PrintDisclaimer() {

        document.write("<p>Important legal and regulatory information</p>");    
        document.write("<ul>");
        document.write("<li><a href=\"#\" onClick=\"MM_openBrWindow('http://www.ibb.ubs.com/SSI/legal_notice.html','','scrollbars=yes,width=600,height=600')\">Disclaimer</a></li>");
        document.write("<li><a href=\"#\" onClick=\"MM_openBrWindow('http://www.ibb.ubs.com/SSI/about_cookies.html','','scrollbars=yes,width=600,height=600')\">About cookies</a><a href=\"#\" onClick=\"MM_openBrWindow('/SSI/legal_notice.html','','scrollbars=yes,width=600,height=600')\"></a>");
        document.write("<li><a href=\"http://www.ubs.com/1/e/index/privacy_policy.html\" target=\"_blank\">Privacy policy</a></li>");
        document.write("<li><a href=\"http://www.ibb.ubs.com/bcp\">Business continuity</a><a href=\"#\" onClick=\"MM_openBrWindow('/SSI/about_cookies.html','','scrollbars=yes,width=600,height=600')\"></a></li>");
        document.write("</ul>");
        document.write("<p>Products and services in this web site may not be available for residents of certain jurisdictions. Please consult the restrictions relating to the product or service in question for further information. Activities with respect to US securities are conducted through UBS Securities LLC, a US broker dealer. Member of <a href=\"http://www.sipc.org/\" target=\"_blank\">SIPC</a>.</p>");
        document.write("<p>For information as to which entity provides the services in each jurisdiction, <a href=\"#\" onClick=\"MM_openBrWindow('http://www.ibb.ubs.com/SSI/legal_notice.html','','scrollbars=yes,width=600,height=600')\">click here</a>.</p>");
        document.write("<p>&copy; UBS 1998-2009. All rights reserved.</p>");
}