function changeImage(r,i)
{
r.src=i;
}

function goFlipURL()
{
  document.location = urlSet[currentFlip];
}

function flipFlipper(imageSet,speed)
{
  currentFlip ++;
  if (currentFlip == imageSet.length)
    currentFlip=0;
  changeImage(document.flip,imageSet[currentFlip]);
  setTimeout("flipFlipper(imageSet,speed)", 8000)
}

function FlipperLong(width,height,s,images)
{
/* si: start index 
** i: current index
** ei: end index
** cc: current count
*/
 speed = 8000;
 si = 0; 
 ci=0;
 cc=0;
 imageSet = new Array();
 ei = images.length;
  for (i=1;i<ei;i++) {
    if (images.charAt(i) == ' ') {
      imageSet[cc] = images.substring(si,i);
      cc++;
      si=i+1;
      }
    }
  currentFlip = 0;
   
 document.write("<img name='flip'");
 if (width >0)
    document.write("width="+width);
 if (height >0)
    document.write(" height=" +height);
  document.writeln(" src=" +imageSet[0]+ ">");

  setTimeout("flipFlipper(imageSet,speed)", 8000)
}

function Flipper(width,height,images)
{
  speed=8000;
  FlipperLong(width,height,speed,images);
}


function FlipperLinkLong(width,height,s,images,urls)
{
/* si: start index 
** i: current index
** ei: end index
** cc: current count
*/
 speed = 8000;
 imageSet = new Array();
 urlSet = new Array();

 si = 0; 
 ci=0;
 cc=0;
 ei = images.length;
  for (i=1;i<ei;i++) {
    if (images.charAt(i) == ' ') {
      imageSet[cc]= images.substring(si,i);
      cc++;
      si=i+1;
      }
    }

 si = 0; 
 ci=0;
 ccu=0;
 ei = urls.length;
  for (i=1;i<ei;i++) {
    if (urls.charAt(i) == ' ') {
      urlSet[ccu]= urls.substring(si,i);
      ccu++;
      si=i+1;
      }
    }

  currentFlip = 0;
   
 document.write("<a href=\"javascript:goFlipURL()\"><img name='flip'");
 document.write("<img name='flip'");
 if (width >0)
    document.write("width="+width);
 if (height >0)
    document.write(" height=" +height);
  document.writeln(" src=" +imageSet[0]+ "></a>");

  setTimeout("flipFlipper(imageSet,speed)", 8000)
}

function FlipperLink(width,height,images,urls)
{
  speed=8000;
  FlipperLinkLong(width,height,speed,images,urls);
}


<!------- START MARQUE SCRIPT ----------------------------------------------->
////<script language="JavaScript1.2">
////Specify the marquee's width (in pixels)
//var marqueewidth=160
////Specify the marquee's height
//var marqueeheight=200
////Specify the marquee's scroll speed (larger is faster)
//var speed=2
////Specify the marquee contents
//// var marqueecontents='<font face="Arial" size="1"><strong><big>Accountability has become a joke:Qadri</big><br>The News:(Jan 31, 2001) Pakistan Awami Tehreek chief Tahirul Qadri said had accountability been conducted profesionally, corruption would have been wiped out from society... </strong><a href="http://www.pakistanawamitehreek.com/cgi-bin/pat_news.cgi?file=jan31/index.htm">More Details...</a><P><strong><big>PAT promises new judicial system</big><br>The Nation LAHORE (Jan 20, 2001) Pakistan Awami Tehreek Chairman, Tahirul Qadri claimed that his party will establish a powerful judicial system if it comes to power... </strong><a href="http://www.pakistanawamitehreek.com/cgi-bin/pat_news.cgi?file=jan20/index.htm">More Details...</a><P><strong><big>Qadri flays newspapers for NEGATIVE role.</big><br>Daily News GUJRAT (Jan 16, 2001) The politicians and journalists are the most corrupt in Pakistan and the print media has always played a negative role in this regard... </strong><a href="http://www.pakistanawamitehreek.com/cgi-bin/pat_news.cgi?file=jan16/index.htm">More Details...</a></font>'
//// var marqueecontents= '<font face="Arial" size="2"><!--#include virtual="h1.htm" --></font>'
// var marqueecontents= 'Join PAT'
//
//if (document.all)
//document.write('<marquee direction="up" scrollAmount='+speed+' style="width:'+marqueewidth+';height:'+marqueeheight+'">'+marqueecontents+'</marquee>')

function regenerate(){
  window.location.reload()
}

function regenerate2(){
  if (document.layers){
    setTimeout("window.onresize=regenerate",450)
    intializemarquee()
  }
}

function intializemarquee(){
  document.cmarquee01.document.cmarquee02.document.write(marqueecontents)
  document.cmarquee01.document.cmarquee02.document.close()
  thelength=document.cmarquee01.document.cmarquee02.document.height
  scrollit()
}

function scrollit(){
  if (document.cmarquee01.document.cmarquee02.top>=thelength*(-1)){
    document.cmarquee01.document.cmarquee02.top-=speed
    setTimeout("scrollit()",100)
  }
  else{
    document.cmarquee01.document.cmarquee02.top=marqueeheight
    scrollit()
  } 
}
//window.onload=regenerate2
// </script>
//<ilayer width=&{marqueewidth}; height=&{marqueeheight}; name="cmarquee01">
//<layer name="cmarquee02" width=&{marqueewidth}; height=&{marqueeheight};></layer>
//</ilayer>
<!------- END MARQUE SCRIPT ----------------------------------------------->
