
//*************JS SCRIPTS FOR HEADER, FOOTER, MENU HANDLING, *********************////
		var nScrollDelay = 25
		var tick1="<A HREF='../homepage/press release.htm'>Rs. 4987 CRORE DAMAGES CLAIMED FROM SATYAM BY MIDAS TOUCH</A>"

//        var tick1="<a href='../scripts/count.asp?url=http://www.suchetadalal.com/articles/display/46/921.article' target='_blank'>A CALL TO JOIN SATYENDRA DUBEY, CRUSADE AGAINST CORRUPTION</a>" 
		var tick2="<A HREF='../homepage/appeal to satyam shareholders.htm'>MIDAS TAKES UP CAMPAIGN ON SATYAM</A>"
		//var tick2="<A HREF=http://www.investorsbeware.net >FINANCIAL EXPRESS CALLS THE BOOK &quot;INVESTORS BEWARE&quot; : A TALISMAN FOR THE BOURSE</A>"
		var tick3="<a href='../homepage/our_success_stories.htm' >INVESTORHELPLINE CREATES MANY SUCCESS STORIES</a>"
		var tick4="<A HREF='../scripts/ticker2-JPC.asp'>JOINT PARLIAMENTARY COMMITTEE ACCEPTS MIDAS SUGGESTIONS</A>"


function conf_logout() 
 {
 if(confirm("Do you really want to LOGOUT"))
 {document.location.href='../scripts/logout.asp'};
 }

