<!-- javascript code for free quotation -->

		$(document).ready(function(){

		   $("#languages").hide();

		   $("#languages_mc").hide();

		   $("#sourcelang_mseo").hide();
		   
		   $("#sourcelang_ppc").hide();

		   $("#add2").hide();

			$("#add2").hide();

			$("#add3").hide();

			$("#add4").hide();

			$("#add5").hide();

		   



			$("#translation").click(function ()

			{$("#languages").toggle();

			});

			

			$("#mc").click(function ()

			{$("#languages_mc").toggle();

			});

			

			$("#mseo").click(function ()

			{$("#sourcelang_mseo").toggle();

			});
			
			$("#ppc").click(function ()

			{$("#sourcelang_ppc").toggle();

			});

			

		 });







function attach1(id)

{



	if(id == 'sampletxt_1')

			document.getElementById('add2').style.display = 'block';

	else

		document.getElementById('add2').style.display = 'none';



}

function attach2(id)

{



	if(id == 'sampletxt_2')

			document.getElementById('add3').style.display = 'block';

	else

		document.getElementById('add3').style.display = 'none';



}

function attach3(id)

{



	if(id == 'sampletxt_3')

			document.getElementById('add4').style.display = 'block';

	else

		document.getElementById('add4').style.display = 'none';



}

function attach4(id)

{



	if(id == 'sampletxt_4')

			document.getElementById('add5').style.display = 'block';

	else

		document.getElementById('add5').style.display = 'none';



}





/****drop down menu ***/

	var version = '20090303';

	var divpre = 'menu-body';



	var divclass = 'menu-item-body';



	var isMouseOut = true;



	var actMenuId = null;



	var nDelay = 1; //ms



    function OnMenuMouseOut()



    {



        isMouseOut = true;



        setTimeout( 'MenuHide()', nDelay );



    };



    function OnMenuMouseOver( menuHandle )



    {



        isMouseOut = false;



        



        if ( menuHandle !=null)



        {



            MenuShow ( menuHandle ); 



        }



        



    };



    function MenuHide ()



    {



        var menubadydiv = document.getElementById( divpre );







        if ( isMouseOut )



            menubadydiv.style.visibility = 'hidden';



        else



            menubadydiv.style.visibility = 'visible';



	    



	    if ( actMenuId != null )



	    {



	        //alert ( actMenuId );



	        //MenuDivShowHide( actMenuId );



	    }



    };



    



    function MenuDivShowHide( menuid )



    {



        MenuDivHideAll();



        



	    var menudivid = divpre + '-' +  menuid;



        var menudiv = document.getElementById(menudivid);







        if ( menudiv == null ) return false ;



        



        //menudiv.style.visibility = 'collapse';



        if ( menudiv.style.display == 'none' )



        {



            menudiv.style.display = '';



            actMenuId = menuid ;



        }



        else



        {



            menudiv.style.display = 'none';



            actMenuId = null ;



        }



        







    };







    function MenuDivHideAll()



    {



        var menudivs = document.getElementsByTagName('div');







        for ( var i = 0 ; i < menudivs.length ; i++)



        {



            if ( menudivs[i].className == divclass )



            {



                menudivs[i].style.display = 'none';



                //menudivs[i].style.visibility = 'hidden';



            }



        }







    };



    

	function MenuShow(  menuHandle)



	{



	    if ( menuHandle == null || menuHandle.alt == null || menuHandle.alt == '')



	        return false;



	    var menuid = menuHandle.alt;



	    



	    var menubadydiv = document.getElementById (divpre);



	    if ( menubadydiv == null )



	        return false ;



	    menubadydiv.style.visibility = 'visible';





        if ( menuHandle != null )

        {



        	if ( document.all != null )	



        	{



	        var _rect= menuHandle.getBoundingClientRect();



	        menubadydiv.style.top = (_rect.bottom - 12 + document.documentElement.scrollTop ) + 'px' ;



	        menubadydiv.style.left = _rect.left + 'px' ;



		}



		else



		{



	        menubadydiv.style.top = ( menuHandle.offsetTop + menuHandle.offsetHeight - 12  ) + 'px' ;



	        menubadydiv.style.left = menuHandle.offsetLeft + 'px' ;

	



		}



	    }



	    MenuDivShowHide( menuid )



	};



	// click to drop list

	function listdropdown( inputid , listid )

	{



		



		var listElement = document.getElementById(listid);



		var inputElement = document.getElementById( inputid );

		if ( listElement != null && inputElement != null )

		{



	

			if ( document.all != null )	



			{				



				var _rect= inputElement.getBoundingClientRect();



					



				listElement.style.top = (_rect.bottom + document.documentElement.scrollTop) + 'px' ;



				listElement.style.left = _rect.left + 'px' ;



				listElement.style.height = '100px';



				listElement.style.display = '';



			}



			else



			{



				var top = inputElement.offsetTop; 



				var parent = inputElement.parentNode; 



				



				listElement.style.top = (top + inputElement.offsetHeight) + 'px' ;



				listElement.style.left = inputElement.offsetLeft + 'px' ;



				listElement.style.height = '100px';



				listElement.style.display = '';



				listElement.style.position = 'static'; 



			}	



		}



	};



	



	function listclose( inputid , listid )



	{



		var nDelay = 500;



		setTimeout( 'listclosedo("'+ inputid +'","'+ listid  + '")', nDelay );



	}



	



	function listclosedo( inputid , listid )



	{





		var listElement = document.getElementById(listid);



		var inputElement = document.getElementById( inputid );



		



		if ( listElement != null && inputElement != null )



		{



			inputElement.value = '';



			for(var i=0;i<listElement.options.length;i++)



			{



				if(listElement.options[i].selected)



				{



					inputElement.value += listElement.options[i].value + "," ;



				}



			}



			



			var stri = inputElement.value;



			



			if ( stri.substr( stri.length - 1 , 1) == ',') 



				inputElement.value = stri.substr( 0 , stri.length - 1);



			



			listElement.style.display = 'none';



		}



	};



	



	function listinit( inputid , listid )



	{



		var listElement = document.getElementById(listid);



		var inputElement = document.getElementById( inputid );



		



		for(var i=0;i<listElement.options.length;i++)



		{



			if(listElement.options[i].selected)



			{



				//inputElement.value += listElement.options[i].value + "," ;



			}



		}



		



	}



	



	function cleanTextbox ( objTextbox)



	{



		if ( objTextbox != null && objTextbox.value == "Other" )



		{



			objTextbox.value = "";



		}



		//alert ( objTextbox.value );



	}





	  function servicesChange( elem )



	  {



			if ( elem == null ) return false;



			var servise1 = 'Software Localization,Game Localization,Technical Documentation,Website Translation,Medical Device Translation,Online Gaming Localization,Voice Recordings';



			var divid = 'divLanguage';



			var IsDisplay = false;  



			var listElement = document.getElementsByName( elem.name );



			for(var i=0;i<listElement.length;i++)



			{



				if(listElement[i].checked )



				{



					if ( servise1.indexOf ( listElement[i].value ) >= 0 )



					{



						



						IsDisplay = true;



					}



					



				}



			}		  



			if ( IsDisplay )



			{



				document.getElementById(divid).style.display = "";



				//alert ( elem.checked + "" + elem.value  );



			}



			else



			{



				document.getElementById(divid).style.display = "none";



			}

			

	  }


