var _KotakPath = "http://www.kotak.com";

function red_header(m_param)
{
	var class_name = "";
	document.write("<ul id='nav'>");
	if(m_param=="personal")
	class_name = "active";		
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/'><span>Personal</span></a></li>");
	
	class_name = "";
	if(m_param=="business")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/'><span>Business</span></a></li>");
	
	class_name = ""
	if(m_param=="corporate")
	class_name = "active";	
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/'><span>Corporate</span></a></li>");
	
	class_name = ""
	if(m_param=="commercialbanking")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/commercial-banking/'><span>Commercial</span></a></li>");
	
	document.write("<li><a href='" + _KotakPath + "/Kotak_BankSite/nri/' target='_blank'><span>NRI Banking</span></a></li>");	
		
	document.write("<li><a href='" + _KotakPath + "/bank/privy/index.htm' target='_blank'><span>Privy League</span></a></li>");
	
	class_name = ""
	if(m_param=="salary2wealth")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/deposits/savings-accounts/corporate-salary-savings-account.html'><span>Salary2Wealth</span></a></li>");
	
	class_name = ""
	if(m_param=="stockace")
	class_name = "active";
	//document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/stock-ace/'><span>Kotak Stock Ace</span></a><img src='" + _KotakPath + "/bank/common/images/new.gif' style='margin-top:5px;'></li>");
	
	document.write("<li><a href='http://agri.kotak.com/' target='_blank'><span>Agri Business</span></a></li>");	
	document.write("</ul>");
}

function setvisibility(menu_id,menu_no) 
{
 

	if(menu_no==1)
	{
		if (menu_id=="ddMenu_bank")
		{
			document.getElementById("ddMenu_bank").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_bank").style.display = "none";
		}

		if (menu_id=="ddMenu_card")
		{
			document.getElementById("ddMenu_card").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_card").style.display = "none";
		}
		if (menu_id=="ddMenu_investment")
		{
			document.getElementById("ddMenu_investment").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_investment").style.display = "none";
		}
		if (menu_id=="ddMenu_loans")
		{
			document.getElementById("ddMenu_loans").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_loans").style.display = "none";
		}
		if (menu_id=="ddMenu_cbank")
		{
			document.getElementById("ddMenu_cbank").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_cbank").style.display = "none";
		}
	}
	else	
	{
	
		if (menu_id=="ddMenu_current_account")
		{
			//alert(menu_id +"if");
			document.getElementById("ddMenu_current_account").style.display = "block";
		}
		else
		{
			//alert(menu_id +"else");
			document.getElementById("ddMenu_current_account").style.display = "none";
		}

		if (menu_id=="ddMenu_bus_loans")
		{
			document.getElementById("ddMenu_bus_loans").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_bus_loans").style.display = "none";
		}

		if (menu_id=="ddMenu_bus_con_bank")
		{
			document.getElementById("ddMenu_bus_con_bank").style.display = "block";
		}
		else
		{
			document.getElementById("ddMenu_bus_con_bank").style.display = "none";
		}
	}

}
function setvisibility1(menu_id) 
{
	document.getElementById(menu_id).style.display = "none"; 

}

