/***********************************************
* click vao la show up ra 1 table
Overlapping Content link- © Dynamic Drive (www.dynamicdrive.com)
* This notice must stay intact for legal use.
* Visit http://www.dynamicdrive.com/ for full source code
***********************************************/

function getposOffset(overlay, offsettype){
var totaloffset=(offsettype=="left")? overlay.offsetLeft : overlay.offsetTop;
var parentEl=overlay.offsetParent;
while (parentEl!=null){
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
parentEl=parentEl.offsetParent;
}
return totaloffset;
}

function overlay(curobj, subobj){
if (document.getElementById){
var subobj=document.getElementById(subobj)
subobj.style.left=getposOffset(curobj, "left")+"px"
subobj.style.top=getposOffset(curobj, "top")+"px"
subobj.style.display="block"
return false
}
else
return true
}

function overlayclose(subobj){
document.getElementById(subobj).style.display="none"
}


///////////////////////////////////////
// WWW.NGOC-HA.COM
// WEBMASTER@NGOC-HA.COM
///////////////////////////////////////
function openWin(theURL) {
    window.open(theURL,'NHvillage','width=550,height=410,menubar=no,location=no,personalbar=0,scrollbars=1,resize=0');
}
function p(url,width,height) {
	window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+ width +',height='+ height +'');
}
function openImage(url,width,height) {
	window.open(url,"win",'toolbar=0,location=0,directories=0,status=1,menubar=0,scrollbars=1,resizable=1,width='+ width +',height='+ height +'');
}








// end vietuni.js
   function bg_c(prop)
   {
   }
   function switchLink(URL){
     window.location.href = URL;
   }
   function bg_d(prop)
   {
   }  


////




   function clearText(prop)
   {
      prop.style.cursor='hand';
   }


   function bg_a(prop)
   {
   }
   function switchLink(URL){
     window.location.href = URL;
   }
   function bg_b(prop)
   {
   }  


////

function switchColor(obj, pviiColor) { //v1.1 by Project VII
        obj.style.backgroundColor=pviiColor
}


function noright()
{
if (document.layers){
document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;
}
else{
document.onmouseup=clickNS;document.oncontextmenu=clickIE;
}
document.oncontextmenu=new Function("return false")

}


function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {
if(document.layers||(document.getElementById&&!document.all)) 
{
if (e.which==2||e.which==3) {(message);return false;}
}
}
