// ISC DOM ARI2 tm Auto Scan Resize Images
// ver 2.03
//W3C XHTML 1.0 Strict
//natural

function ari2(maxWidth){
for(var i=0; i<document.images.length; i++){
var im=document.images[i];
if (im.alt=="bbs_img_post"){
 if (typeof im.dfWidth == 'undefined') im.dfWidth = im.width;
 if (im.dfWidth > maxWidth) {
im.width=maxWidth;
im.style.maxWidth = im.dfWidth + 'px';
im.style.cursor= "pointer";
im.className = 'resized';
im.title = 'ภาพนี้ ถูกย่อส่วนอยู่ คลิกเพื่อดูภาพจริงๆ';
im.onclick=fullsp;}}}}

function fullsp() {
w=800;h=600;s=1;
u=this.src;
window.open("show_full_size.php?i="+u,105,'width='+w+',height='+h+',scrollbars='+s);}
function fullsc() {
if (this.width == maxWidth) {
this.width = this.dfWidth;
this.style.borderWidth = '0px';
sa=this.src;
this.title = 'ภาพนี้ ถูกย่อส่วนอยู่';
} else {
this.width = maxWidth;
this.style.borderWidth = '2px';
this.title = 'ภาพนี้ ถูกย่อส่วนอยู่';}}

//DIX Scan1
//function flowie(){
//d = document.getElementsByTagName('div');
//j=0;
//var cl = new Array()
//for(i=0;i<d.length;i++){
//if(d[i].className == 'h_topic_text'){
//height:auto;float:left;overflow:auto;overflow-y:hidden
//d[i].style="";}}
//}
