multiple topbanner big banner added
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 1 Aug 2008 07:45:40 +0000 (07:45 +0000)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Fri, 1 Aug 2008 07:45:40 +0000 (07:45 +0000)
web/commons.js

index 3207c11..e305e99 100644 (file)
@@ -140,10 +140,14 @@ function removeEvent(obj,type,fn)
 
 function show_bigpict(obj, act, x, y)
 {
-   var big;
+   var big, sfx;
 
-   // alert("offsetTop: "+obj.offsetTop+"  offsetLeft: "+obj.offsetLeft+"obj.id: "+obj.id);
-   big = $(obj.id+"_big");
+   if (arguments.length > 4)
+       sfx = arguments[4];
+   else
+       sfx = '';
+
+   big = $(obj.id+"_big"+sfx);
    if (act == "over") {
        big.style.left = obj.offsetLeft + x+"px";
        big.style.top  = obj.offsetTop  + y+"px";