function random_images(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='jpg';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('class="goodiesImg">');
}

function random_images_0121(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='jpg';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('class="goodiesImg_0121">');
}






function random_images2(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='jpg';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('class="goodiesImg2">');
}


function random_images3(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='jpg';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('class="goodiesImg3">');
}


function random_images4(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='jpg';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('class="goodiesImg4">');
}


function random_flv(flvnum, folder)
	{

		if (!flvnum)
		{
			flvnum=2;
		}
		if (!folder)
		{
			folder='flv';
		}
		
		var useRand = 0;
		var rand1 = 0;
		do {
			var randnum = Math.random();
			rand1 = Math.round((flvnum - 1) * randnum) + 1;
			} while (rand1 == useRand);
			useRand = rand1;

			document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="351" height="330" id="320x268_v6" align="middle"><param name="Flashvars" value="url='+folder+'/00'+useRand+'.flv" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="../The%20LOL%20Family%20Animated%203D%20LOL,%20Emoticons,%20Avatars%20for%20IM%20&%20Mobile_files/320x268_v6.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#FFFFFF" /><embed src="../The%20LOL%20Family%20Animated%203D%20LOL,%20Emoticons,%20Avatars%20for%20IM%20&%20Mobile_files/320x268_v6.swf" swliveconnect="true" flashvars="url='+folder+'/00'+useRand+'.flv" quality="high" bgcolor="#FFFFFF" width="351" height="330" name="320x268_v6" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></embed></object>');

}

function random_header(imgnum,folder, alt, width, height, pictype)
{
  if (!imgnum)
  {
    imgnum=2;
  }
  if (!folder)
  {
    folder='images/logogif';
  }
  var useRand = 0;
  var rand1 = 0;
  do {
    var randnum = Math.random();
    rand1 = Math.round((imgnum - 1) * randnum) + 1;
  } while (rand1 == useRand);
  useRand = rand1;
  document.write('<img src="');
  if (!pictype){pictype='gif';}
  if (useRand<10){
    document.write(''+folder+'/00'+useRand+'.'+pictype);
  }
  else if (useRand<100)
  {
    document.write(''+folder+'/0'+useRand+'.'+pictype);
  }
  else
  {
    document.write(''+folder+'/'+ useRand+'.'+pictype);
  }
  document.write('" alt="'+alt+'"');
  if (width)
  {
    document.write(' width="'+width+'"');
  }
  if (height)
  {
    document.write(' height="'+height+'"');
  }
  document.write('/>');

}

