mainmenu.init({
	mainmenuid: "mainmenu",
	orientation: 'h',
	classname: 'mainmenu',
	contentsource: "markup"
})

$(document).ready(function()
{
	slide(".ul_menu", 10, 0, 150, .8);
	
	$(".fimg").colorbox({slideshow:true});
	$(".ffade").colorbox({transition:"fade"});
	$(".fiframe").colorbox({width:"80%", height:"80%", iframe:true});
	
});

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function slide(navigation_id, pad_out, pad_in, time, multiplier)
{
	var list_elements = navigation_id + " li";
	var link_elements = list_elements + " a";
	var timer = 0;
	$(list_elements).each(function(i)
	{
		$(this).css("margin-left","-30px");
		timer = (timer*multiplier + time);
		$(this).animate({ marginLeft: "0" }, timer);
		$(this).animate({ marginLeft: "0px" }, timer);
		$(this).animate({ marginLeft: "0" }, timer);
	});
	$(link_elements).each(function(i)
	{
		$(this).hover(
		function()
		{
			$(this).animate({ paddingLeft: pad_out }, 150);
		},		
		function()
		{
			$(this).animate({ paddingLeft: pad_in }, 150);
		});
	});
}

function chk()
{
if(document.frm16.name.value == "Name")
{
	alert('Please enter Name');
	document.frm16.name.focus();
	return false;
}
if(document.frm16.email_id.value == "Email")
{
	alert('Please enter Email Id');
	document.frm16.email_id.focus();
	return false;
}

if(document.frm16.comment.value == "Comments")

{

	alert('Please enter Comment');

	document.frm16.comment.focus();

	return false;

}

if(document.frm16.email_id.value != "")

{

	var emailID = document.frm16.email_id;

	

	if(echeck(emailID.value) == false)

	{

		emailID.value="";

		document.frm16.email_id.focus();

		return false;

	}

}

if(document.frm16.x_code.value == "Code")

{

	alert('Please enter Verification Code');

	document.frm16.x_code.focus();

	return false;

}

return true;

}



		function echeck(str)

		{

			var at="@"

			var dot="."

			var lat=str.indexOf(at)

			var lstr=str.length

			var ldot=str.indexOf(dot)

			

			if (str.indexOf(at)==-1)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.indexOf(at,(lat+1))!=-1)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.indexOf(dot,(lat+2))==-1)

			{

				alert("Invalid E-mail ID")

				return false

			}

			if (str.indexOf(" ")!=-1)

			{

				alert("Invalid E-mail ID")

				return false

			}

			return true					

		}
