document.write('<LINK REL="SHORTCUT ICON" HREF="favicon.ico">');


//--------------------------------------------------------------------------
//Function to preload images
//-------------------------------------------------------------------------

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_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_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 to postion div of search by keywords of index page
//-------------------------------------------------------------------------
function layer10divpos()
{
// variables to get screen height and width of window 

var winWidth=screen.width;
var winHeight=screen.height;

// Window width minus resolution of the screen the design is designed for
// Divide by 2 to get outer space between screen border and the main table
// Add width from outer table border to start of element. 
 
 
var left = (winWidth-1024)/2+50;
var top = 127;


document.getElementById("layer10").style.left=left+'px';
document.getElementById("layer10").style.top=top+'px';
document.getElementById("layer10").style["display"]="block" ;
document.getElementById("layer10").style["visibility"]="visible" ;
}

//--------------------------------------------------------------------------
//Function to validate application form for free assessment
//-------------------------------------------------------------------------

function chkform1()
{
	var msg = "";
	if (document.form1.yourname.value == "") {msg += "Your Name \n";}
	if (document.form1.companyname.value == "") { msg += "Company Name \n";}
	if (document.form1.companyname.value == "") { msg += "Address \n";}
	if (document.form1.phone.value == "") { msg += "Telephone No. \n";}
	if (document.form1.mobile.value == "") { msg += "Mobile No. \n";}
	if (document.form1.email.value == "") { msg += "Email address \n";}
	else
	{
		var houseReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
		if (houseReegxp.test(document.form1.email.value) == false)
		{
			msg = msg + "Invald Email Address\n";
		}
	}
	if (document.form1.Your_situation_and_requirement.value == "") { msg += "Your situation and requirement  \n";}
	if (document.form1.Your_ideal_outcome_or_objective.value == "") { msg += "Your ideal outcome/objective  \n";}


	if (msg != "") { alert("Please fill in following fields-\n\n"+msg); return false;}
	
	

}

//--------------------------------------------------------------------------
//Function to validate enquiry form
//-------------------------------------------------------------------------