/********* Personal Submenu ***********/
function personal_sublinks(m_param)
{

	var class_name = "";

document.write("<ul class='sub-nav'>");

	class_name = ""
		if(m_param=="deposit")
	class_name = "active";	
	//document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/deposits/' ><span>Deposits</span></a>");
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/deposits/' onMouseOver=setvisibility('ddMenu_bank',1);><span>Accounts & Deposits</span></a>");
	document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_bank' style='left: 30px; top: 148px;' onMouseOver=setvisibility('ddMenu_bank',1) onMouseOut=setvisibility1('ddMenu_bank');>");		
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/deposits/savings-accounts/' class='b'>Savings Accounts</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/' class='b'>Current Accounts</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/deposits/term-deposits/term-deposits.html' class='b'>Term Deposits</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/deposits/safe-deposit-lockers/safe-deposit-lockers.html' class='b'>Safe Deposit Lockers</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/common/financial-inclusion.htm' class='b'>Financial Inclusion</a></div>");
	//document.write("</ul>");	
	document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/		
	
	document.write("</li>");
	
	class_name = ""
		if(m_param=="cards")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/cards/' onMouseOver=setvisibility('ddMenu_card',1);><span>Cards</span></a></li>");

	
	/********* MOUSEOVER SCRIPT***********/
		document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_card' style='left: 165px; top: 148px;' onMouseOver=setvisibility('ddMenu_card',1) onMouseOut=setvisibility1('ddMenu_card');> ");	
		
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='http://www.kotakcards.com/kotak/cclive/index.html' target='_blank' class='b'>Credit Cards <img src='http://www.kotak.com/bank/images/external-link.gif'></a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/cards/Global-debit-cards.html' class='b'>Global Debit Cards</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/cards/best-compliments-card.html' class='b'>Best Compliments Cards</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/cards/netcard.html' class='b'>Kotak Gold netc@rd</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/cards/travel-card.html' class='b'>Kotak World Travel Card</a></div>");
			
		document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	class_name = ""
		if(m_param=="investments")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/investments/' onMouseOver=setvisibility('ddMenu_investment',1);><span>Investments</span></a></li>");
	/********* MOUSEOVER SCRIPT***********/
			document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_investment' style='left: 220px; top: 148px;' onMouseOver=setvisibility('ddMenu_investment',1) onMouseOut=setvisibility1('ddMenu_investment');> ");	
			
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/mutual-funds.html' class='b'>Mutual Funds</a></div>");
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/demat.html' class='b'>Demat</a></div>");
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/gold.html' class='b'>Kotak Gold Eternity</a></div>");
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/new-pension-scheme.html' class='b'>New Pension System</a></div>");
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/insurance.html' class='b'>Insurance</a></div>");
			document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/investments/asba.html' class='b'>ASBA</a></div>");
				
			document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	
	class_name = ""
		if(m_param=="loans")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/loans/' onMouseOver=setvisibility('ddMenu_loans',1);><span>Loans</span></a></li>");
	/********* MOUSEOVER SCRIPT***********/
	document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_loans' style='left: 305px; top: 148px;' onMouseOver=setvisibility('ddMenu_loans',1) onMouseOut=setvisibility1('ddMenu_loans')> ");	

	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/home-loans.html' class='b'>Home Loans</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/personal-loans.html' class='b'>Personal Loans</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='http://carloan.kotak.com/' target='_blank' class='b'>Car Loans <img src='http://www.kotak.com/bank/images/external-link.gif'></a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/loan-against-property.html' class='b'>Loan against property</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/home-improvement-loans.html' class='b'>Home Improvement Loans</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/home-loan-balance-transfer.html' class='b'>Home Loan Balance Transfer</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/stock-ace.html' class='b'>Kotak Stock Ace</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/loans/gold-loans.html' class='b'>Gold Loan</a></div>");
	
	document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	
	class_name = ""
		if(m_param=="conveniencebanking")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/' onMouseOver=setvisibility('ddMenu_cbank',1);><span>Convenience Banking</span></a></li>");
	/********* MOUSEOVER SCRIPT***********/
	document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_cbank' style='left: 360px; top: 148px;' onMouseOver=setvisibility('ddMenu_cbank',1) onMouseOut=setvisibility1('ddMenu_cbank')> ");	

	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/net-banking.html' class='b'>Net Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/kotak-payment-gateway.html' class='b'>Kotak Payment Gateway</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/mobile-banking.html' class='b'>Mobile Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/sms-banking.html' class='b'>SMS Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/alerts.html' class='b'>Alerts</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/phone-banking.html' class='b'>Phone Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/atm-network.html' class='b'>ATM Network</a></div>");
		document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	class_name = ""
		if(m_param=="specialoffer")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/personal-banking/cards/special-offers.html'><span>Special Offers</span></a></li>");
	
	
	
	document.write("<li><a href='" + _KotakPath + "/bank/compliments/compliments.htm' target='_blank'><span>Customer Feedback</span></a></li>");
document.write("</ul>");

}

