function popWin (url, windowName, width, height) {
	var attr = 'width=' + width + ',height=' + height;
	var wName = (windowName) ? windowName : 'AdaptOne';
	window.open(url,wName,attr);
}

function initImgRotation() {

  // create rotating image objects here 

  // arguments: image name, rotation speed

  var rotator1 = new rotateImgObj('img1',2500);

  // add the images to rotate into that image object  

  rotator1.addImages("content_banner1.jpg", "content_banner2.jpg",  "content_banner3.jpg",  "content_banner4.jpg",  "content_banner5.jpg",  "content_banner6.jpg");

  rotator1.rotate();

  

  rotateImgObj.start();

}



rotateImgObj.imagesPath = "/shared/images/";



rotateImgObjs = []; // holds all rotating image objects defined

// constructor 

function rotateImgObj(nm,s) {

  this.speed=s; this.ctr=0; this.timer=0;  

  this.imgObj = document.images[nm]; // get reference to the image object

  this.index = rotateImgObjs.length; rotateImgObjs[this.index] = this;

  this.animString = "rotateImgObjs[" + this.index + "]";

}



rotateImgObj.prototype = {

  addImages: function() { // preloads images

    this.imgObj.imgs = [];

    for (var i=0; arguments[i]; i++) {

      this.imgObj.imgs[i] = new Image();

      this.imgObj.imgs[i].src = rotateImgObj.imagesPath + arguments[i];

    }

  },



  rotate: function() {

    if (this.ctr < this.imgObj.imgs.length-1) this.ctr++;

    else this.ctr = 0;

    this.imgObj.src = this.imgObj.imgs[this.ctr].src;

  }

}



// sets up rotation for all defined rotateImgObjs

rotateImgObj.start = function() {

  for (var i=0; i<rotateImgObjs.length; i++) 

    rotateImgObjs[i].timer = setInterval(rotateImgObjs[i].animString + ".rotate()", rotateImgObjs[i].speed);                     

}


<!--
if (document.images)

{
        var imgoff = new Array(4);
        var imgon = new Array(1);  

        for (var i=0;i<4;i++)

                {
                imgoff[i] = new Image();
                imgon[i] = new Image();
                }

        imgoff[0].src = "images/button_logout.gif";
        imgoff[1].src = "images/button_new_article.gif";
        imgoff[2].src = "images/button_view_news.gif";
        imgoff[3].src = "images/button_view_events.gif";

        imgon[0].src = "images/button_logout2.gif";
        imgon[1].src = "images/button_new_article2.gif";
        imgon[2].src = "images/button_view_news2.gif";
        imgon[3].src = "images/button_view_events2.gif";

}

function overIt(x)

{
        if (document.images)

        {
                var imgName = "document.nav" + x;
                eval(imgName).src = imgon[x].src;
        }
}


function outOfIt(x)
{
        if (document.images)
        {
                var imgName = "document.nav" + x;
                eval(imgName).src = imgoff[x].src;
        }
}
//-->






function privacy() {
var newWindow 
window.open("privacy_policy.html","privacy","height=500, width=650, scrollbars=yes,toolbar=no")
}


function terms_of_use() 
{
var newWindow 
window.open("terms_of_use.html","terms","height=400, width=650, scrollbars=yes,toolbar=no")

}


function printpage() 
{
window.print();  
}

function addline_summary()
{
document.ThisForm.summary.value = document.ThisForm.summary.value + "<br><br>";
document.ThisForm.summary.focus();
}

function addline_article_text()
{
document.ThisForm.article_text.value = document.ThisForm.article_text.value + "<br><br>";
document.ThisForm.article_text.focus();
}

function delete_picture(file,window)
{
deletePictureWindow=open(file,window,'resizable=no,width=220,height=220');
if (deletePicture.opener == null) deletePicture.opener = self;
}


function workforce_sample() {
var newWindow = window.open("workforce_mpp_model.html","workforce_sample","height=920, width=1000, scrollbars=yes,toolbar=no");
	newWindow.focus();
	}