function Markey()
 {
var browser = navigator.appName;
							
							if (browser == "Netscape")				
							{								
								marqueecontents="<font style='font-size:8pt;' face='MS Sans Serif,tahoma,verdana,arial' color='#3300cc'><b><font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick1+"<font style='font-size:8pt;' face='MS Sans Serif,tahoma,verdana,arial' color='#3300cc'><b><font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick2+"<font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick3+"<font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick4;								
								var marqueewidth=640;
								var marqueeheight=10;
								var speed=6;
								if (document.all)
								document.write('<marquee scrollAmount='+speed+' style="width:'+marqueewidth+'">'+marqueecontents+'</marquee>')

								function regenerate(){
								window.location.reload()
								}
								function regenerate2(){
								if (document.layers){
								setTimeout("window.onresize=regenerate",450)
								intializemarquee()
								}
								}

								function intializemarquee(){
								document.cmarquee01.document.cmarquee02.document.write('<nobr>'+marqueecontents+'</nobr>')
								document.cmarquee01.document.cmarquee02.document.close()
								thelength=document.cmarquee01.document.cmarquee02.document.width
								scrollit()
								}

								function scrollit(){
								if (document.cmarquee01.document.cmarquee02.left>=thelength*(-1)){
								document.cmarquee01.document.cmarquee02.left-=speed
								setTimeout("scrollit()",100)
								}
								else{
								document.cmarquee01.document.cmarquee02.left=marqueewidth
								scrollit()
								}
								}

								window.onload=regenerate2;
							}
						else
						{								
							document.write("<marquee id=marquee onMouseover='marquee.stop();' onMouseout='marquee.start();' truespeed=1 scrolldelay='25' scrollamount=1>");
							document.write("<font style='font-size:8pt;' face='MS Sans Serif,tahoma,verdana,arial' color='#3300cc'><b><font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick1+"<font style='font-size:8pt;' face='MS Sans Serif,tahoma,verdana,arial' color='#3300cc'><b><font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick2+"<font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick3+"<font color='#05428c'>&nbsp;&nbsp;#&nbsp;&nbsp;&nbsp;</font>"+tick4);
							document.write("</b></font></marquee>");
						}
}


var IM=new String ("<script language=javascript SRC=../Menu/apymenu.js></SCRIPT><script language=javascript SRC=../Menu/ShowHead.js></SCRIPT><script language=javascript SRC=../Menu/menu.js></SCRIPT>")
document.write (IM);


function ShowFlashBanner(BName,BWidth,BHeight) {
	if (FlashPresent()) {
		if (BWidth == 0) BWidth = '100%';
		else BWidth=ResMultiplierW() * BWidth;
		BHeight=ResMultiplierH() * BHeight;
		document.write('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+BWidth+'" height="'+BHeight+'" id="'+BName+'" ALIGN="">');
		document.write('<PARAM NAME=movie VALUE="'+BName+'"><PARAM NAME="quality" VALUE="high"><param name="SCALE" value="exactfit"> <param name="menu" value="true" /> <PARAM NAME="WMode" VALUE="Transparent"> ');
		document.write('<EMBED src="'+BName+'" quality="high" menu="true" width="'+BWidth+'" height="'+BHeight+'" NAME="0155.swf"  bgcolor="#FFCC99" scale="exactfit" wmode="transparent" ALIGN="center" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>');
		document.write('</OBJECT>');
	}		
	else {
		alert("Notok");
		document.write('<img id="SmallMenuImage"  src="" width="779"  valign="top" alt="">'); 
	}		
}
function trimString(sString)
    {
   	 if (sString.charAt(0)==" ")
	{
		sString=sString.substring(1,sString.length);
		return trimString(sString);
	}
	else if (sString.charAt(sString.length-1)==" ")
        {
		sString=sString.substring(0,sString.length-1);
		return trimString(sString);}
    else
        return sString;
   }
   function ResMultiplierH(){
	var RM_H=1;
	if (screen.height >600) RM_H = screen.height/600;
	return RM_H;
}

//**************************************************************************
//ResMultiplierW()
//This function calculates and return the value of Height multiplier factor to be used when resolution is
//increased from height of 600 pixel. For 600 pixel this returns 1.
//R# RM_H                  //Value of Height Multiplier Factor. This can be a decimal value
//SIG# SJG # 25-Jan-2007
//**************************************************************************
function ResMultiplierW(){
	var RM_W=1;
	if (screen.width >800) RM_W = screen.width/800;
	return RM_W;
}
function FlashPresent()
{
	with (navigator) if(appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1)
	{
		//alert("ok1"+appName +window.flash);
		document.write(''+'<scr'+'ipt language="VBScript">\nOn error resume next\n'+'flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.6"))\n</scr'+'ipt>');
		okflash=true;
	}
	
	//with (navigator) alert(plugins+' '+plugins.length+' ' + appName + ' ' + window.flash);
	
	with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length) )
	{
		//alert("ok2");

    	okflash=(plugins && plugins["Shockwave Flash"]);
 				  
 	}
	else if (appVersion.indexOf('3.1')==-1)
	{ 
   		okflash=true;
	}	
	else
	{
	 okflash=false;
	}
	return okflash;
}
var pgheader=new String();
pgheader="<div><script language=javascript>ShowFlashBanner('../images/HeaderFlashfile/banner.swf',0,150);</script></div><div><table background='../images/menu-bg.gif' border='0' cellpadding='0' cellspacing='0' class='nmenu' height='44px' width='100%'><tr><td><a href='../scripts/aboutus.asp'>About Us</a> </td><td><a href='../homepage/Brief%20profile-VKJAIN.htm'>Our<br>Founder</a> </td><td><a href='../scripts/activity.asp'>Activities</a> </td><td><a href='../Homepage/mtiaPresentation.htm'>Midas<br>Presentation</a> </td><td><a href='../SCRIPTS/GLOSSARY.asp'>Education<br>and Research </a></td><td><a href='../scripts/links.asp'>Important<br>Links</a> </td><td><script language=javascript>drawMenus();</script><b>&nbsp; Media Coverag</b></td><td>&nbsp;&nbsp;&nbsp; <a href='../scripts/thumnail.asp'> Photo Gallery</a> </td><td><a href='../scripts/aboutus.asp#contact'>Contact Us</a> </td><td background='../images/fb-bg.gif' width='110'><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href='../scripts/feedback.asp'>Feedback</a></td></tr></table></div>"

var pgfooter=new String();
pgfooter="<p>&nbsp;</p><table border=0 width=100% cellspacing=0 cellpadding=0><tr><td width=30% height=23 valign=top align=right></td><td height=50 rowspan=2 valign=top><img border=0 src=../images/cross.gif width=50  height=50></td><td width=65% height=50 background=../images/bg5.gif rowspan=2 valign=top nowrap>  <p class=menu1><a href=../html/pp.htm target=_blank>Privacy Policy</a>&nbsp; |&nbsp;&nbsp;<font color=#1B3148> Copyright <b>©</b> 2003-09  Midas Touch Investors Association </font></p></td>  </tr>  <tr><td width=30% height=27 background=../images/bg5.gif nowrap><p class=menu2>&nbsp;  <a href=../html/disclaimer.htm target=_blank>Disclaimer</a>&nbsp; |&nbsp; <a href=../html/tou.htm target=_blank>Terms of Use</a> </P></td>  </tr></table><p align=center class=foot><font color=#000080 face=Arial size=1>Site Designed and Hosted by <a href=http://www.uptecnet.com target=_blank>UPTEC Computer Consultancy Ltd.</a></font></p>"




