| 137 | | //============================================================================= |
| 138 | | info_img = jQuery("#" + Parent + " img").info(); |
| 139 | | info_description.top = info_img.bottom; |
| | 132 | |
| | 133 | if (theme.match(RegExp("simple", "gi"))) { |
| | 134 | jQuery("#" + Parent).css({ padding: "0px", |
| | 135 | marginLeft: "0px", |
| | 136 | marginRight: "auto", |
| | 137 | marginTop: "0px", |
| | 138 | marginBottom: "0px" |
| | 139 | }); |
| | 140 | } else { |
| | 141 | jQuery("#" + Parent).css({ padding: "0px", |
| | 142 | marginLeft: "auto", |
| | 143 | marginRight: "auto", |
| | 144 | marginTop: "0px", |
| | 145 | marginBottom: "0px" |
| | 146 | }); |
| | 147 | } |
| | 148 | |
| | 149 | if (theme.match(RegExp("luciano", "g"))) { |
| | 150 | info_img = jQuery("#" + Parent + " #theImg").info(); |
| | 151 | } else { |
| | 152 | |
| | 153 | info_img = jQuery("#" + Parent + " img").info(); |
| | 154 | } |
| | 155 | |
| | 156 | info_description.marge = { bottom: info_img.padding.bottom + info_img.margin.bottom + info_img.borderwidth.bottom, |
| | 157 | top: info_img.padding.top + info_img.borderwidth.top |
| | 158 | } |
| | 159 | |
| | 160 | info_description.top = info_img.bottom + info_img.margin.bottom + info_img.borderwidth.bottom; |
| 145 | | |
| 146 | | info_desc = jQuery("#" + Parent + " p:last").info(); |
| 147 | | info_description.bottom = info_desc.bottom; |
| | 166 | info_desc = jQuery("#" + Parent + " p:first").info(); |
| | 167 | // if (info_desc.top > info_img.bottom) |
| | 168 | // info_description.top = info_desc.top; |
| | 169 | |
| | 170 | |
| | 171 | info_table = jQuery(".infoTable").info(); |
| | 172 | |
| | 173 | if (info_table.top > info_description.bottom) |
| | 174 | info_description.bottom = info_table.top; |
| | 175 | //=========================================================================== |
| 152 | | if (info_licencetag.bottom > info_description.bottom) { |
| 153 | | jQuery(".licencetag").css("border", "solid 2px transparent"); |
| 154 | | info_description.bottom = info_licencetag.bottom; |
| | 180 | if (info_licencetag.bottom > 0) { |
| | 181 | jQuery(".licencetag").css("border", "solid 5px transparent"); |
| | 182 | if (info_licencetag.bottom > info_licencetag.height) |
| | 183 | info_description.bottom = info_licencetag.bottom - 3; |
| | 184 | else |
| | 185 | info_description.bottom -= info_licencetag.padding.top + info_table.margin.top; |
| 163 | | if (info_description.bottom < info_description.top) |
| 164 | | info_description.bottom = info_description.top = 1; |
| 165 | | |
| 166 | | info_description.height = info_description.bottom - info_description.top ; |
| | 203 | if (info_description.bottom < info_description.top) { |
| | 204 | info_description.bottom = info_description.top; |
| | 205 | |
| | 206 | info_desc = jQuery("#" + Parent + " p:last").info(); |
| | 207 | |
| | 208 | if (info_desc.bottom > info_img.bottom) |
| | 209 | info_description.bottom = info_desc.bottom; |
| | 210 | } |
| | 211 | |
| | 212 | |
| | 213 | if (theme.match(RegExp("gally", "g"))) { |
| | 214 | if (!theme.match(RegExp("lapis", "gi"))) { |
| | 215 | info_copyright = jQuery("#copyright").info(); |
| | 216 | info_description.bottom += info_copyright.height; |
| | 217 | } |
| | 218 | } |
| | 219 | info_description.height = info_description.bottom - info_description.top; |
| | 220 | |
| | 221 | if (0) { |
| | 222 | /* jQuery("#Debug").text(jQuery("#Debug").text() + user_status); |
| | 223 | |
| | 224 | jQuery("#Debug").hide(); |
| | 225 | jQuery("#Debug1").hide(); |
| | 226 | jQuery("#Debug2").hide(); |
| | 227 | info_description.width = "800"; |
| | 228 | */ |
| | 229 | |
| | 230 | Bandeau_bas = info_description; |
| | 231 | |
| | 232 | jQuery("#Debug").css({ |
| | 233 | filter: 'alpha(opacity:50)', |
| | 234 | position: "absolute", |
| | 235 | width: "800px", |
| | 236 | border: "solid 1px green", |
| | 237 | top: Bandeau + "px" |
| | 238 | }); |
| | 239 | jQuery("#Debug").text("Debug:Bandeau : " + Bandeau); |
| | 240 | |
| | 241 | jQuery("#Debug1").css({ |
| | 242 | filter: 'alpha(opacity:50)', |
| | 243 | position: "absolute", |
| | 244 | border: "solid 1px green", |
| | 245 | top: Bandeau_bas.top + "px", |
| | 246 | width: (200) + "px", |
| | 247 | height: Bandeau_bas.height + "px" |
| | 248 | }); |
| | 249 | jQuery("#Debug1").text("Debug1:Bandeau_bas top : " + Bandeau_bas.top + " height:" + Bandeau_bas.height); |
| | 250 | |
| | 251 | jQuery("#Debug2").css({ |
| | 252 | filter: 'alpha(opacity:50)', |
| | 253 | position: "absolute", |
| | 254 | left: '50px', |
| | 255 | width: (300) + "px", |
| | 256 | border: "solid 1px green", top: Bandeau_bas.bottom + "px" |
| | 257 | }); |
| | 258 | jQuery("#Debug2").text("Debug2:Bandeau_bas bottom :" + Bandeau_bas.bottom); |
| | 259 | // cl_visible = false; |
| | 260 | } |
| 234 | | /* jQuery("#Debug").text(jQuery("#Debug").text() + user_status); |
| 235 | | |
| 236 | | jQuery("#Debug").hide(); |
| 237 | | jQuery("#Debug1").hide(); |
| 238 | | jQuery("#Debug2").hide(); |
| 239 | | |
| 240 | | jQuery("#Debug").css({ position: "absolute", width: "200px", border: "solid 1px green", top: Bandeau + "px" }); |
| 241 | | jQuery("#Debug").text(Bandeau); |
| 242 | | |
| 243 | | jQuery("#Debug1").css({ position: "absolute", |
| 244 | | border: "solid 1px green", |
| 245 | | top: Bandeau_bas.top + "px", |
| 246 | | width: (Bandeau_bas.width / 5) + "px", |
| 247 | | height: Bandeau_bas.height + "px" |
| 248 | | }); |
| 249 | | jQuery("#Debug1").text(Bandeau_bas.top + " height:" + Bandeau_bas.height); |
| 250 | | |
| 251 | | jQuery("#Debug2").css({ position: "absolute", |
| 252 | | left: '200px', |
| 253 | | border: "solid 1px green", top: Bandeau_bas.bottom + "px" |
| 254 | | }); |
| 255 | | jQuery("#Debug2").text(Bandeau_bas.bottom); |
| 256 | | |
| 257 | | */ |
| 258 | | |
| | 320 | |
| | 321 | |
| 627 | | |
| 628 | | if ((winwidth) < Image_width) { |
| 629 | | _width = maxWidth; |
| | 688 | Image_width -= marges_llgbo; // r�duction frame |
| | 689 | Image_height -= marges_llgbo; // r�duction frame |
| | 690 | if (rapport > 1) { |
| | 691 | jQuery("#gbo").outerWidth(Image_width); |
| | 692 | jQuery("#gbo").css("width", Image_width + "px"); |
| | 693 | |
| | 694 | |
| | 695 | t1 = jQuery("#gbo div:last").info(); |
| | 696 | |
| | 697 | Image_width = jQuery("#gbo div:last").innerWidth(); |
| | 698 | Image_height = parseInt(Image_width / rapport); |
| | 699 | |
| | 700 | jQuery("#gbo").outerHeight(Image_height + marges_llgbo); |
| | 701 | jQuery("#gbo").css("height", (Image_height + marges_llgbo) + "px"); |
| | 702 | if ( jQuery.browser.msie) { |
| | 703 | jQuery("#gbo").css("paddingBottom", 18 + "px"); |
| | 704 | } |
| | 705 | |
| 633 | | _width -= marges_llgbo; // r�duction frame |
| 634 | | jQuery("#gbo").outerWidth(_width); |
| 635 | | jQuery("#gbo").css("width", (_width) + "px"); |
| 636 | | |
| 637 | | |
| 638 | | |
| 639 | | Image_width = jQuery("#gbo div:last").innerWidth(); |
| 640 | | Image_height = parseInt(Image_width / rapport); |
| 641 | | jQuery("#gbo").outerHeight(Image_height + marges_llgbo + 10); |
| 642 | | jQuery("#gbo").css("height", (Image_height + marges_llgbo + 10) + "px"); |
| 643 | | |
| 644 | | } else { |
| 645 | | |
| 646 | | jQuery("#gbo").width(Zone_Affichage.width - marges); |
| 647 | | jQuery("#gbo").height(Image_height + marges) |
| 648 | | jQuery("#gbo").css("width", Zone_Affichage.width - marges + "px"); |
| 649 | | jQuery("#gbo").css("height", Image_height - marges + "px") |
| | 716 | |
| | 717 | a1 = jQuery("area[rel=prev]"); |
| | 718 | a2 = jQuery("area[rel=next]"); |
| | 719 | |
| | 720 | if (a1.length == 0) { |
| | 721 | jQuery("area[rel=prev]").attr({ coords: "'" + 0 + ",0," + 0 + "," + 0 + "'" }); |
| | 722 | jQuery("area[rel=up]").attr({ coords: "'" + 0 + ",0," + Image_width / 2 + "," + Image_height + "'" }); |
| | 723 | jQuery("area[rel=next]").attr({ coords: "'" + Image_width / 2 + ",0," + (Image_width) + "," + Image_height + "'" }); |
| | 724 | |
| | 725 | } else if (a2.length == 0) { |
| | 726 | jQuery("area[rel=prev]").attr({ coords: "'" + 0 + ",0," + (Image_width) / 2 + "," + Image_height + "'" }); |
| | 727 | jQuery("area[rel=up]").attr({ coords: "'" + Image_width / 2 + ",0," + (Image_width * 2) / 2 + "," + Image_height + "'" }); |
| | 728 | jQuery("area[rel=next]").attr({ coords: "'" + 0 + ",0," + 0 + "," + 0 + "'" }); |
| | 729 | |
| | 730 | } else { |
| | 731 | |
| | 732 | jQuery("area[rel=prev]").attr({ coords: "'" + 0 + ",0," + (Image_width) / 3 + "," + Image_height + "'" }); |
| | 733 | jQuery("area[rel=up]").attr({ coords: "'" + Image_width / 3 + ",0," + (Image_width * 2) / 3 + "," + Image_height + "'" }); |
| | 734 | jQuery("area[rel=next]").attr({ coords: "'" + (Image_width * 2) / 3 + ",0," + (Image_width) + "," + Image_height + "'" }); |
| | 735 | } |
| | 736 | |
| 652 | | |
| 653 | | |
| 654 | | |
| 655 | | if (jQuery("area").length > 0) { |
| 656 | | jQuery("area").each(function (i) { |
| 657 | | |
| 658 | | obj1 = this.rel; |
| 659 | | obj2 = this.coords; |
| 660 | | if (obj1 == "up") |
| 661 | | this.coords = (Image_width / 3) + "," + 0 + "," + (Image_width * 2 / 3) + "," + Image_height; |
| 662 | | else if (obj1 == "prev") |
| 663 | | this.coords = 0 + "," + 0 + "," + (Image_width / 3) + "," + Image_height; |
| 664 | | else if (obj1 == "next") |
| 665 | | this.coords = (Image_width * 2) / 3 + "," + 0 + "," + (Image_width * 3 / 3) + "," + Image_height; |
| 666 | | |
| 667 | | }); |
| 668 | | |
| 669 | | |
| 670 | | |
| 671 | | |
| 672 | | |
| 673 | | |
| 674 | | } |
| 675 | | |
| | 739 | } |
| | 740 | |
| | 741 | //================ Zone affichage ========================= |
| | 742 | // Image_height, Image_width = valeur a atteindre. |
| | 743 | if (theme.match(RegExp("luciano", "g"))) { |
| | 744 | Zone_Affichage.height -= Bandeau_bas.height; |
| | 745 | jQuery(Cadre).height(Zone_Affichage.height); |
| | 858 | /* |
| | 859 | jQuery("#Debug1").css({ |
| | 860 | position: "absolute", |
| | 861 | top: Bandeau + "px", |
| | 862 | textAlign: align_auto, |
| | 863 | margin: "0px auto", |
| | 864 | |
| | 865 | |
| | 866 | border: "solid 1px red", |
| | 867 | |
| | 868 | width: Image_width + "px", |
| | 869 | height: Image_height + "px" |
| | 870 | |
| | 871 | }); |
| | 872 | //=================================================== |
| | 873 | jQuery("#Debug2").css({ position: "absolute", |
| | 874 | left: Zone_Affichage.left + 'px', |
| | 875 | border: "solid 1px green", |
| | 876 | top: Zone_Affichage.top + "px", |
| | 877 | width: Zone_Affichage.width / 2 + "px", |
| | 878 | height: Zone_Affichage.height + "px" |
| | 879 | |
| | 880 | }); |
| | 881 | jQuery("#Debug2").text(info_Cadre.bottom); |
| | 882 | */ |
| | 887 | //=========================================================================== |
| | 888 | |
| | 889 | if (jQuery("#navThumbPrev").length > 0) { |
| | 890 | jQuery("#navThumbPrev").css({ height: info_img.height + "px", |
| | 891 | top: info_img.top |
| | 892 | }); |
| | 893 | } |
| | 894 | if (jQuery("#navThumbNext").length > 0) { |
| | 895 | jQuery("#navThumbNext").css({ height: info_img.height + "px", |
| | 896 | top: info_img.top |
| | 897 | }); |
| | 898 | } |
| | 899 | if (!theme.match(RegExp("lapis", "gi"))) { } |
| | 900 | } else if (theme.match(RegExp("simple", "g"))) { |