// JavaScript Document
function hmFlash()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="898" height="268"><param name="movie" value="flash/hmFlash.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="flash/hmFlash.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="898" height="268"></embed></object>');	
}

function graph()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="222" height="120"><param name="movie" value="flash/Graph_nov2010.swf"><param name="quality" value="high"><embed src="flash/Graph_nov2010.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="222" height="120"></embed></object>');	
}

function contact()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="897" height="230"><param name="movie" value="../flash/ContactUs.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="../flash/Contact_top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="897" height="230"></embed></object>');	
}

function careers()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="897" height="230"><param name="movie" value="../flash/workwithusarabic.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="../flash/Careers_top.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="897" height="230"></embed></object>');	
}

function News()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="897" height="230"><param name="movie" value="../flash/news.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="../flash/news.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="897" height="230"></embed></object>');	
}

function Gallery()
{
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="897" height="230"><param name="movie" value="../flash/gallery.swf"><param name="wmode" value="transparent"><param name="quality" value="high"><embed src="../flash/news.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="897" height="230"></embed></object>');	
}

function workWith()
{
	 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="213" height="68"><param name="movie" value="flash/workwithus.swf"><param name="quality" value="high"><embed src="flash/workwithus.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="213" height="68"></embed></object>');
}


function wayForward()
{
	 document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="213" height="68"><param name="movie" value="flash/wayforward_new.swf"><param name="quality" value="high"><embed src="flash/wayforward_new.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="213" height="68"></embed></object>');
}



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function showPopup(URL)
{
	if (screen.width > 800)
	{
		window.open(URL,"","width=720,height=480,left=80,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
	else
	{
		window.open(URL,"","width=720,height=480,left=114,top=100,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
}

function showPop(URL)
{
	if (screen.width > 800)
	{
		window.open(URL,"","width=750,height=670,left=0,top=0,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
	else
	{
		window.open(URL,"","width=750,height=670,left=0,top=0,scrollbars=yes,resizable=yes,menubar=0,toolbar=0,status=yes")
	}
}

function findPosX(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetLeft;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.x)
        curleft += obj.x;
    return curleft;
  }
function findPosY(obj)
  {
    var curleft = 0;
    if(obj.offsetParent)
        while(1) 
        {
          curleft += obj.offsetTop;
          if(!obj.offsetParent)
            break;
          obj = obj.offsetParent;
        }
    else if(obj.y)
        curleft += obj.y;
       
    return curleft;
    
  }
   function callmenufun_sub(imgname,divname)
{  
var x1=findPosX(document.getElementById(imgname));  
var X2 = findPosY(document.getElementById(imgname)); 
document.getElementById(divname).style.top = X2-5;
document.getElementById(divname).style.left=x1-190; 
}


function callmenufun(imgname,divname)
{
//alert(imgname);
//alert(divname);
var x1=findPosX(document.getElementById(imgname));
//alert(x1);
var X2 = findPosY(document.getElementById(imgname));  
document.getElementById(divname).style.left=x1-94;
document.getElementById(divname).style.top = X2+62;
}