function chkform2()
{
	var msg = "";
	var ok = 0;
	var intstr = "";
	if (document.form2.yourname.value == "") {msg += "Your Name \n";}
	if (document.form2.companyname.value == "") { msg += "Company Name \n";}


	for(var i=2;i<=34;i++)
	{
		if(document.forms[0].elements[i].checked)
		{
			var ok = 1;
			break;
		}
		
	}
	if (ok == 0)
	{
		msg = msg + "Interested in \n";
	}


	if (ok == 1)
	{
		for(var i=2;i<=34;i++)
		{
			if(document.forms[0].elements[i].checked)
			{
				intstr += document.forms[0].elements[i].value+', ';   


			}
		}
		document.form2.interested_in_str.value = intstr;
		
	}	
	

	if (document.form2.email.value == "") { msg += "Email address \n";}
	else
	{
		var houseReegxp = /^([a-zA-Z0-9])+([\.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)*\.([a-zA-Z]{2,6})$/;
		if (houseReegxp.test(document.form2.email.value) == false)
		{
			msg = msg + "Invald Email Address\n";
		}
	}
	if (document.form2.mobile.value == "") { msg += "Mobile No. \n";}
	if (document.form2.phone.value == "") { msg += "Telephone No. \n";}
	if (document.form2.address.value == "") { msg += "Address \n";}
	if (document.form2.city.value == "") { msg += "City \n";}
	if (document.form2.state.value == "") { msg += "State \n";}
	if (document.form2.country.value == "") { msg += "Country \n";}
	if (document.form2.pincode.value == "") { msg += "Pincode \n";}


	if (msg != "") { alert("Please fill in following fields-\n\n"+msg);return false; }
	
	

}

//--------------------------------------------------------------------------
//Function to postion div of search by keywords of header page
//-------------------------------------------------------------------------
function layer11divpos()
{
// variables to get screen height and width of window 

var winWidth=screen.width;
var winHeight=screen.height;

// Window width minus resolution of the screen the design is designed for
// Divide by 2 to get outer space between screen border and the main table
// Add width from outer table border to start of element. 
 
 
var left = (winWidth-1024)/2+50;
var top = 127;


document.getElementById("layer11").style.left=left+'px';
document.getElementById("layer11").style.top=top+'px';
document.getElementById("layer11").style["display"]="block" ;
document.getElementById("layer11").style["visibility"]="visible" ;
}

//----------------------------------Function to activate transparent menu------------------------
function init() {

			if (TransMenu.isSupported()) {
				TransMenu.initialize();

//				menu1.onactivate = function() { document.getElementById("aboutus1").className = "hover"; };
//				menu1.ondeactivate = function() { document.getElementById("aboutus1").className = ""; };

				menu1.onactivate = function() { document.getElementById('about1').src = './images/02_about_ro.jpg';};
				menu1.ondeactivate = function() { document.getElementById('about1').src = './images/02_about.jpg';};

				menu2.onactivate = function() { document.getElementById('services1').src = './images/03_services_ro.jpg';};
				menu2.ondeactivate = function() { document.getElementById('services1').src = './images/03_services.jpg';};


/*

				menu2.onactivate = function() { document.getElementById('services').src = './images/about_ro.gif';};
				menu2.ondeactivate = function() { document.getElementById('services').src = './images/about.gif';};

				menu4.onactivate = function() { document.getElementById('training').src = './images/conferences1_ro.gif';};
				menu4.ondeactivate = function() { document.getElementById('training').src = './images/conferences1.gif';};

				menu5.onactivate = function() { document.getElementById('weddings1').src = './images/weddings_ro.gif';};
				menu5.ondeactivate = function() { document.getElementById('weddings1').src = './images/weddings.gif';};

				menu6.onactivate = function() { document.getElementById('cruising1').src = './images/cruising_ro.gif';};
				menu6.ondeactivate = function() { document.getElementById('cruising1').src = './images/cruising.gif';};

				menu7.onactivate = function() { document.getElementById('events1').src = './images/events_ro.gif';};
				menu7.ondeactivate = function() { document.getElementById('events1').src = './images/events.gif';};
*/

		}
}


function display_menu()
{
document.write('<table width="899" border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td width="30" valign="top"><img src="images/trans.gif" width="30" height="47" hspace="0" vspace="0" border="0" /></td>');
document.write('<td width="75" valign="top"><img src="images/menu_lf_01.jpg" width="75" height="47" hspace="0" vspace="0" border="0" /></td>');
document.write('<td width="70" valign="top"><a href="index.htm" onmouseover="document.getElementById(\'home1\').src=\'images/01_home_ro.jpg\'" onmouseout="document.getElementById(\'home1\').src=\'images/01_home.jpg\'"><img src="images/01_home.jpg" id="home1" alt="HOME" name="Image6" width="70" height="47" hspace="0" vspace="0" border="0" id="Image6" /></a></td>');
document.write('<td width="95" valign="top"><a href="#" id="about"><img src="images/02_about.jpg" id="about1" alt="ABOUT US" name="Image7" width="95" height="47" hspace="0" vspace="0" border="0" id="Image7" /></a></td>');
document.write('<td width="95" valign="top"><a href="services.htm" id="services"><img src="images/03_services.jpg" id="services1" alt="SERVICES" name="Image8" width="95" height="47" hspace="0" vspace="0" border="0" id="Image8" /></a></td>');
document.write('<td width="129" valign="top"><a href="enquiry-form.htm" id="enquiry" onmouseover="document.getElementById(\'enquiry1\').src=\'images/04_enquiry_ro.jpg\'" onmouseout="document.getElementById(\'enquiry1\').src=\'images/04_enquiry.jpg\'"><img src="images/04_enquiry.jpg" id="enquiry1" alt="ENQUIRY FORM" name="Image9" width="129" height="47" hspace="0" vspace="0" border="0" id="Image9" /></a></td>');
document.write('<td width="98" valign="top"><a href="clientele.htm" onmouseover="document.getElementById(\'clientele1\').src=\'images/05_clientele_ro.jpg\'" onmouseout="document.getElementById(\'clientele1\').src=\'images/05_clientele.jpg\'"><img src="images/05_clientele.jpg" id="clientele1" alt="CLIENTELE" name="Image10" width="98" height="47" hspace="0" vspace="0" border="0" id="Image10" /></a></td>');
document.write('<td width="112" valign="top"><a href="contact.htm" onmouseover="document.getElementById(\'contact1\').src=\'images/07_contact_ro.jpg\'" onmouseout="document.getElementById(\'contact1\').src=\'images/07_contact.jpg\'"><img src="images/07_contact.jpg" id="contact1"  alt="CONTACT US" name="Image12" width="112" height="47" hspace="0" vspace="0" border="0" id="Image12" /></a></td>');
document.write('<td width="91" valign="top"><a href="sitemap.htm" onmouseover="document.getElementById(\'sitemap1\').src=\'images/08_sitemap_ro.jpg\'" onmouseout="document.getElementById(\'sitemap1\').src=\'images/08_sitemap.jpg\'"><img src="images/08_sitemap.jpg" id="sitemap1" alt="SITE MAP" name="Image13" width="91" height="47" hspace="0" vspace="0" border="0" id="Image13" /></a></td>');
document.write('<td width="74" valign="top"><img src="images/menu_ri_01.jpg" width="74" height="47" hspace="0" vspace="0" border="0" /></td>');
document.write('<td width="30" valign="top"><img src="images/trans.gif" width="30" height="47" hspace="0" vspace="0" border="0" /></td>');

document.write('</tr>');
document.write('</table>');
}




function addEvent(obj, evType, fn){ 
 if (obj.addEventListener){ 
   obj.addEventListener(evType, fn, false); 
   return true; 
 } else if (obj.attachEvent){ 
   var r = obj.attachEvent("on"+evType, fn); 
   return r; 
 } else { 
   return false; 
 } 
}

addEvent(window, 'load', init);

