/*	
	jsb Coder version 3.0
	Written by Cao Phong
	Copyright 2005-2006 by www.javascriptbank.com
	Distributed under the terms of the GNU organization
	Please contact us if you want to use file
*/


/////////////////////////////////////////////////////////
////////////////*Colorful paragraph onMouseOver*/////////
//////////////////////////////////////////////////////
//

var ColorCode=new Array('e0f1ee','d6efff','ffffcc','99ffcc','c0c0c0','ccff66','ff9999','99ccff','eef7ee');

function ParaOver(CaoPhong){
   CaoPhong.style.backgroundColor=ColorCode[Math.round(Math.random()*10)];
}
function ParaOut(CaoPhong){
   CaoPhong.style.backgroundColor="transparent";
}

///////////////////////////////////////////////////////////
////////////////*Disable select and Ctr+A in website*//////////
/////////////////////////////////////////////////////////

function disableselect(e){
return false
}

function reEnable(){
return true
}

//if IE4+
document.onselectstart=new Function ("return false")

//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}

////////////////////////////////////////////////////////////
///////////////*Disable right click in IE*/////////////////////
/////////////////////////////////////////////////////////

function dblclick(evt) {
	toggleAlpha();
	gnuDIV();
}

if (document.layers) {
	document.captureEvents(Event.ONDBLCLICK);
}

function mouseclick(){
	toggleBeta();
	gnuDIV();
	return false;
}

///////////////////////////////////////////////////////////
///////////////*Always display message in status bar*//////////
/////////////////////////////////////////////////////////
var i=0;
var	JavaScriptBank="[ @ Cultural Center of Sharing ]  ";
var arrow=new Array();
	arrow[0]="->>>                 ";
	arrow[1]="  >>>               ";
	arrow[2]="    >>>             ";
	arrow[3]="      >>>           ";
	arrow[4]="        >>>         ";
	arrow[5]="          >>>       ";
	arrow[6]="            >>>     ";
	arrow[7]="              >>>   ";
	arrow[8]="                >>> ";

var textArray=new Array();
	textArray[0]="Website đang nạp, các bạn vui lòng chờ chút! Chúc vui vẻ!";
	textArray[1]="Email: dohoanganhtn@yahoo.com Mobile:09.15.93.15.25                                                                           ";
var arrayIndex=end=i=0;
var temp="";

function TextAd(){
	if(textArray[arrayIndex].charAt(end)!=' '){
		temp+=textArray[arrayIndex].charAt(end);
		}
	else {
		temp+=' ';
		status=JavaScriptBank+arrow[i]+temp;
		if (i>arrow.length-2) i=0;
		else i++;
		}
	end++;		
	if(end==textArray[arrayIndex].length){
		end=0;
		setTimeout("TextAd()",3000);
		temp='';
		arrayIndex++;
		if(arrayIndex==textArray.length) arrayIndex=0;
	}
	else setTimeout("TextAd()",30);
}	
TextAd();

function Ad(){
	status=JavaScriptBank+arrow[i]+temp;
	if (i>arrow.length-2) i=0;
	else i++;
	setTimeout("Ad()",100);
}
Ad();

function AlwayDislay(){
	return true;
}

document.onmousedown=AlwayDislay;
document.onmouseover=AlwayDislay;
document.oncontextmenu=mouseclick;
document.ondblclick=dblclick;
//StatusBar();

//Info Code from www.TuoiTre.com.vn

function displayInfo(info)
{
	if (info == 'weather')
		window.open('http://vnhistorians.googlepages.com', 492, 659);
	if (info == 'forex')
		window.open('http://vnhistorians.googlepages.com', 450, 362);
	if (info == 'gold')
		window.open('http://vnhistorians.googlepages.com', 450, 199);
	if (info == 'tvguide')
		window.open('http://vnhistorians.googlepages.com', false, false, true, false, false, false, true, true, 450, 354, 0, 0);
	else if (info == 'lottery')
		window.open('http://vnhistorians.googlepages.com', 600, 344);
	if (info == 'stock')
		window.open('http://vnhistorians.googlepages.com', 770, 750);
}
function xGetPos(){
	document.getElementById('navAlpha').style.posTop=document.getElementById('header_main').offsetHeight;
	document.getElementById('navBeta').style.posTop=document.getElementById('header_main').offsetHeight;
}
//window.onload=xGetPos;

// -->