/*
This script was developed by Satheesh and published on http://www.tutorials2learn.com
You are free to use it. You may modify it or customize it.
If you use it Please leave this comment without any change.
visit http://www.tutorials2learn.com

*/
var Loop_instance =0;

function alternateBorderColor(maxLoop)
{
Loop_instance ++;
var popUpObj = document.getElementById('popUpLayer');

    if(Loop_instance % 2 == 0){

     popUpObj.style.border = "5px solid #999999";
      }else{
        popUpObj.style.border = "5px solid #FFFFFF";

        }
    if(Loop_instance<maxLoop){
    ShowPopUp(maxLoop);
    }
}

function ShowPopUp(flickNum){

var popUpObj = document.getElementById('popUpLayer');
popUpObj.style.display="block";
flicktimes =flickNum;

setTimeout('alternateBorderColor(flicktimes);',2)
}
function ClosePopUp(){
var popUpObj = document.getElementById('popUpLayer');
popUpObj.style.display="none";

}
