if (typeof ibw_background_color == 'undefined') { ibw_background_color = "FFFFFF"; } if (typeof ibw_callback == 'undefined') { ibw_callback = "ImageBamWidgetCallback"; } if (typeof ibw_content_type == 'undefined') { ibw_content_type = ""; } if (typeof ibw_font_color == 'undefined') { ibw_font_color = "ff0000"; } if (typeof ibw_container == 'undefined') { ibw_container = "ImageBamWidgetContainer"; } if (typeof ibw_code_type == 'undefined') { ibw_code_type = "html"; } if(typeof ibw_html_target =='undefined'){ ibw_html_target = "_blank"; } ibw_code_type = ibw_code_type.toLowerCase(); function ImageBamWidgetCallback(a){ code = ""; for(i = 0; i'); code += ('<'+'img src="'+a[i].thumbnail+'" alt="ImageBam - free image host"'); if(typeof ibw_css_class != 'undefined'){ code += (' class="'+ibw_css_class+'"'); } code += ">"; } if(ibw_code_type=='bb'){ code += ("[URL=" + a[i].URL + "][IMG]" + a[i].thumbnail + "[/IMG][/URL] "); } } document.getElementById(ibw_textarea_id).value = (document.getElementById(ibw_textarea_id).value + code); } function ImageBamResize (num) { document.getElementById(ibw_container).style.height = num+"px"; //document.getElementById("flashcontent").height = num+"px"; } var flashvars = {}; flashvars.jsFunctionName = ibw_callback; flashvars.content_type_allowed = ibw_content_type; flashvars.background_color = "0x"+ibw_background_color; flashvars.font_color = "0x"+ibw_font_color; flashvars.maxsinglefilesize = "4096"; flashvars.maxtotalfilesize = "512000"; flashvars.maxfiles = "200"; var params = {}; params.allowScriptAccess = "always"; var attributes = {}; swfobject.embedSWF("http://www.imagebam.com/files/ImageBamWidget-1-5.swf", ibw_container, "373", "121" , "9", false, flashvars, params, attributes);