I see... it's the popups that aren't working like expected. And I can tell you why.
When the require() for the small calendar gets called, that's when the JavaScript function popupEvent gets added to the page.
This is the function for your first calendar:
HTML Code:
<script type="text/JavaScript">
<!--
function popupEvent(ev, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
win = window.open("/calendar/functions/popup.php?ev=" + ev + "&showCat=1|3|4&oc=1","Calendar","scrollbars=yes,status=no,location=no,toolbar=no,menubar=no,directories=no,resizable=yes,width=" + w + ",height=" + h + ",top=" + wint + ",left=" + winl + "");
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->
</script>
Then you get your second calendar on the page... and the second popupEvent
HTML Code:
<script type="text/JavaScript">
<!--
function popupEvent(ev, w, h) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
win = window.open("/calendar/functions/popup.php?ev=" + ev + "&showCat=a|2|6&oc=1","Calendar","scrollbars=yes,status=no,location=no,toolbar=no,menubar=no,directories=no,resizable=yes,width=" + w + ",height=" + h + ",top=" + wint + ",left=" + winl + "");
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}
//-->
</script>
Now, on the days that have events, they call the function like this
HTML Code:
onclick="popupEvent(2455614,250,220)"
The first variable is the day to show in the popup, and the other two are for the size of the popup. Now, when you look in the function, you see that the $showCat has been added in there.
What do you think happens when something on a page calls a function that has been declared twice?
Yup... it takes the first one.
So, your only fix is to not use on-click popups. However, Joomla doesn't play nice with mouse-over popups either as the variables required don't get declared properly.
Rock, meet hard place.
I would say your best bet is in trying to figure out how to fix Joomla so that the variables get called properly for the mouse-overs, because there's no fixing the other popups.
Alternatively, you could run your calendars in small iframes...