/*======================================================================*\
|| #################################################################### ||
|| # My scripts                                                         ||
|| # ---------------------------------------------------------------- # ||
|| #                                                                    ||
|| #################################################################### ||
\*======================================================================*/






var BodyLoaded=1;
var imgs;
imgs=document.getElementsByTagName('img');
if(imgs)
{
  for (i=0; i<imgs.length; i++) 
  {
	if (imgs[i].id=='postinlineimage')
	{
		fixImgs(imgs[i],800);
	}
  }

}






function dump_object(obj)
{


// Create some variables.
var a, key, s = "";
alert('do-1');
// Iterate the properties.
for (key in obj)
{
s += key + ": " + obj[key] + "<BR>" + "\r\n";
}
return(s);
}

//document.write(dump_object(document.getElementById('myimg')))


var BodyLoaded=1;
var imgs;
imgs=document.getElementsByTagName('img');
if(imgs)
{
  for (i=0; i<imgs.length; i++) 
  {
	if (imgs[i].id=='postinlineimage')
	{
		fixImgs(imgs[i],800);
	}
  }

}

var objs;
var w1;
var h1;
var optn;

objs=document.getElementsByTagName('object');
if(objs)
{
  for (i=0; i<objs.length; i++) 
  {
	if (objs[i].name=='real_tag_obj')
	{

		optn=objs[i].getAttribute("size_option").split(",");
		w1=optn[0].replace(/^\s+|\s+$/g,'');

		h1=optn[1].replace(/^\s+|\s+$/g,'');



		objs[i].width=w1;
		objs[i].height=h1;
		
	}

	else if (objs[i].name=='real_tag_control_obj')
	{
		optn=objs[i].getAttribute("size_option").split(",");

		w1=optn[0].replace(/^\s+|\s+$/g,'');

		objs[i].width=w1;
		objs[i].height=30;
		
	}
  }
}

objs=document.getElementsByTagName('embed');
if(objs)
{
  for (i=0; i<objs.length; i++) 
  {
	if (objs[i].name=='real_tag_embed')
	{
		optn=objs[i].getAttribute("size_option").split(",");

		w1=optn[0].replace(/^\s+|\s+$/g,'');
		h1=optn[1].replace(/^\s+|\s+$/g,'');

		objs[i].width=w1;
		objs[i].height=h1;
		
	}

	else if (objs[i].name=='real_tag_control_embed')
	{
		optn=objs[i].getAttribute("size_option").split(",");

		w1=optn[0].replace(/^\s+|\s+$/g,'');

		objs[i].width=w1;
		objs[i].height=30;
		
	}
  }
}


/*======================================================================*\
|| ####################################################################
|| # 
|| # 
|| ####################################################################
\*======================================================================*/