CINXE.COM
World Trade Organization - Home page - Global trade
<!DOCTYPE html> <html lang="en"> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>World Trade Organization - Home page - Global trade</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Content-Language" content="en" /> <meta name="description" content="Global trade - The World Trade Organization (WTO) deals with the global rules of trade between nations. Its main function is to ensure that global trade flows smoothly, predictably and freely as possible." /> <meta name="keywords" content="#globaltrade www.wto.org, World Trade Organization, world trade, global trade, international trade, trade disputes, WTO publications, intellectual property, government procurement, goods, services, economic research, Statistics, OMC, about the WTO, trade, agriculture, textiles, services, intellectual property, anti-dumping, subsidies, environment, investment, research and analysis, international trade, trade topics, principles of the trading system" /> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@wto"> <meta name="twitter:creator" content="@wto"> <meta name="twitter:title" content="World Trade Organization - Global trade"> <meta name="twitter:description" content="Global trade - The World Trade Organization (WTO) deals with the global rules of trade between nations. Its main function is to ensure that trade flows as smoothly, predictably and freely as possible."> <meta name="twitter:image" content="http://www.wto.org/images/placeholder_md.jpg"> <meta property="og:url" content="https://www.wto.org/index.htm" /> <meta property="og:type" content="article" /> <meta property="og:title" content="World Trade Organization - Global trade" /> <meta property="og:description" content="Global trade - The World Trade Organization (WTO) deals with the global rules of trade between nations. Its main function is to ensure that trade flows as smoothly, predictably and freely as possible." /> <meta property="og:image" content="http://www.wto.org/images/placeholder_md.jpg" /> <meta property="og:image:secure_url" content="https://www.wto.org/images/placeholder_md.jpg" /> <meta property="og:image:type" content="image/jpeg" /> <script language="javascript" type="text/javascript"> var wto_language = "e"; // Language for menu (e,f or s) </script> <script language="Javascript1.2" src="/library/imrdlib.js" type="text/javascript"></script> <script type="text/javascript" src="/library/wtomenus/jquery.min.js"></script> <script language="Javascript1.2" src="/library/wtomenus/jkmegamenu.js" type="text/javascript"> /** jQuery Mega Menu- Visit JavaScript Kit at http://www.javascriptkit.com/ for full source code **/ </script> <script language="javascript1.2" src="/library/wtomenus/common_data_e.js" type="text/javascript"></script> <script language="Javascript1.2" src="/library/news/news_vars_e.js" type="text/javascript"></script> <script language="Javascript1.2" src="/library/news/current_news_e.js" type="text/javascript"></script> <script language="Javascript1.2" src="/library/news/index_news_code_e.js" type="text/javascript"></script> <script language="Javascript1.2" type="text/javascript" src="/library/photo_gallery/slideshow_data.js"></script> <script language="Javascript1.2" type="text/javascript" src="/library/photo_gallery/photo_gallery_code.js"></script> <!--START: Omar's Scripts for Calendar Box--> <script language="Javascript1.2" type="text/javascript" src="/library/events/interactive_cal_code.js"></script> <script language="Javascript1.2" type="text/javascript"> // load photo gallery & news items for this year & last year var now = new Date(); if (FormsPrincipal.IsAuthenticated && (FormsPrincipal.IsInRole('Secretariat') || FormsPrincipal.IsInRole('DOL-R-WTO') || FormsPrincipal.IsInRole('EXT_VC_Members') || FormsPrincipal.IsInRole('DOL-R-OBS') || FormsPrincipal.IsInRole('EXT_VC_Observers'))) { document.write("<script language=\"javascript1.2\" src=\"/library/events/tmeetings_" + now.getFullYear() + ".js\" type=\"text/javascript\"><\/script>"); } else { document.write("<script language=\"Javascript1.2\" src=\"/library/events/meetings_" + now.getFullYear() + ".js\" type=\"text/javascript\"><\/script>"); } </script> <script language="javascript1.2" type="text/javascript" src="/library/bodies/bodies_public.js"></script> <script language="JavaScript1.2" type="text/javascript"> <!-- var old_browser = false; // set whether did you know is to display var display_did_you_know = false; // true or false var dyn_id = "22"; // id of did you know item to display - leave blank if random // set id of featured video //var video_id = 317; var video_style = "long";// long or short // set variables for use with drop down menus var currentitem = 0; var wto_string = ""; // Path var this_page = location.href; var homepage = "index.htm"; // get the relative path var wto_folders = ""; var wto_dotslash = ""; var newsloop; //--> </script> <!--END: Omar's Scripts for Calendar Box--> <!-- link to the stylesheet for the page --> <link rel="stylesheet" type="text/css" href="/library/styles/wto.css" /> <link href="/library/events/responsive/lightbox/lightgallery.css" rel="stylesheet"> <link href="/library/events/responsive/lightbox/lightgallery_style.css" rel="stylesheet"> <style> #home .panel.panel-webcast { border-bottom: 4px solid $grayborder; } .paraboldcolourtext { color: #e83845; } .bgBlue { background-color: #0595D4; width: 10%; margin-right: 1%; padding: 0px 1px; text-align: center; } .bgBlue img { margin-top: 0px; } .whiteText { color: #fff; margin-top: 0px; margin-bottom: 5px; } .bgRestricted { background-color: #A9AAAC; } </style> </head> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-4C48KGVJMD"></script> <script> window.dataLayer = window.dataLayer || []; function gtag() { dataLayer.push(arguments); } gtag('js', new Date()); gtag('config', 'G-4C48KGVJMD'); </script> <body id="home"> <!-- Constrain the page display within the window --> <div id="page" class="pagestyle"> <!-- Display a banner on the page --> <div id="banner"> <noscript> <h1>WORLD TRADE ORGANIZATION </h1> <p>Global trade - The World Trade Organization (WTO) deals with the global rules of trade between nations. Its main function is to ensure that global trade flows smoothly, predictably and freely as possible. </p> <p class="menudefaulttext"><a href="http://www.wto.org/indexsp.htm" class="menudefaulttext">Home</a> | <a href="http://www.wto.org/english/thewto_e/thewto_e.htm" class="menudefaulttext">About WTO</a> | <a href="http://www.wto.org/english/news_e/news_e.htm" class="menudefaulttext">News & events</a> | <a href="http://www.wto.org/english/tratop_e/tratop_e.htm" class="menudefaulttext">Trade topics</a> | <a href="http://www.wto.org/english/thewto_e/whatis_e/tif_e/org6_e.htm" class="menudefaulttext">WTO membership</a> | <a href="http://www.wto.org/english/res_e/res_e.htm" class="menudefaulttext">Documents & resources</a> | <a href="http://www.wto.org/english/forums_e/forums_e.htm" class="menudefaulttext">External relations</a></p> <p class="bannertoptext"><a href="http://www.wto.org/english/info_e/cont_e.htm" class="bannertoptext">Contact us</a> | <a href="http://www.wto.org/english/info_e/site2_e.htm" class="bannertoptext">Site map</a> | <a href="http://www.wto.org/english/info_e/site_e.htm" class="bannertoptext">A-Z</a> | <a href="http://search.wto.org/search?site=English_website&proxystylesheet=english_frontend&output=xml_no_dtd&client=english_frontend&proxycustom=%3CADVANCED/%3E&numgm=5" class="bannertoptext">Search</a></p> </noscript> </div> <!-- end of banner --> <!-- Display the content on the page --> <div id="content"> <header class="sr-only"> <h1>World Trade Organization</h1> </header> <div class="row"> <div class="col-xs-12"> <div id="news-slider" class="flexslider"></div> </div> <div class="col-xs-12 col-sm-6 col-md-8 col-lg-9" id="news-slider-destination"> <div class="row"> <div class="col-xs-12"> <article> <div class="panel panel-default panel-date"> <div class="panel-heading visible-xs-block toggled">WTO Secretariat at Climate Change COP29</div> <div class="row no-gutters feature-wide collapse in"> <div class="col-xs-12 col-md-12 col-lg-6"> <a href="/english/tratop_e/envir_e/cop29_e/wto_cop29_e.htm" ><img alt="" src="/images/img_index/photos/cop29_logo_md.jpg" class="img-responsive"></a> </div> <div class="col-xs-12 col-md-12 col-lg-6"> <div class="panel-body pt10 pb10"> <h3 class="panel-title mb10 hidden">WTO Secretariat at Climate Change COP29</h3> <div style="float: right" class="pt20"> <time datetime="2024-11-01" class="date pull-left" style="width: 45px;">11-22<span>Nov</span></time> </div> <h2 class="h3">WTO Secretariat at Climate Change COP29</h2> <ul class="mt20"> <li><a href="/english/tratop_e/envir_e/cop29_e/wto_cop29_e.htm" class="link-blue semi-bold500">WTO Secretariat participation</a></li> <li><a href="/english/tratop_e/envir_e/cop29_e/trade_investment_house_cop29_e.htm" class="link-blue semi-bold500">Trade and Investment House</a></li> <li><a href="/english/tratop_e/envir_e/cop29_e/knowledge_products_e.htm" class="link-blue semi-bold500">Knowledge products</a></li> <li><a href="/english/tratop_e/envir_e/climate_intro_e.htm" class="link-blue semi-bold500">More on trade and climate change</a></li> </ul> </div> </div> </div> </div> </article> </div> </div> <div class="row"> <div class="mobile-meetings"> <div class="meetings"> <div class="panel panel-default panel-date-list"> <div class="panel-heading visible-xs-block">Meetings</div> <div class="panel-body collapse"> <div class="clearfix"> <h2 class="h3 pull-left hidden-xs">Meetings</h2> </div> <div class="nano"> <div class="nano-content"> <div id="calendar"> </div> </div> </div> <p>Additional functionality is available on the full calendar.</p> <div class="clearfix"> <a href="/english/news_e/events_e/events_calendar_view_e.htm" class="btn btn-sm btn-blue mt0 h5"><i class="icon-calendar"></i> See full calendar</a> </div> </div> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">WTO Annual Report 2024</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/res_e/publications_e/anrep24_e.htm"><img alt="" src="/images/img_index/photos/ar24_30jul24_md.jpg" class="img-responsive"></a> </div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">WTO Annual Report 2024</h2> <ul class="mt20"> <li><a href="/english/res_e/booksp_e/anrep_e/ar24_chap0_e.pdf" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Message from DG Okonjo-Iweala</a></li> <li><a href="/english/res_e/publications_e/anrep24_e.htm" class="link-blue semi-bold500">Download Report</a></li> <li><a href="https://onlinebookshop.wto.org/shop/article_details.asp?Id_Article=961" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Buy printed copy</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">WTO Explained</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="javascript:openAVideo(807)"><img alt="blog" src="/images/img_index/video807_e.jpg" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">WTO Explained</h2> <ul> <li><a href="javascript:openAVideo(807)" class="link-blue semi-bold500">Watch video</a></li> <li><a href="/english/res_e/webcas_e/webcas_e.htm" class="link-blue semi-bold500" >Other WTO videos</a></li> </ul> </div> </div> </div> </div> </div> <!--END: Middle Box--> <!--START: DG Box--> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">World Trade Report 2024</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/res_e/publications_e/wtr24_e.htm"><img alt="" src="/images/img_index/photos/wtr24_md.jpg" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <!--<div style="float: right"><time datetime="2024-06-09" class="date pull-left">9 <span>Jun</span></time></div>--> <h2 class="h3">World Trade Report 2024<br> <small>Trade and inclusiveness: How to make trade work for all</small></h2> <ul class="mt20"> <li><a href="/english/news_e/news24_e/wtr_09sep24_e.htm" class="link-blue semi-bold500">Launch of the Report</a></li> <li><a href="/english/res_e/booksp_e/wtr24_e/wtr24_e.pdf" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Download publication</a></li> <li><a href="https://onlinebookshop.wto.org/shop/article_details.asp?Id_Article=962" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Buy printed copy</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">Director-General Okonjo-Iweala</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/thewto_e/dg_e/dg_e.htm"> <img alt="" src="/images/img_index/photos/dgno_5mar21_md.jpg" class="img-responsive"> </a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">Director-General Okonjo-Iweala</h2> <ul class="mb0 mt10"> <li><a href="/english/res_e/photo_gallery_e/photo_gallery_e.htm?subject=DGNO" class="link-blue semi-bold500">Photo gallery </a></li> <!--<li><a href="javascript:openAVideo(559)" class="link-blue semi-bold500">Video: Dr Okonjo-Iweala's first year at the helm of the WTO</a></li>--> <li><a href="/english/thewto_e/dg_e/dg_e.htm" class="link-blue semi-bold500">More about DG Okonjo-Iweala</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">Latest WTO Blog</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/blogs_e/data_blog_e/blog_dta_20nov24_e.htm"><img alt="blog" src="/images/img_index/photos/blog_data_e_md.jpg" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">Latest WTO Blog</h2> <ul> <li><a href="/english/blogs_e/data_blog_e/blog_dta_20nov24_e.htm" class="link-blue semi-bold500">Trade in intermediate goods on the rise in Africa</a></li> <li><a href="/english/blogs_e/blogs_e.htm" class="link-blue semi-bold500">All WTO blogs</a></li> </ul> </div> </div> </div> </div> </div> <!--END: Middle Box--> <!--START: DG Box--> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">Fisheries subsidies</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="javascript:openAVideo(620)"><img alt="fisheries" src="/images/img_index/2023_02_10_fisheries_e.jpg" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">Fisheries subsidies</h2> <ul class="mb0 mt10"> <li><a href="/english/news_e/news24_e/fish_15nov24_e.htm" class="link-blue semi-bold500">Costa Rica formally accepts Agreement on Fisheries Subsidies</a></li> <li><a href="/english/tratop_e/rulesneg_e/fish_e/fish_e.htm" class="link-blue semi-bold500">More on fisheries subsidies</a></li> </ul> </div> </div> </div> </div> </div> <!--END: Middle Box--> <!-- another row of boxes --> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">How AI shapes and is shaped by international trade</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/res_e/reser_e/rese_2111202410_e/rese_2111202410_e.htm" ><img alt="" src="/library/events/event_resources/rese_2111202410/banner_img.jpg" class="img-responsive"></a> </div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <div style="float: right"> <time datetime="2024-11-11" class="date pull-left" style="width: 45px;">21<span>Nov</span></time> </div> <h2 class="h3">How AI shapes and is shaped by international trade</h2> <ul class="mt20"> <li><a href="/english/res_e/reser_e/rese_2111202410_e/rese_2111202410_e.htm" class="link-blue semi-bold500">Programme</a></li> </ul> </div> </div> </div> </div> </div> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">30 Years of the WTO</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/thewto_e/30y_e/30y_e.htm"><img alt="blog" src="/images/30y/30y_mainpage.png" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <h2 class="h3">30 Years of the WTO</h2> <ul> <li><a href="javascript:openAVideo(753)" class="link-blue semi-bold500">Video: WTO marks 30th anniversary of Marrakesh Agreement</a></li> <li><a href="/english/thewto_e/30y_e/30ytimeline_e.htm" class="link-blue semi-bold500" >30 years of the WTO: a timeline</a></li> <li><a href="/english/thewto_e/30y_e/30y_e.htm" class="link-blue semi-bold500" >Further details</a></li> </ul> </div> </div> </div> </div> </div> <!--END: Middle Box--> <!--START: DG Box--> <div class="col-xs-12 col-sm-12 col-md-12 col-lg-4 pt20"> <div class="panel panel-default equal-heights"> <div class="panel-heading visible-xs-block">Working together for better climate action</div> <div class="row collapse"> <div class="col-xs-12 col-md-6 col-lg-12"><a href="/english/res_e/publications_e/climate_action_e.htm"><img alt="" src="/images/img_index/photos/clim_action_23oct24_md.jpg" class="img-responsive"></a></div> <div class="col-xs-12 col-md-6 col-lg-12"> <div class="panel-body"> <!--<div style="float: right"><time datetime="2024-06-09" class="date pull-left">9 <span>Jun</span></time></div>--> <h2 class="h3">Working together for better climate action<br> <small>Carbon pricing, policy spillovers, and global climate goals</small></h2> <ul class="mt20"> <li><a href="/english/news_e/news24_e/igo_24oct24_e.htm" class="link-blue semi-bold500">Launch of the report</a></li> <li><a href="/english/res_e/booksp_e/climate_action_e.pdf" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Download report</a></li> <li><a href="https://onlinebookshop.wto.org/shop/article_details.asp?Id_Article=964" class="link-blue semi-bold500" target="_blank" data-content="opens in a new window" data-toggle="tooltip">Buy printed copy</a></li> </ul> </div> </div> </div> </div> </div> <!-- end another row of boxes--> <div class="col-xs-12 col-sm-12 col-md-6" id="membersbox"> </div> <div class="col-xs-12 col-sm-12 col-md-6" id="membershowto"> </div> </div> </div> <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"> <div class="home-sidebar"> <div class="desktop-meetings"></div> <div class="panel panel-default panel-webcast"> <div class="panel-heading visible-xs-block">Live webcasting</div> <div class="panel-body collapse pt10 pb10"> <h2 class="h3 hidden-xs">Live webcasting</h2> <div id="liveNowDiv"></div> </div> </div> <div class="panel panel-default panel-icon-grid" id="publicbox"> <div class="panel-heading visible-xs-block">Our areas of activity</div> <div class="panel-body collapse"> <h2 class="h3 hidden-xs">Our areas of activity</h2> <ul class="list-style-none"> <li> <a href="/english/tratop_e/dda_e/dda_e.htm" data-placement="top" data-toggle="popover" title="Trade Negotiations" data-content="Changes to the rules of trade require the agreement of all WTO members, who must reach consensus through rounds of negotiations. The most recent round — the Doha Development Agenda — began in 2001."> <i class="icon-meeting"></i> <h4 class="small upper">Trade Negotiations</h4> </a> </li> <li> <a href="/english/tratop_e/dispu_e/dispu_e.htm" data-placement="top" data-toggle="popover" title="Dispute Settlement" data-content="WTO members bring disputes to the WTO if they think their rights under trade agreements are being infringed. Settling disputes is the responsibility of the Dispute Settlement Body."> <i class="icon-scales"></i> <h4 class="small upper">Dispute Settlement</h4> </a> </li> <li> <a href="/english/tratop_e/monitor_e/monitor_e.htm" data-placement="top" data-toggle="popover" title="Implementation and monitoring" data-content="Various WTO councils and committees seek to ensure that WTO agreements are being properly implemented. All WTO members undergo periodic scrutiny of their trade policies and practices."> <i class="icon-mag2"></i> <h4 class="small upper">Implementation and monitoring</h4> </a> </li> <li> <a href="/english/tratop_e/devel_e/build_tr_capa_e.htm" data-placement="top" data-toggle="popover" title="Building trade capacity" data-content="The WTO aims to help developing countries build their trade capacity and allows them a longer time to implement trade agreements. Hundreds of training courses are organized each year for officials from developing countries."> <i class="icon-speech"></i> <h4 class="small upper">Building trade capacity</h4> </a> </li> </ul> </div> </div> <div class="panel panel-default panel-vacancies"> <div class="panel-heading visible-xs-block">Vacancies</div> <div class="panel-body collapse"> <h2 class="h3 hidden-xs">Working at the WTO </h2> <p>General information about recruitment can be found <a href="/english/thewto_e/vacan_e/recruit_e.htm" class="link-blue">here</a></p> <!--<a href="https://erecruitment.wto.org/public/index-wto.asp?lng=en" class="link-blue">View all vacancies <i class="icon-r-arrow"></i></a>--> </div> </div> </div> </div> </div> </div> <!-- end of main page content --> <!-- Display the footer on the page --> <div id="footer"> </div> <!-- end of footer --> </div> <div id="lightbox" class="lightbox" style="position:fixed; top:0px; left:0px; width:100%; height:100%" tabindex="0" onClick="javascript:hideLightBox()"></div> <div class="tooltiptext" id="navtxt" style="left: 0px; visibility: hidden; position: absolute; top: -100px; z-index:5000"></div> <div style="left: 0px; visibility: hidden; position: absolute; top: -100px; z-index:0">Global trade - The World Trade Organization (WTO) deals with the global rules of trade between nations. Its main function is to ensure that global trade flows smoothly, predictably and freely as possible.</div> <!-- call javascript library for drop down menus --> <script language="javascript1.2" src="/library/wtomenus/loader_wide_2011.js" type="text/javascript"></script> <script language="Javascript1.2" src="/library/flashvideo/flash_video_e.js" type="text/javascript"></script> <script language="Javascript1.2" src="/library/flashvideo/flash_video_code.js" type="text/javascript"></script> <script language="javascript1.2" src="/library/events/responsive/lightbox_scripts.js" type="text/javascript"></script> <script language="javascript1.2" type="text/javascript"> var showintrotext = false; var membersbox = document.getElementById("membersbox"); var membershowto = document.getElementById("membershowto"); var newsslider = document.getElementById("news-slider"); // var member_frame = document.getElementById("member_frame"); var publicbox = document.getElementById("publicbox"); if (verifyUserRoles('DOL-R-WTO#Secretariat#DOL-R-OBS')) { var info_url = ""; var how_to_url = ""; if (verifyUserRoles('DOL-R-OBS')) { info_url = "/english/forums_e/members_e/xmembers_e/info_for_observers_e.htm"; how_to_url = "/english/forums_e/members_e/xmembers_e/observers_how_to_e.htm"; } else { info_url = "/english/forums_e/members_e/xmembers_e/info_for_members_e.htm"; how_to_url = "/english/forums_e/members_e/xmembers_e/members_how_to_e.htm"; } membersbox.style.display = "block"; membershowto.style.display = "block"; $.ajax({ dataType: 'html', cache: false, url: info_url, success: function (data) { $("#membersbox").append($('.panel', $(data))); } }); $.ajax({ dataType: 'html', cache: false, url: how_to_url, success: function (data) { $("#membershowto").append($('.panel', $(data))); } }); //publicbox.style.display = "none"; } else { membersbox.style.display = "none"; membershowto.style.display = "none"; //publicbox.style.display = "block"; } loadNews(); // load news items // newsloop = setInterval('changeNews(0)',5000); // start news loop var variables_array = new Array(); var temp_array = new Array(); var z = 0; var reload_page = ""; var error_value = "false"; if (location.search.length > 0) { variables_array = unescape(location.search.substring(1, location.search.length)).split("&"); for (z = 0; z < variables_array.length; z++) { temp_array = variables_array[z].split("="); switch (temp_array[0]) { case "error": error_value = temp_array[1]; break; case "ReturnUrl": reload_page = temp_array[1]; break; } } } loadYrCalendar_HomePage(now.getFullYear()); if (FormsPrincipal.IsAuthenticated && FormsPrincipal.IsInRole('DOL-R-WTO')) { // document.write("<script language=\"javascript1.2\" src=\"/library/xlibrary/announcement.js\" type=\"text/javascript\"><\/script>"); home_page_cookies(wto_language); } if ((error_value == "true") && (reload_page != "")) { var popupName = ""; if (reload_page.indexOf("french") != -1) { popupName = "login_f"; } else if (reload_page.indexOf("spanish") != -1) { popupName = "login_s"; } else { popupName = "login_e"; } //var popUpToOpen = "/" + popupName + ".htm?caller=" + escape(reload_page); var popUpToOpen = "/" + popupName + ".aspx?caller=" + escape(reload_page) + "&unauthorized=true"; //setTimeout(function() { //openAPopup(popUpToOpen,'links',330,440,1); //},3000); window.top.location = popUpToOpen; } $.ajax({ url: '/library/webcast/webcast_data.json', dataType: 'json', success: function (data) { var futureWebcastArray = []; var futureContentHtml = ""; if (data.length > 0) { $.each(data, function (index) { var webcast_date = new Date(parseInt(data[index].webcast_date.substr(6))); var todaysDate = new Date(); webcast_date = new Date(webcast_date.getFullYear(), webcast_date.getMonth(), webcast_date.getDate()); todaysDate = new Date(todaysDate.getFullYear(), todaysDate.getMonth(), todaysDate.getDate()); if (webcast_date >= todaysDate && (data[index].vod_url == "")) { futureWebcastArray.push(data[index]); } }); futureWebcastArray.sort(function (a, b) { var textA = a.title_en.toUpperCase(); var textB = b.title_en.toUpperCase(); return (textA < textB) ? -1 : (textA > textB) ? 1 : 0; }); futureWebcastArray.sort(function (a, b) { return a.id - b.id; }); if (futureWebcastArray.length > 0) { futureWebcastArray.sort(function (a, b) { return a.start_time.localeCompare(b.start_time); }); futureWebcastArray.sort(function (a, b) { return a.webcast_date.localeCompare(b.webcast_date); }); console.log(futureWebcastArray); $.each(futureWebcastArray, function (index_future) { var w_date = new Date(parseInt(futureWebcastArray[index_future].webcast_date.substr(6))); var videoDateSTR = w_date.getDate() + " " + month_array_short[w_date.getMonth() + 1]; var webcastTitle = futureWebcastArray[index_future].title_en; if (webcastTitle.length > 100) { webcastTitle = webcastTitle.substr(0, 100); webcastTitle = webcastTitle + "..."; } futureContentHtml += '<p><b>' + videoDateSTR + ':</b> <a href="/english/res_e/webcas_e/live_webcast_e.htm" class="link-blue">' + webcastTitle + '</a></p>'; futureContentHtml += '<a href="/english/res_e/webcas_e/live_webcast_e.htm" class="link-blue">View all live webcasts <i class="icon-r-arrow"></i></a>'; return false; }); } if (futureContentHtml == "") { $("#liveNowDiv").html('<p class="text-danger">Currently no live sessions available.</p>'); } else { $("#liveNowDiv").html(futureContentHtml); } } else { console.log('<h4>No webcasting data found.</h4>'); } }, statusCode: { 404: function () { alert('There was a problem with the server. Try again soon!'); } } }); $(document).ready(function () { var currentUrl = decodeURIComponent(window.location.href); var url = new URL(currentUrl); var meetingId = url.searchParams.get("meetingId"); if (meetingId) { setTimeout(function () { $("a[href*='" + meetingId + "']")[0].click(); }, 1500); } }); </script> <script>(function(){function c(){var b=a.contentDocument||a.contentWindow.document;if(b){var d=b.createElement('script');d.innerHTML="window.__CF$cv$params={r:'8e7677089bfbce7d',t:'MTczMjQyMDU0Mi4wMDAwMDA='};var a=document.createElement('script');a.nonce='';a.src='/cdn-cgi/challenge-platform/scripts/jsd/main.js';document.getElementsByTagName('head')[0].appendChild(a);";b.getElementsByTagName('head')[0].appendChild(d)}}if(document.body){var a=document.createElement('iframe');a.height=1;a.width=1;a.style.position='absolute';a.style.top=0;a.style.left=0;a.style.border='none';a.style.visibility='hidden';document.body.appendChild(a);if('loading'!==document.readyState)c();else if(window.addEventListener)document.addEventListener('DOMContentLoaded',c);else{var e=document.onreadystatechange||function(){};document.onreadystatechange=function(b){e(b);'loading'!==document.readyState&&(document.onreadystatechange=e,c())}}}})();</script></body> </html>