// LLGBO frame resize jQuery(document).ready(function(jQuery){ jQuery("#theMainImage").load(function(){LlgboFr_Resize();}); jQuery(window).resize(function(){ LlgboFr_Resize(); }); }); var LlgboFr_Resize = function () { var MainImg = jQuery("img#theMainImage").get(0); var nFrH = parseInt(MainImg.height); var nFrW = parseInt(MainImg.width); var FrLstBdr = 0, i = 0; var elGbo = jQuery("div#llgbo"); if (elGbo.get(0)) { for ( i=1; i<32; i=i+2 ) {var Fr = jQuery("div#llgboframe"+(i)); var frbdr = 0; if (Fr.get(0)) { frbdr = parseInt(Fr.css('border-left-width')); nFrH = nFrH + FrLstBdr ; nFrW = nFrW + FrLstBdr ; Fr.css("height", (nFrH) + "px"); Fr.css("width", (nFrW) + "px");} FrLstBdr = (frbdr * 2); } elGbo.css("width", (nFrW + FrLstBdr) + "px"); elGbo.css("height", (nFrH + FrLstBdr) + "px"); } }