
function makevisible(cur,which){
strength=(which==0)? 1 : 0.7

if (cur.style.MozOpacity)
cur.style.MozOpacity=strength
else if (cur.filters)
cur.filters.alpha.opacity=strength*100
}

var message="Welcome to Structural Biology Lab,CCMB"     
var message=message+"          " 
i="0"			
var temptitle=""                 
var speed="150"                 

function titler(){
if (!document.all&&!document.getElementById)
return
document.title=temptitle+message.charAt(i)  
temptitle=temptitle+message.charAt(i)       
i++				
if(i==message.length)		
{
i="0"					    
message
temptitle=""				    
}
setTimeout("titler()",speed) 		   
}

window.onload=titler


var all;
var month;
var period;
var day;
function time(){
var currentDate=new Date()

hour=currentDate.getHours()
min=currentDate.getMinutes()
sec=currentDate.getSeconds()
date=currentDate.getDate()
switch(currentDate.getMonth()){
        case 0:month="January";break;
        case 1:month="Febuary";break;
        case 2:month="March";break;
        case 3:month="April";break;
        case 4:month="May";break;
        case 5:month="June";break;
        case 6:month="July";break;
        case 7:month="August";break;
        case 8:month="September";break;
        case 9:month="October";break;
        case 10:month="November";break;
        case 11:month="December";break;
}

switch(currentDate.getDay()){
        case 0:day="Sunday";break;
        case 1:day="Monday";break;
        case 2:day="Tuesday";break;
        case 3:day="Wednesday";break;
        case 4:day="Thursday";break;
        case 5:day="Friday";break;
        case 6:day="Saturday";break;
}
if(sec<10){sec="0"+sec}
if(min<10){min="0"+min}

if(hour>12){hour-=12;period="pm"} else {period="am"}
if(currentDate.getHours()==12){period="pm"}
if(currentDate.getHours()==24){period="am"}

var all=day+", "+month+" "+date+" - "+hour+":"+min+":"+sec+period
window.status=all
window.setTimeout("time()",300)
}
time()

function link(B,BQ)
{
  
    if (BQ==1)
    {
      B.style.color="#EE3B3B";
     } 
  
    if (BQ==0)
  {
      B.style.color="#008B45";
   }
 } 


function expandingWindow(website) {
var windowprops='width=100,height=100,scrollbars=yes,status=yes,resizable=yes'
var heightspeed = 2; 
var widthspeed = 7;  
var leftdist = 10;    
var topdist = 10;     

if (window.resizeTo&&navigator.userAgent.indexOf("Opera")==-1) {
var winwidth = window.screen.availWidth - leftdist;
var winheight = window.screen.availHeight - topdist;
var sizer = window.open("","","left=" + leftdist + ",top=" + topdist +","+ windowprops);
for (sizeheight = 1; sizeheight < winheight; sizeheight += heightspeed)
sizer.resizeTo("1", sizeheight);
for (sizewidth = 1; sizewidth < winwidth; sizewidth += widthspeed)
sizer.resizeTo(sizewidth, sizeheight);
sizer.location = website;
}
else
window.open(website,'new');
}





lock="on"
function flash1()
{

	//i.style.borderColor="white"
	document.getElementById('borderflash').style.borderColor="white"
	if (lock=="off")
	{
	setTimeout('flash2()', 200)
	}
}

function flash2()
{
	if (lock=="off")
	{
	//i.style.borderColor="#104E8B"
	document.getElementById('borderflash').style.borderColor="#104E8B"
	setTimeout('flash1()', 200)
	}
}


function flash3()
{

	//i.style.borderColor="white"
	document.getElementById('borderflash2').style.borderColor="white"
	if (lock=="off")
	{
	setTimeout('flash4()', 200)
	}
}

function flash4()
{
	if (lock=="off")
	{
	//i.style.borderColor="#104E8B"
	document.getElementById('borderflash2').style.borderColor="#104E8B"
	setTimeout('flash3()', 200)
	}
}