var ie4=document.all&&navigator.userAgent.indexOf("Opera")==-1
var ns6=document.getElementById&&!document.all
var ns4=document.layers

function showmenu(e,which){
clearhidemenu();

if (!document.all&&!document.getElementById&&!document.layers)
return

menuobj=ie4? document.all.popmenu : ns6? document.getElementById("popmenu") : ns4? document.popmenu : ""
menuobj.thestyle=(ie4||ns6)? menuobj.style : menuobj

if (ie4||ns6)
menuobj.innerHTML=which
else{
menuobj.document.write('<layer name=gui bgColor=#E6E6E6 width=165 onmouseover="clearhidemenu()" onmouseout="hidemenu()">'+which+'</layer>')
menuobj.document.close()
}

menuobj.contentwidth=(ie4||ns6)? menuobj.offsetWidth : menuobj.document.gui.document.width
menuobj.contentheight=(ie4||ns6)? menuobj.offsetHeight : menuobj.document.gui.document.height
eventX=ie4? event.clientX : ns6? e.clientX : e.x
eventY=ie4? event.clientY : ns6? e.clientY : e.y


var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX
var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY


if (rightedge<menuobj.contentwidth)

menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX-menuobj.contentwidth : ns6? window.pageXOffset+eventX-menuobj.contentwidth : eventX-menuobj.contentwidth
else

menuobj.thestyle.left=ie4? document.body.scrollLeft+eventX : ns6? window.pageXOffset+eventX : eventX


if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+eventY-menuobj.contentheight : ns6? window.pageYOffset+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY + 9: ns6? window.pageYOffset+eventY+9 : eventY
menuobj.thestyle.visibility="visible"
return false
}

function contains_ns6(a, b) {

while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function hidemenu(){
if (window.menuobj)
menuobj.thestyle.visibility=(ie4||ns6)? "hidden" : "hide"
}


function dynamichide(e){
if (ie4&&!menuobj.contains(e.toElement))
hidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
hidemenu()
}

function delayhidemenu(){
if (ie4||ns6||ns4)
delayhide=setTimeout("hidemenu()",1000)
}

function clearhidemenu()
{if (window.delayhide)
clearTimeout(delayhide)
}

/*function callshow(e,w)
{
//alert(event);
delayhide=window.setTimeout("showmenu1("+w+")",2000)
}
function showmenu1(w)
{
 alert(w);
 }*/
function highlightmenu(e,state){
if (document.all)
source_el=event.srcElement
else if (document.getElementById)
source_el=e.target
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
else{
while(source_el.id!="popmenu"){
source_el=document.getElementById? source_el.parentNode : source_el.parentElement
if (source_el.className=="menuitems"){
source_el.id=(state=="on")? "mouseoverstyle" : ""
}
}
}
}

if (ie4||ns6)
document.onclick=hidemenu



function newsWindow(url,winWidth,winHeight)
{
var  myoptions="left=150,top=50,screenX=150,screenY=50,width="+winWidth+",height="+winHeight+",resizable=yes,scrollbars=yes,maximize=null";
var newWin=open("","",myoptions);
newWin.document.write("<title>INVESTORFRIEND.COM - MTIA - NEWS</title><body  topmargin=2 bottommargin=2 leftmargin=2, rightmargin=2>");
newWin.document.write("<p align=center><img src="+url+"></p>");
//newWin.document.write("<form><p align=center><input type=button value=Close onclick=window.close();></p></form>");
}

function HelpWindow(url,winWidth,winHeight)
{
var  myoptions="width="+winWidth+",height="+winHeight+", scrollbars=yes,resizable=yes,maximize=null";
var newWin=open("","",myoptions);
newWin.document.location.href=url;
}

