function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}

var slideShowSpeed = 3000
var crossFadeDuration = 3
var Pic = new Array() 
Pic[0] = 'L1.jpg'
Pic[1] = 'L2.jpg'
Pic[2] = 'L3.jpg'
Pic[3] = 'L4.jpg'
Pic[4] = 'L5.jpg'
Pic[5] = 'L6.jpg'
Pic[6] = 'L7.jpg'
Pic[7] = 'L8.jpg'
Pic[8] = 'L9.jpg'
Pic[9] = 'L10.jpg'
var t
var j = 0
var p = Pic.length
var preLoad = new Array()
for (i = 0; i < p; i++)
 { preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
 }

function runSlideShow()
{
   if (document.all)
    { document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()
    }

   document.images.SlideShow.src = preLoad[j].src
   if (document.all)
    { document.images.SlideShow.filters.blendTrans.Play()
    }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShow()', slideShowSpeed)
}

var PicA = new Array() 
PicA[0] = 'R1.jpg'
PicA[1] = 'R2.jpg'
PicA[2] = 'R3.jpg'
PicA[3] = 'R4.jpg'
PicA[4] = 'R5.jpg'
PicA[5] = 'R6.jpg'
PicA[6] = 'R7.jpg'
PicA[7] = 'R8.jpg'
PicA[8] = 'R9.jpg'
PicA[9] = 'R10.jpg'

var t1
var j1 = 0
var p1 = PicA.length
var preLoad1 = new Array()
for (i1 = 0; i1 < p1; i1++)
 { preLoad1[i1] = new Image()
   preLoad1[i1].src = PicA[i1]
 }


function xrunSlideShow()
{
   if (document.all)
    { document.images.xSlideShow.style.filter="blendTrans(duration=2)"
      document.images.xSlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.xSlideShow.filters.blendTrans.Apply()
    }

   document.images.xSlideShow.src = preLoad1[j1].src
   if (document.all)
    { document.images.xSlideShow.filters.blendTrans.Play()
    }
   j1 = j1 + 1
   if (j1 > (p1-1)) j1=0
   t1 = setTimeout('xrunSlideShow()', 3437)
}

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=2000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8))
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px"
else
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}

if (window.addEventListener)
window.addEventListener("load", initializemarquee, false)
else if (window.attachEvent)
window.attachEvent("onload", initializemarquee)
else if (document.getElementById)
window.onload=initializemarquee

