jQuery(document).ready(/*This function gets loaded when all the HTML, not including the portlets, isloaded.*/function(){    jQuery(".backurlclass").click(    		function () {    			return registerBackUrl(this);    		}    );    jQuery(".backurlformclass").click(    		function () {    			return registerBackUrlForm(this);    		}    );});Liferay.Portlet.ready(/*This function gets loaded after each and every portlet on the page.portletId: the current portlet's idjQueryObj: the jQuery wrapped object of the current portlet*/function(portletId, jQueryObj) {});jQuery(document).last(/*This function gets loaded when everything, including the portlets, is onthe page.*/function() {});function showFlash(movie, name, width, height) {  document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + width + '" height="' + height + '" id="' + name + '">');  document.write('<param name="movie" value="' + movie + '" />');  document.write('<param name="quality" value="high" />');  document.write('<param name="wmode" value="opaque" />');  document.write('<embed src="' + movie + '" quality="high" width="' + width + '" height="' + height + '" name="' + name + '" wmode="opaque" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>');}function openFlashplayer(videoName){var pid = "image_display_INSTANCE_Kfly";var videoURL = "/flashplayer?p_p_id=" + pid + "&p_p_lifecycle=0&p_p_state=exclusive&p_p_mode=view&_" + pid + "_view=view_flashplayer&_" + pid + "_videoName=" + videoName;var width = 380;var height = 310;var leftPos = (screen.width) ? (screen.width - width) / 2 : 100;var topPos = (screen.height) ? (screen.height - height) / 2 : 100;flashWindow = window.open(videoURL, '','resizable=no, scrollbars=no,menubar=no,width=' + width + ',height=' + height + ',top='+topPos+',left='+leftPos);flashWindow.focus();}function registerBackUrlForm(tag, backURLFormIdParam, callBackFunction){var backURLFormId = null;var backURL = Liferay.currentURL;var backURLParams = "";if (undefined != backURLFormIdParam && null != backURLFormIdParam && '' != backURLFormIdParam){backURLFormId = backURLFormIdParam;}else if (undefined != Liferay.backURLForm && null != Liferay.backURLForm && '' != Liferay.backURLForm){backURLFormId = Liferay.backURLForm;}if (null != backURLFormId){backURLForm = jQuery("#"+backURLFormId);backURL = backURLForm.attr("action");if (undefined != Liferay.backURL && null != Liferay.backURL && '' != Liferay.backURL){backURL = Liferay.backURL;}backURLParams = jQuery("select, :input, :checkbox, :radio", backURLForm).serialize();}if (undefined != tag){if ("A"==tag.tagName){url = tag.href;Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL, "params" : backURLParams}, function(){if ("" != url){location.href=url;}});return "" == url;}else if ("INPUT"==tag.tagName && "button"==tag.type){Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL, "params" : backURLParams}, undefined != callBackFunction? callBackFunction : (undefined != Liferay.backURLFunction? Liferay.backURLFunction : ""));return false;}}else{Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL, "params" : backURLParams});}}function registerBackUrl(tag, backURLParam, callBackFunction){var backURL = Liferay.currentURL;if (undefined != backURLParam && null != backURLParam && '' != backURLParam){backURL = backURLParam;}else if (undefined != Liferay.backURL && null != Liferay.backURL && '' != Liferay.backURL){backURL = Liferay.backURL;}if (undefined != tag){if ("A"==tag.tagName){url = tag.href;Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL}, function(){if ("" != url){location.href=url;}});return "" == url;}else if ("INPUT"==tag.tagName && "button"==tag.type){Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL}, undefined != callBackFunction? callBackFunction : (undefined != Liferay.backURLFunction? Liferay.backURLFunction : ""));return false;}}else{Liferay.Service.services.SessionHandler.addBackUrl({ "sessionId" : themeDisplay.getSessionId(), "url" : backURL});}}