<%-- Licensed Materials - Property of IBM, 5724-E76, (C) Copyright IBM Corp. 2001, 2004, 2006 - All Rights reserved. NOTE: See notes in Default.jsp for information regarding editing theme JSP fragments. --%> <%-- ****************** BIDI ****************** The following bit of code is to make BIDI support a little easier. These variables are meant to suppliment the <portal:bidi ...> tag. There are situations where it is easier to use these variables instead of the tag itself. --%> <% String bidiAlignRight = "right"; // BIDI sensitive value for align="right" attribute String bidiAlignLeft = "left"; // BIDI sensitive value for align="left" attribute String bidiDirAttr = ""; // BIDI sensitive value for dir="rtl" attribute String bidiImageRTL = null; // BIDI sensitive value for adding _rtl to a graphic boolean isRTL = false; pageContext.setAttribute("bidiSuffix", ""); %> <script type="text/javascript"> var bidiSupport = new Object(); bidiSupport.bidiAlignRight = "right"; bidiSupport.bidiAlignLeft = "left"; bidiSupport.bidiDirAttr = ""; bidiSupport.bidiImageRTL = null; bidiSupport.isRTL = false; </script> <portal-fmt:bidi dir="rtl"> <% bidiAlignRight = "left"; // BIDI sensitive value for align="right" attribute bidiAlignLeft = "right"; // BIDI sensitive value for align="left" attribute bidiDirAttr = "dir=\"rtl\""; // BIDI sensitive value for dir="rtl" attribute bidiImageRTL = "_rtl"; // BIDI sensitive value for adding _rtl to a graphic isRTL = true; pageContext.setAttribute("bidiSuffix", "RTL"); %> <script type="text/javascript"> bidiSupport.bidiAlignRight = "left"; bidiSupport.bidiAlignLeft = "right"; bidiSupport.bidiDirAttr = "dir=\"rtl\""; bidiSupport.bidiImageRTL = "_rtl"; bidiSupport.isRTL = true; </script> </portal-fmt:bidi>