function ShowHideEvent(obj)
{
obj = obj.childNodes[2];
ml = obj.childNodes[3];if($(obj).getStyle('height') == '139px')
{
if($(obj).childNodes[0].offsetHeight > 139)
{
$(obj).setStyle({
'height' : 'auto'
});
cont = $(obj).parentNode;
ml = cont.childNodes[3];
ml.innerHTML = '<b>&laquo; Close</b>';
}
}
else
{
$(obj).setStyle({
'height' : '139px'
});}
}function MoreLinks()
{
$$('div.cd').each
(
function(obj)
{
if($(obj).childNodes[0].offsetHeight > 139)
{
cont = $(obj).parentNode;
ml = cont.childNodes[3];
ml.innerHTML = '<b>View More &raquo;</b>';
}
}
);
}
function SearchCalendar(EventID)
{
new Ajax.Updater('CalendarDetail', '/AJAX.php', {
parameters: { query: 'CalendarEventList', EventID: (EventID ? EventID : ''), StartDate: $('StartDate').value, EndDate: $('EndDate').value, Industry: ($('Industry').checked ? 1 : 0)},evalScripts:true,
asynchronous:true
})
}
function CalendarSelector(Month,Year)
{
new Ajax.Updater('CalendarNav', '/AJAX.php', {
parameters: { query: 'CalendarSelector', Month: Month, Year: Year, Industry: ($('Industry').checked ? 1 : 0)},
onComplete:function(){$('CalendarShell').setStyle({height: ($('CalendarNav').getHeight()+65)+'px'});},
evalScripts:true,
asynchronous:true
})
}
function EventRange(Start,End,noscroll)
{
$('StartDate').value = Start;
$('EndDate').value = End;
SearchCalendar();}