var LiferayJedi = function () {var $ = jQuery;return {init: function() {var instance = this;instance.handleSearchForm();instance.dropDownMenu();instance.handleLastChild();},handleSearchForm: function() {var searchForm = $('#banner .search');var searchInput = searchForm.find('input[@type=image]');var searchLink = $('<a class="search-input-link" href="javascript:;"></a>');searchLink.click(function() {$(this).parents('form')[0].submit();});searchInput.hide();searchInput.before(searchLink);},handleLastChild: function () {var instance = this;$('#footer ul li:last').addClass('last-child');},dropDownMenu: function() {$(".parent-nav-item").hoverIntent({interval: 25,timeout: 0,over: function () {var instance = $(this);var child = $('.child-menu', this);instance.addClass("init");child.slideDown(100);},out: function () {var instance = $(this);var child = $('.child-menu', this);child.slideUp(50);instance.removeClass("init");}});}};}();jQuery(document).ready(function() {LiferayJedi.init();});/***********************************************Advertisement footer slider***********************************************/var persistclose= 1 //set to 0 or 1. 1 means once the bar is manually closed, it will remain closed for browser sessionvar startX = 0 //set x offset of bar in pixelsvar startY = 0 //set y offset of bar in pixelsvar verticalpos="frombottom" //enter "fromtop" or "frombottom"function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function get_cookie(Name) {var search = Name + "="var returnvalue = "";if (document.cookie.length > 0) {offset = document.cookie.indexOf(search)if (offset != -1) {offset += search.lengthend = document.cookie.indexOf(";", offset);if (end == -1) end = document.cookie.length;returnvalue=unescape(document.cookie.substring(offset, end))}}return returnvalue;}function closebar(){if (persistclose)document.cookie="remainclosed=1"document.getElementById("topbar").style.visibility="hidden"}function staticbar(){barheight=document.getElementById("topbar").offsetHeightvar ns = (navigator.appName.indexOf("Netscape") != -1) || window.opera;var d = document;function ml(id){var el=d.getElementById(id);if (!persistclose || persistclose && get_cookie("remainclosed")=="")el.style.visibility="visible"if(d.layers)el.style=el;el.sP=function(x,y){this.style.left=x+"px";this.style.top=y+"px";};el.x = startX;if (verticalpos=="fromtop")el.y = startY;else{el.y = ns ? pageYOffset + innerHeight : iecompattest().scrollTop + iecompattest().clientHeight;el.y -= startY;}return el;}window.stayTopLeft=function(){if (verticalpos=="fromtop"){var pY = ns ? pageYOffset : iecompattest().scrollTop;ftlObj.y += (pY + startY - ftlObj.y)/8;}else{var pY = ns ? pageYOffset + innerHeight - barheight: iecompattest().scrollTop + iecompattest().clientHeight - barheight;ftlObj.y += (pY - startY - ftlObj.y)/8;}ftlObj.sP(ftlObj.x, ftlObj.y);setTimeout("stayTopLeft()", 10);}ftlObj = ml("topbar");stayTopLeft();}if (window.addEventListener)window.addEventListener("load", staticbar, false)else if (window.attachEvent)window.attachEvent("onload", staticbar)else if (document.getElementById)window.onload=staticbar/*************start ACCORDION*********/ddaccordion.init({headerclass: "silverheader", //Shared CSS class name of headers groupcontentclass: "submenu", //Shared CSS class name of contents grouprevealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseovercollapseprev: true, //Collapse previous content (so only one open at any time)? true/falsedefaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no contentonemustopen: true, //Specify whether at least one header should be open always (so never all headers closed)animatedefault: false, //Should contents open by default be animated into view?persiststate: true, //persist state of opened contents within browser session?toggleclass: ["", "selected"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]togglehtml: ["", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)animatespeed: "slow", //speed of animation: "fast", "normal", or "slow"oninit:function(headers, expandedindices){ //custom code to run when headers have initalized//do nothing},onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed//do nothing}})/*************end ACCORDION*********/