/********* Business Submenu ***********/
function business_sublinks(m_param)
{

	var class_name = "";

document.write("<ul class='sub-nav'>");

	class_name = ""
		if(m_param=="bbs")
	class_name = "active";	
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/business-banking-solutions/business-banking-solutions.html' ><span>Business Banking Solutions</span></a>");
	
	document.write("</li>");
	
	class_name = ""
		if(m_param=="ca")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/current-accounts/' onMouseOver=setvisibility('ddMenu_current_account',2);><span>Current Accounts</span></a></li>");
	/********* MOUSEOVER SCRIPT***********/
	document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_current_account' style='left: 210px; top: 148px;' onMouseOver=setvisibility('ddMenu_current_account',2) onMouseOut=setvisibility1('ddMenu_current_account')> ");
	

	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/neo-current-accounts.html' class='b'>Neo Current Account</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/edge-current-accounts.html' class='b'>Edge Current Account</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/pro-current-accounts.html' class='b'>Pro Current Account</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/elite-current-accounts.html' class='b'>Elite Current Account</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/current-accounts/ace-current-accounts.html' class='b'>Ace Current Account</a></div>");

	document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	class_name = ""
		if(m_param=="bl")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/loans/index.html' onMouseOver=setvisibility('ddMenu_bus_loans',2);><span>Loans</span></a></li>");
	
	/********* MOUSEOVER SCRIPT***********/
		document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_bus_loans' style='left: 320px; top: 148px;' onMouseOver=setvisibility('ddMenu_bus_loans',2) onMouseOut=setvisibility1('ddMenu_bus_loans')> ");	
	
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/loans/business-loans.html' class='b'>Business Loans</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/credit-access/' class='b'>Credit Access</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/loans/overdraft-facility.html' class='b'>Overdraft Facility</a></div>");
		document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/small-business/loans/fccr.html' class='b'>Facility against Credit Card Receivables</a></div>");
	
		document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	/*class_name = ""
		if(m_param=="creditaccess")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/credit-access/'><span>Kotak Credit Access </span></a></li>");*/
	
	class_name = ""
		if(m_param=="cb")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/small-business/convenience-banking-1/' onMouseOver=setvisibility('ddMenu_bus_con_bank',2);><span>Convenience Banking</span></a></li>");
	/********* MOUSEOVER SCRIPT***********/
	document.write("<div class='dropdownsubMenu pl10 pr10 pb10' id='ddMenu_bus_con_bank' style='left: 380px; top: 148px;' onMouseOver=setvisibility('ddMenu_bus_con_bank',2) onMouseOut=setvisibility1('ddMenu_bus_con_bank')> ");	

	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/net-banking.html' class='b'>Net Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/kotak-payment-gateway.html' class='b'>Kotak Payment Gateway</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/mobile-banking.html' class='b'>Mobile Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/sms-banking.html' class='b'>SMS Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/alerts.html' class='b'>Alerts</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/phone-banking.html' class='b'>Phone Banking</a></div>");
	document.write("<div class='ddCat'><img src='" + _KotakPath + "/bank/images/arrow-red.gif'> <a href='" + _KotakPath + "/bank/personal-banking/convenience-banking/atm-network.html' class='b'>ATM Network</a></div>");

	document.write("</div>");
	/********* MOUSEOVER SCRIPT***********/	
	
	class_name = ""
		if(m_param=="tradefinance")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/trade-finance/'><span>Trade Service</span></a></li>");
		
document.write("</ul>");

}


/********* Corporate Submenu ***********/
function corporate_sublinks(m_param)
{

	var class_name = "";

document.write("<ul class='sub-nav'>");

	class_name = ""
		if(m_param=="corp_proucts")
	class_name = "active";	
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/products/'><span>Products</span></a></li>");
	

	class_name = ""
		if(m_param=="tradefinance")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/trade-finance/'><span>Trade Finance</span></a></li>");
	
	class_name = ""
		if(m_param=="retailassets")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/retail-assets/'><span>Retail Assets</span></a></li>");
	
	class_name = ""
		if(m_param=="transactionbanking")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/transaction-banking/transaction-banking.html'><span>Transaction Banking</span></a></li>");
	
	class_name = ""
		if(m_param=="custodyservices")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/custody-service/custody-services.html'><span>Custody Services</span></a></li>");
	
	class_name = ""
		if(m_param=="corp_ca")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/current-account/current-account.html'><span>Current Account</span></a></li>");
	
	class_name = ""
		if(m_param=="corp_cb")
	class_name = "active";
	document.write("<li class='" + class_name + "'><a href='" + _KotakPath + "/bank/corporate-banking/convenience-banking-2/'><span>Convenience Banking</span></a></li>");
		
document.write("</ul>");

}

