 function ChangeBackGround(x,y){

 //if(y == 1) {
document.getElementById(x).style.backgroundColor='#E3F5FF';
 // }

//"darkling-body_right" try x = element id.	
var d = document.getElementById(x); 	
try{ 		
d.style.filter="blendTrans(duration=0.5)"; 		
d.filters.blendTrans.apply(); 	
}
catch(e){ 		
return; 	
} 	
d.style.backgroundColor = "#E3F5FF";	
try{ 		
d.filters.blendTrans.play(); 	}
catch(e){  	} } 


function ResetBackGround(x,y){
 if(y == 1) {
document.getElementById(x).style.backgroundColor='#FFFFFF';
  }
document.getElementById("bold-"+x).style.textDecoration="none";
//eval('document.all["bold-'+x+'"].style.textDecoration="none"');
return;
} 

function go_search() {
if(document.me.searchterm.value == "SEARCH") {
document.me.searchterm.value = "";
 }
document.me.searchterm.style.backgroundColor='#F0F2EC';

 }
function clear_user() {
if(document.me.username.value == "User Name") {
document.me.username.value = "";
 }
document.me.username.style.backgroundColor='#F0F2EC';
 }
function clear_pass() {
if(document.me.password.value == "Password") {
document.me.password.value = "";
 }
document.me.password.style.backgroundColor='#F0F2EC';
 }
/* put field colors back. */
function clear_field_color(c) {
if(c == 1) {
document.me.searchterm.style.backgroundColor='#FFFFFF';
 }
else if(c == 2) {
document.me.username.style.backgroundColor='#FFFFFF';
 }
else if(c == 3) {
document.me.password.style.backgroundColor='#FFFFFF';
 }
 }
function opensesame(url,x){
/* added x 11-13-02 if pdf then open different size window. We can remove
opesesame1 from any pages now. */
var width=450,height=500,left=3,top=10;
if(x == "1") {
//pdf file.
width = 521;height=520;left=5;top=5;
}
if(x == "3") {
//pdf file.
width = 521;height=320;left=5;top=5;
}
if(x == "4") {
//help file.
width = 780;height=600;left=5;top=5;
}
if(x == "5") {
//help file.
width = 350;height=300;left=5;top=5;
}
open(url,'HB','toolbar=0,location=0,status=1,menubar=0,scrollbars=1,resizable=1, width=' + width + ',height=' + height + ', left=' + left + ', top=' + top); 
} 

function bookme(burl,btitle){
burl = location.href;
if (document.all)
window.external.AddFavorite(burl,btitle)
}
var dpath = "/images/social-network/";
var dimg = new Array();
dimg[0] = new Image();
dimg[0].src = dpath + "fbook.png";
dimg[1] = new Image();
dimg[1].src = dpath + "fbook-over.png";
dimg[2] = new Image();
dimg[2].src = dpath + "twitter.png";
dimg[3] = new Image();
dimg[3].src = dpath + "twitter-over.png";
dimg[4] = new Image();
dimg[4].src = dpath + "youtube.png";
dimg[5] = new Image();
dimg[5].src = dpath + "youtube-over.png";
dimg[6] = new Image();
dimg[6].src = dpath + "blog.png";
dimg[7] = new Image();
dimg[7].src = dpath + "blog-over.png";