//------------------------------------------------------------------------------
//© 2003 - SoftComm Technology ®. [ e-biz dimension of KMD ] All rights reserved. 
//------------------------------------------------------------------------------
//----------------------------------------------------------
	//Copyright (c) 2002 SoftComm Technology.
	//All rights reserved.

	//Project:    Myanmar Book Centre [ Online Book Sale ]
	//File:       mbc.js 
	//Revised:    2002
	//Owner:      Waiminthu [ MiG ]
//-----------------------------------------------------------
var MiG=false;
//----[ Ainmate ]----------------------------------------
var doiN = new Image (32,18);
	doiN.src = "DataPhotos/Others/download.gif";
var doiA = new Image (32,18);
	doiA.src = "DataPhotos/Others/anidownload.gif";
//----[ Ainmate ]----------------------------------------
//1.Check browser IE or Netscape!
//Begin
function MM_reloadPage(init) 
{  
  if (init==true) with (navigator)
   {
   		if ((appName=="Netscape")&&(parseInt(appVersion)==4))
   			{
    			document.MM_pgW=innerWidth;
	 			document.MM_pgH=innerHeight; 
				onresize=MM_reloadPage;
			}
	}
   else if 
   (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//End

//------------------------------------------------------------------------------------------

//2.Right click no! (IE & Netscape)
//Begin
if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() 
{ 
  event.cancelBubble = true;
  event.returnValue = false; 

  return false; 
} 

function norightclick(e) 
{ 
  if (window.Event) 
  { 
    if (e.which == 2 || e.which == 3) 
      return false; 
  } 

  else 
    if (event.button == 2 || event.button == 3)
    { 
      event.cancelBubble = true;
      event.returnValue = false; 
      return false;
    } 

} 

if (document.layers)
  document.captureEvents(Event.MOUSEDOWN); 
 
document.oncontextmenu = nocontextmenu; 
document.onmousedown = norightclick; 
document.onmouseup = norightclick;
//End

//3.Hloat Hloat Script Start
var ns6=document.getElementById&&!document.all
var ie=document.all
var customcollect=new Array()
var i=0

function jiggleit(num){
if ((!document.all&&!document.getElementById)) return;
customcollect[num].style.left=(parseInt(customcollect[num].style.left)==-1)? customcollect[num].style.left=1 : customcollect[num].style.left=-1
}

function init(){
if (ie){
while (eval("document.all.jiggle"+i)!=null){
customcollect[i]= eval("document.all.jiggle"+i)
i++
} 
}
else if (ns6){
while (document.getElementById("jiggle"+i)!=null){
customcollect[i]= document.getElementById("jiggle"+i)
i++
}
}

if (customcollect.length==1)
setInterval("jiggleit(0)",80)
else if (customcollect.length>1)
for (y=0;y<customcollect.length;y++){
var tempvariable='setInterval("jiggleit('+y+')",'+'100)'
eval(tempvariable)
}
setTimeout('ShowWin()',3000);
}
//Hloat Hloat Script End
//------------------------------
function ExportWin(obj,sid,t,f)
{
	var YYWLeft = ((parseInt(screen.availWidth)/2) - 250) + "px";
	var YYWTop = ((parseInt(screen.availHeight)/2) - 100) + "px";		
	window.open(obj+".asp?sessionid="+ sid +"&t=" + t +"&f=" + f,"newWindow","Height=150,Width=300,status=no,help=no,resizable=no,location=no,menubar=no,toolbar=no,scrollbars=no,left="+ YYWLeft +",Top=" + YYWLeft + "\"");	
}
//-------------------------------------------------------------------------------------------
