﻿function OwOpenItemDetail(Path) { var oWnd = radopen(Path, "ItemDetailWindow"); oWnd.set_title(Path); oWnd.center() } function OwOpenItemDetail(Path, Title) { var oWnd = radopen(Path, "ItemDetailWindow"); oWnd.set_title(Title); oWnd.center() } function OwDictionaryLookup() { var searchString = ""; if (window.document.selection) { var rng = window.document.selection.createRange(); searchString = rng.text } else if (window.getSelection) { searchString = window.getSelection().toString() } if (searchString) { var dLanguage = document.getElementById('<%= LanguageFirstPart.ClientID %>').value; var urlSearchString = "http://translate.google.com.vn/#auto|" + dLanguage + "|" + searchString; var dictionaryWindow = window.radopen(urlSearchString, "DictionaryLookupWindow"); dictionaryWindow.show(); dictionaryWindow.center() } } function OwMouseOverTab(sender, eventArgs) { var multiPageID = sender.get_multiPageID(); var tab = eventArgs.get_tab(); sender.set_multiPageID(null); tab.select() } function OwMouseOutTab(eventArgs) { var tabStrip = $find('<%= OwTabStripTop.ClientID%>'); var destElement = eventArgs.relatedTarget || eventArgs.toElement; if ($telerik.isDescendant(tabStrip.get_element(), destElement)) return; var initialTab = tabStrip.findTabByText("<%= Micronet.OpenWeb.Portal.Views.Common.TabStripTop.TabStripTopInitialTab %>"); if (initialTab != null) { initialTab.selectParents() } } function OwClientLoad(sender, eventArgs) { var tabStrip = $find('<%= OwTabStripTop.ClientID%>'); var tab = tabStrip.findTabByUrl("<%= Micronet.OpenWeb.Portal.Views.Common.TabStripTop.UrlPath %>"); if (tab != null) { tab.select() } } function itemOpened(s, e) { if ($owct.isIE8) { $owct.$("li", e.get_item().get_element()).each(function () { this.style.cssText = this.style.cssText }) } }


