//Thùc hiÖn bëi Haso Design - haso@hcm.vnn.vn

var oLastBtn=0;

function RaiseButton(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	var bChosen = false;
	if(oLastBtn && oLastBtn != oBtn){
		HideButton();
	}
	if(oBtn.buttonType){
		if (oBtn.buttonType == "LeftNavChosen") {
		oBtn.className = "LeftNavUp";
		}
		else {
		oBtn.className = oBtn.buttonType + "Up"; 
		}
		oLastBtn=oBtn;
	}
	else
		oLastBtn = 0;
}


function DepressButton(){
	window.event.cancelBubble=true;
	oBtn = window.event.srcElement;
	if(oBtn.buttonType){
		oBtn.className = oBtn.buttonType + "Down"; 
		if (oBtn.className == "LeftNavChosenDown") {
		oBtn.className = "LeftNavDown";
		}
	}
}


function HideButton(){
	if (oLastBtn.buttonType == "LeftNavChosen") {
		oLastBtn.className = "LeftNavChosen";
	}
	else {
	oLastBtn.className = oLastBtn.buttonType + "Off";
	}
}

function MakeBGBlue(oRegion) {
	oRegion.style.backgroundColor="#369cc";	
	oRegion.style.cursor="hand";		
}

function MakeBGWhite(oRegion) {
	var oToEl = window.event.toElement;
	if ((oToEl && !oRegion.contains(oToEl))||!oToEl) {
	oRegion.style.backgroundColor="#FFFFFF";	
	}		
}

function ToolbarRed() {
	oSrcEl = window.event.srcElement;
	if (oSrcEl.tagName == "IMG") {
		oSrcEl.src = oSrcEl.src.substring(0,(oSrcEl.src.indexOf(".gif"))) + "_.gif";
		window.event.cancelBubble = true;
	}
}
function ToolbarWhite() {
	oSrcEl = window.event.srcElement
	if (oSrcEl.tagName == "IMG") {
		oSrcEl.src = oSrcEl.src.substring(0,(oSrcEl.src.indexOf("_.gif"))) + ".gif";
		window.event.cancelBubble = true;
	}
}

<!--
var curMenu = 0;
var Page = 0;
function navClikker(submenu,imgID,imgSrc) {
	curMenu = submenu.id;
		if (submenu.style.display =='') {
			submenu.style.display = 'none';			
		}
		else {
			for (var i=0; i <= intMenus; i++) {
				var x;
				x = imgSrc.substring(imgSrc.length);
				var mnuImage = document.all('mnu' + i + 'p')
				 mnuImage.src = mnuImage.src.substring(0,mnuImage.src.length) + "" + x;
				 document.all('mnu' + i + '1').style.display = 'none';
				}
			
			imgID.src = imgSrc.substring(0,imgSrc.length) + "_" + x;
			submenu.style.display='';
		}
	}

function newsClikker(newstext,arrow) {
		if (newstext.style.display == '') {
			newstext.style.display = 'none';
			arrow.src= '' + arrow.style.color + '.gif';
		}
		else {
			for (var i=0; i <= intNews; i++) {
				var newsArrow = document.all('BANDOC' + i + 'p')
				 newsArrow.src = '' + newsArrow.style.color + '.gif';
				 document.all('BANDOC' + i + 'a').style.display = 'none';
				}
 			newstext.style.display='';
			arrow.src= '' + arrow.style.color + '_.gif';
		}
	}


function mouseoverimg(imgname, source) {
if (imgname.complete) {
	x = source.substring(source.length-4)
	if ((source.charAt(source.length-5) == "") || (source.charAt(source.length-5) == "_")) {//3
	imgname.src = source.substring(0,source.length-5) + "" + x;//2
	}
	else {
	imgname.src = source.substring(0,source.length-4) + "_" + x;//2
	}
	}
}
 
function mouseoutimg(imgname, source, parent) {
if (imgname.complete) {
	if (parent == "") {
		imgname.src = source.substring(0,source.length-5) + "_" + x;//-5
		}
	else {
		x = source.substring(source.length-4)//-4
		if ((source.charAt(source.length-5) == "") && (curMenu == parent) || (parent.style.display != "none")) {//-5
		imgname.src = source.substring(0,source.length-5) + "" + x;//3,-5
		}
		else {
		imgname.src = source.substring(0,source.length-5) + "_" + x;//-5
		}
	}
	}
}

function mouseoverlink(link) {
	link.style.textDecorationUnderline = "None";

}

function mouseoutlink(link) {
	link.style.textDecorationNone = "None";
}
//----------------------------------------------------

 var sOpenMenuID = ""
var iTimerID 
var s="Chµo b¹n ®Õn víi B¸o B×nh ThuËn §iÖn tö !!! ----------   B¸o B×nh ThuËn §iÖn tö cung cÊp ®Çy ®ñ c¸c  tin tøc sù kiÖn, th«ng tin kinh tÕ, v¨n ho¸-x· héi, ph¸p luËt, ph¸p luËt, quèc tÕ ... ®Çy ®ñ nhÊt, nhanh nhÊt, kÞp thêi nhÊt  !!! ---------- H·y truy cËp vµo ®Þa chØ  www.binhthuan.vn/baobt/ ------------- "


function Chaychu(s) {
   	window.status=s
   	var c=s.substring(0,1)
   	s=s.substring(1,s.length)+c
  	var lenh="Chaychu('" + s + "')"
  	timer2=window.setTimeout(lenh,100)
 	}

//---------------------------------------
 
str = "Chµo mõng b¹n ghÐ th¨m B¸o B×nh ThuËn §iÖn tö !!!^" +
                "B¸o B×nh ThuËn §iÖn tö cung cÊp ®Çy ®ñ c¸c sù kiÖn, th«ng tin kinh tÕ, v¨n ho¸ - x· héi, ph¸p luËt, quèc tÕ ...^" +
                "... mét c¸ch ®Çy ®ñ nhÊt, nhanh nhÊt, kÞp thêi nhÊt  !!!^" +
                "... H·y truy cËp vµo ®Þa chØ: http://www.binhthuan.vn/baobt/^" +                
                "^"
scrollSpeed = 25
lineDelay   = 1500
txt = ""
function RunString(pos) {

    if (str.charAt(pos) != '^') {
      txt    = txt + str.charAt(pos)
      status = txt
      Speed  = scrollSpeed
    }
    else {
      Speed = lineDelay
      txt   = ""
      if (pos == str.length-1) pos = -1
    }
    pos++
    setTimeout("RunString('"+pos+"')",Speed)
}




