
is = new BrowserCheck()
if (is.ns && is.v< 5){
vish = "show"
visl = "hide"
}
else{
vish = "visible"
visl = "visible"
}

function init(){
bg = new DynLayer('backDiv')
header = new DynLayer('headerDiv')
left = new DynLayer('leftDiv')
right = new DynLayer('rightDiv')
content = new DynLayer('contentDiv')
login = new DynLayer('loginDiv')
black = new DynLayer('blackDiv')
boxes = new DynLayer('boxesDiv')


}
ind = false
flag = false


function move(){
	if (is.ns4 && flag==true){
		login.glideTo('slow','slow',245,15,6,2,boxvisn())
		flag = false
		off('backDiv','loginDiv','pull')
	}
	else if (is.ns4 && flag==false){
		login.glideTo('slow','slow',245,104,6,2,boxvisy())
	
		flag = true
	}
	
	
		
	if (is.ie && flag==true){
		login.glideTo('slow','slow',245,15,6,2,boxvisn())
		flag = false
	}
	else if (is.ie && flag==false){
		login.glideTo('slow','slow',245,104,6,2,boxvisy())
		flag = true
	}
	
	
	if (is.ns5 && flag==false && ind==false){
		login.glideTo('slow','slow',245,15,2,1,nsmove())

	}
	else if (is.ns5 && flag==true && ind==true){
		login.glideTo('slow','slow',245,15,6,2,boxvisn())
		flag = false
		}
		
	else if (is.ns5 && flag==false && ind==true){
		login.glideTo('slow','slow',245,104,6,2,boxvisy())
		flag = true
		}	
}
function nsmove(){
		login.glideTo('slow','slow',245,104,100,1,boxvisy())
				flag = true
				ind = true
}
function boxvisy(){
	setTimeout('boxes.show()',400)
	on("backDiv","loginDiv","pull")
	on("backDiv","loginDiv","logrt")
}
function boxvisn(){
	boxes.hide()
	off('backDiv','loginDiv','pull')
	off('backDiv','loginDiv','logrt')
}

//---------- Image Load -------------
store = new  Image;
store.src = "/images/store_off.gif"
storeon = new Image;
storeon.src = "/images/store_on.gif";

listed = new  Image;
listed.src = "/images/listed_off.gif"
listedon = new Image;
listedon.src = "/images/listed_on.gif";

direct = new  Image;
direct.src = "/images/direct_off.gif"
directon = new Image;
directon.src = "/images/direct_on.gif";

time = new  Image;
time.src = "/images/time_off.gif"
timeon = new Image;
timeon.src = "/images/time_on.gif";

ad = new  Image;
ad.src = "/images/ad_off.gif"
adon = new Image;
adon.src = "/images/ad_on.gif";

about = new  Image;
about.src = "/images/about_off.gif"
abouton = new Image;
abouton.src = "/images/about_on.gif";

contact = new  Image;
contact.src = "/images/contact_off.gif"
contacton = new Image;
contacton.src = "/images/contact_on.gif";

logo = new  Image;
logo.src = "/images/logo_sm_off.jpg"
logoon = new Image;
logoon.src = "/images/logo_sm_on.jpg";

pull = new  Image;
pull.src = "/images/login_lt_off.gif"
pullon = new Image;
pullon.src = "/images/login_lt_on.gif";

logrt = new  Image;
logrt.src = "/images/login_rt_off.gif"
logrton = new Image;
logrton.src = "/images/login_rt_on.gif";

pullhome = new  Image;
pullhome.src = "/images/login_lt_off.gif"
pullhomeon = new Image;
pullhomeon.src = "/images/login_lt1_on.gif";

rp = new  Image;
rp.src = "/images/rp_logo_off.gif"
rpon = new Image;
rpon.src = "/images/rp_logo_on.gif";

//---------- Functions for rollovers -------------
function on(lyr,div,name)   {
	if (is.ns4){
	document[lyr].document[div].document[name].src = eval(name + "on.src");
	}
	else{
	document[name].src = eval(name + "on.src");
	}
}

function off(lyr,div,name)   {
	if (is.ns4){
	document[lyr].document[div].document[name].src = eval(name + ".src");
	}
	else{
	document[name].src = eval(name + ".src");
	}
}

//----------
