$(function() { $("a[href='/swt/']").click(function() { if (typeof(openZoosUrl) != "undefined") { openZoosUrl('chatwin', '&e=fromlink'); return false; } return true; }); });