﻿//DREAMWEAVER GENERATED FUNCTIONS
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_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_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];}
}

//Pink Button roll-over images for different User controls
function mouseOverBlue()
{
    document.getElementById("btnMiddle").style.backgroundColor="#576fa8";
    document.getElementById("rightCurve").src="../Images/Curves/SearchTab_CurveBlue.gif";
    document.getElementById("leftCurve").src="../Images/Curves/SearchTab_CurveBlue.gif";
    
}
function mouseOutPink()
{
    document.getElementById("btnMiddle").style.backgroundColor="#B74580";
    document.getElementById("rightCurve").src="../Images/Curves/SearchTab_Curve.gif";
    document.getElementById("leftCurve").src="../Images/Curves/SearchTab_Curve.gif";   
}
function mouseOverBlueGen(id)
{
    document.getElementById(id).style.backgroundColor="#576fa8";   
    var curveLeft = id + 'Left';
    var curveRight = id + 'Right';
    
    if(document.getElementById(curveLeft))
    {
      document.getElementById(id + 'Left').className="clsPinkBtnRollOver";
    }
    if(document.getElementById(curveRight))
    {
      document.getElementById(id + 'Right').className="clsPinkBtnRollOver";
    }
}
function mouseOutPinkGen(id)
{
    document.getElementById(id).style.backgroundColor="#B74580";      
    
    if(document.getElementById(id + 'Left'))
    {
        document.getElementById(id + 'Left').className="clsNewSearchLeftCuvre";
    }
    
    if(document.getElementById(id + 'Right'))
    {
        document.getElementById(id + 'Right').className="clsNewSearchRightCurve";
    }
}

function mouseOverBlueSubmit(id)
{
    document.getElementById(id).style.backgroundColor="#576fa8";   
    document.getElementById(id + 'RightCurve').src="Images/Curves/SubmitTab_CurveRollOver.gif";
}
function mouseOutPinkSubmit(id)
{
    document.getElementById(id).style.backgroundColor="#B74580";      
    document.getElementById(id + 'RightCurve').src="Images/Curves/SubmitTab_Curve.gif";
}
function mouseOverSubmit(imgId)
{
    var ImagePath = document.getElementById(imgId).src; 
    document.getElementById(imgId).src= ImagePath.replace("submit-btn.gif","submit-btnRlover.gif");
}
function mouseOutSubmit(imgId)
{
   var ImagePath = document.getElementById(imgId).src; 
   document.getElementById(imgId).src= ImagePath.replace("submit-btnRlover.gif","submit-btn.gif");
}

//FUNCTION FOR NEWSLETTER SIGN UP
function submitNewsletter()
{

	if((document.getElementById("txtNewsLetterEmail").value=="Enter your email address")||(document.getElementById("txtNewsLetterEmail").value==""))
	{
		alert("Please enter your email address.");
	}
	else
	{
		var email = document.getElementById("txtNewsLetterEmail").value
		if(isEmailAddr(email) == true)
		{
			//get the URL i.e. http://www.gapguru.com/ or http://legolas/GGSite
            if (window.location.href.toLowerCase().indexOf("gapguru") != -1)
            {
	            var subStr1 = window.location.href.substring(0, window.location.href.toLowerCase().indexOf("gapguru"));
	            //alert("subStr1:" + subStr1); //subStr1:http://legolas/
            	
	            var subStr2 = window.location.href.substring(window.location.href.toLowerCase().indexOf("gapguru"), window.location.href.length);
	            //alert("subStr2: " + subStr2);   //subStr2: GGSite/GapProjects/Medical/MedicalHome.aspx
            			
    	        if (subStr2.indexOf("/") != -1)
	            {
	                var subStr3 = subStr2.substring(0, subStr2.indexOf("/"));
	                //alert("subStr3: " + subStr3);   //subStr3: GGSite
	            }
            	
	            var finalURL = subStr1 + subStr3;
	           
	            //alert("finalURL: " + finalURL);   //finalURL: http://legolas/GGSite
	        }
	        
			email = document.getElementById("txtNewsLetterEmail").value;		
			window.location.href = finalURL + "/" + "ReferFriend.aspx?newuseremail=" + email;
		}
		else
		{
			alert("Please enter a valid email.");
		}
	}
}

function validEmail()
{
              
       
          if((document.getElementById("UCMyGapLogin1_txtUserName").value=="UserName")||(document.getElementById("UCMyGapLogin1_txtUserName").value=="")||(document.getElementById("UCMyGapLogin1_txtPassword").value==""))
          {
                  document.getElementById('UCMyGapLogin1_lblErrorMsg2').style.visibility="hidden";
                  document.getElementById('UCMyGapLogin1_lblErrorMsg2').style.position="absolute";
                  document.getElementById('UCMyGapLogin1_lblErrorMsg1').style.visibility="visible";
                  document.getElementById('UCMyGapLogin1_lblErrorMsg1').style.color="red";
                  document.getElementById('UCMyGapLogin1_lblErrorMsg1').innerHTML="Please enter your EmailId and Password.";
          }
          else
          {
                   var email = document.getElementById("UCMyGapLogin1_txtUserName").value
                   if(isEmailAddr(email) == true)
                   {
                      email = document.getElementById("UCMyGapLogin1_txtUserName").value
                      document.getElementById("UCMyGapLogin1_btnLogin").click();        
                   }
                   else
                   {
                    document.getElementById('UCMyGapLogin1_lblErrorMsg1').style.visibility="hidden";
                    document.getElementById('UCMyGapLogin1_lblErrorMsg1').style.position="absolute";
                    document.getElementById('UCMyGapLogin1_lblErrorMsg2').style.visibility="visible";
                    document.getElementById('UCMyGapLogin1_lblErrorMsg2').style.color="red"; 
                    document.getElementById('UCMyGapLogin1_lblErrorMsg2').innerHTML= "Please enter a valid email."
                   }
          }
}



//FUNCTION FOR VALIDATING EMAIL
function isEmailAddr(email)
{
  var result = false
  var theStr = new String(email)
  var index = theStr.indexOf("@");
  if (index > 0)
  {
    var pindex = theStr.indexOf(".",index);
    if ((pindex > index+1) && (theStr.length > pindex+1))
	result = true;
  }
  return result;
}
//FUNCTION FOR CLEARING FIELD VALUE
function clearVal(obj)
{
	if(obj.value == "Enter email address")
	{
		obj.value=""
	}
	else if(obj.value == "Enter keyword")
	{
		obj.value=""
	}		
	else if(obj.value == "dd mmm yyyy")
	{
		obj.value=""
	}
	else if(obj.value == "Enter your email address")
	{
		obj.value=""
	}		
}
//FUNCTION FOR FILLING FIELD VALUE
function fillVal(obj)
{
	if(obj.value=="")	
	{
		obj.value="Enter email address"
		document.getElementById("txtDOB").obj
	}			
}
//FUNCTION FOR FILLING DOB VALUE
function fillValDOB(obj)
{
	if(obj.value=="")	
	{
		obj.value="dd mmm yyyy"
		document.getElementById("txtDOB").obj
	}			
}

function fillValDOBMG(obj)
{
	if(obj.value=="")	
	{
		obj.value="dd mmm yyyy"
		document.getElementById("UCContactProfile1_txtDOB").obj
	}			
}
//FUNCTION FOR FILLING FIELD VALUE FOR SEARCH KEYWORDS
function fillValKeywords(obj)
{
	if(obj.value=="")	
	{
		obj.value="Enter keyword"
		document.getElementById("txtKeyword").obj
	}			
}
//FUNCTION FOR FILLING EMAIL ADDRESS
function fillValEmail(obj)
{
	if(obj.value=="")	
	{
		obj.value="Enter your email address"
		document.getElementById("txtNewsLetterEmail").obj
	}			
}

//FUNCTION FOR TAB CONTROLS

function highlightTab(obj)
{
	if(selectedtabid != obj){
	document.getElementById(obj).className="tabActiveRoll";}
}

function resetTab(obj)
{
	if(selectedtabid != obj){
	document.getElementById(obj).className="tabActive";}
}

function changeTab(obj)
{
	resetTabs()
	document.getElementById(obj + 'ImgLeft').src = "Images/TabGreyLC.gif";
	document.getElementById(obj + 'ImgRight').src = "Images/TabGreyRC.gif";
	document.getElementById(obj).className="tabSelected";
	document.getElementById(obj+ 'Link').className="tabLinkSelected";
	//document.getElementById(obj + 'Content').className="tabContentSelected";
	document.getElementById('divShow').innerHTML = document.getElementById(obj + 'Content').innerHTML;
	selectedtabid = obj;
	
}

function resetTabs()
{
	var objs = document.getElementsByTagName("td");
	var ObjId;
	for (i = 0; i < objs.length; i++)
	{
		if(objs[i].id.indexOf("tab") != -1)
		{
			document.getElementById(objs[i].id + 'ImgLeft').src = "Images/TabOrangeLC.gif";
			document.getElementById(objs[i].id + 'ImgRight').src = "Images/TabOrangeRC.gif";
			document.getElementById(objs[i].id).className="tabActive";
			document.getElementById(objs[i].id + 'Link').className="tabActiveLink";
//			document.getElementById(objs[i].id + 'Content').className="tabContentActive";
		}
	}
}





function openWinMailThisPage(windowPath, width, height)
{	
	    width = 407;
	    height = 384;
	    if (window.location.href.toLowerCase().indexOf("gapguru") != -1)
            {
	            var subStr1 = window.location.href.substring(0, window.location.href.toLowerCase().indexOf("gapguru"));
	            //alert("subStr1:" + subStr1); //subStr1:http://legolas/
            	
	            var subStr2 = window.location.href.substring(window.location.href.toLowerCase().indexOf("gapguru"), window.location.href.length);
	            //alert("subStr2: " + subStr2);   //subStr2: GGSite/GapProjects/Medical/MedicalHome.aspx
            			
    	        if (subStr2.indexOf("/") != -1)
	            {
	                var subStr3 = subStr2.substring(0, subStr2.indexOf("/"));
	                //alert("subStr3: " + subStr3);   //subStr3: GGSite
	            }
            	
	            var finalURL = subStr1 + subStr3
	            //alert("finalURL: " + finalURL);   //finalURL: http://legolas/GGSite
	        }
	        var path = window.location;
			email = document.getElementById("txtNewsLetterEmail").value;		
			finalURL = finalURL + "/" + "EmailThisPage.aspx"+ '?Path=' + path;


			window.open(finalURL,"popUpWindow",config='width='+width+',height='+height+'border=0,scrollbars=no,minimize=no,maximize=no,resizeable=no');
}


// Function for setting focus on any field specially the first field in form page
function setFocus(id)
{
	try
	{
		document.getElementById(id).focus();
	}
	catch(error){}
}

// Function for setting focus: for page Refer a Friend 
function setFocusReferFriend(id1, id2)
{
	try
	{
		if(document.getElementById(id1))
			document.getElementById(id1).focus();
		else
			document.getElementById(id2).focus();
	}
	catch(error){}
}

// Function for keeping page down if not correct inputs by user
function showValidationSummary(id)
{
	try
	{
		if(document.getElementById('ValidationSummary1').innerText != "" )
			document.getElementById(id).focus();	
	}
	catch(error){}
}

// Script for Pop Up Window
function openWinRulesAndRegulations(windowPath, width, height)
{	//width = 800; height = 900;
	var path = window.location;
	window.open(windowPath+ '?Path=' + path,"popUpWindow",config='width='+width+',height='+height+'border=0,scrollbars=yes,minimize=yes,maximize=yes,resizeable=yes');
}

// Function for Search Box
function searchItems()
{	
	var strKeyword = trim(document.getElementById("txtKeyword").value);

	if (ChkString(strKeyword) == 0)
		alert('Single Quote(' + " ' " + ') is not allowed in Keyword field.');
	else
	{		
		var itemType
		if(document.getElementById("rdoProjects").checked == true)
			itemType = "Projects"
		else
			itemType = "Journeys"
		
		var paidOption
		if(document.getElementById("rdoPaid").checked == true)
			paidOption = "1"
		else if(document.getElementById("rdoUnPaid").checked == true)
			paidOption = "2"
		else
			paidOption = "3"
		
		var keyword = ""
		if(trim(document.getElementById("txtKeyword").value) != "Enter keyword")
			keyword = trim(document.getElementById("txtKeyword").value);
			
		window.location.href="Search.aspx?Item=" + itemType + "&paid=" + paidOption + "&kw=" + keyword
	}
}

//This function will display the Calender div after clicking on Cal image.
function showCalender(objID)
{
	document.getElementById(objID).style.visibility = "visible";	
}

//This function will trim the string received
function trim(sString)
{
	//Left Trim
	while (sString.substring(0,1) == ' ')
		sString = sString.substring(1, sString.length);

	//Right Trim
	while (sString.substring(sString.length-1, sString.length) == ' ')
		sString = sString.substring(0,sString.length-1);

	return sString;
}

//This function will check for Special symbols in the string received.
function ChkString(sString)
{
	//Check for Single Quote
	if (sString.indexOf("'") != -1)		return 0;	//found
	else								return 1;	//not found
}

// Function for adding single Item to Basket
function AddProgrammeToItinerary(Quantity)
{
	//alert("AddProgrammeToItinerary");
	ItemId = document.getElementById("hdnItemID").value;
	alert(ItemId);
	var objs = document.getElementsByTagName("input");
	var ObjId;
	for (i = 0; i < objs.length; i++)
	{
		try
		{
			if(objs[i].type == "hidden")
			{
				if(objs[i].id.indexOf("hdnCacheKey") != -1)
				{
					ObjId = objs[i].id;
					break;
				}
			}
		}
		catch(error){}
	}//	alert(ItemId);
	var strlink = "ItemsUpdateItineraryInfo.aspx?ItemId=" + ItemId + "&cachekey=" + document.getElementById(ObjId).value + "&Quantity=" + Quantity; 
		
	window.open(strlink,"IFrame");
}

//This Function will be used for redirecting user to some page. It'll be used specially on Click of Divs
function RedirectTo(URL)
{
    location.href = URL;
}

//window.onerror = function() { return true; }
function RedirectToProject()
{
		location.href = document.getElementById("ddSelectProject").value;
}

function AddtoMyGap(ItemId,Dur,ClassID)
{
    document.getElementById("ifAddToMyGap").src="../../AddtoMyGap.aspx?ItemId=" + ItemId + "&Dur=" + Dur + "&ClassID=" + ClassID;
}

function showUserNameFld(defaultText)
{     
      if((document.getElementById("UCMyGapLogin1_txtUserName").value == "") || (document.getElementById("UCMyGapLogin1_txtUserName").value == " "))
      {
        document.getElementById("UCMyGapLogin1_txtUserName").value = defaultText;
      }
}

function hideUserNameFld(defaultText)
{
     if(document.getElementById("UCMyGapLogin1_txtUserName").value == defaultText)
      {
        document.getElementById("UCMyGapLogin1_txtUserName").value = "";
      }
}

function showPasswordFld(defaultText)
{
	if(document.getElementById("UCMyGapLogin1_txtPassword").value == "")
	{
		document.getElementById("txtLoginPasswordText").className = "passwordFieldHidden";
		document.getElementById("txtLoginPasswordText").value = defaultText; 
		document.getElementById("UCMyGapLogin1_txtPassword").className = "passwordField";		
		document.getElementById("UCMyGapLogin1_txtPassword").focus();
	}
}
function hidePasswordFld(defaultText)
{
	if(document.getElementById("UCMyGapLogin1_txtPassword").value == "")
	{
		document.getElementById("txtLoginPasswordText").className = "passwordField";
		document.getElementById("txtLoginPasswordText").value = defaultText;
		document.getElementById("UCMyGapLogin1_txtPassword").className = "passwordFieldHidden";
	}
}

function doSignOut_Click()
{ 
    document.getElementById("btnSignOut").click();
}

function btnSelection_Click()
{ 
    document.getElementById("btnSelection").click();
}
function btnSubmit_Click()
{ 
    document.getElementById("btnProceedWithoutLogin").click();
}

//Updates the Duration in Add To MyGap in Projects/Travels in case of Manual Update at one location.
function UpdateOptions(objId)
{
   
	var id="";
	if(objId.indexOf("2") == -1)
	{
		id = objId.replace("1","2");
	}
	else
	{
		id = objId.replace("2","1");
	}
	
	try
	{
	    document.getElementById(id).value = document.getElementById(objId).value;
	}
	catch(error){}
}

function IsAnotherApplicant(id)
{
    //alert(id.id);
        
    if (id.checked == true )
    {
        document.getElementById("UCContactProfile1_txtOtherApp").disabled = false;
    }
    else
    {
        document.getElementById("UCContactProfile1_txtOtherApp").disabled = true;
           
           }
    if (id.checked == true )
    {
        document.getElementById("UCContactProfile1_txtOtherApp").value =""
           }
           else
           { document.getElementById("UCContactProfile1_txtOtherApp").value ="Name of another applicant"}
  
}
/********************************Show Hide for Home page************************************************/
function showHide(selected)
{   
    i = Math.round(3*Math.random());
    switch(selected)
    {
       case 1 :
              
			
			if(i==1)
			{
			        document.getElementById("spnTeach").style.display="block";
                    document.getElementById("imgTeach").style.display="block";
                                
                    document.getElementById("spnTeachInTanzania").style.display="none";
                    document.getElementById("imgTeachInTanzania").style.display="none";
                    document.getElementById("spnTeachInHimalya").style.display="none";
                    document.getElementById("imgHimalyanFootHill").style.display="none";
			}
            if(i==2)
			{
			        document.getElementById("spnTeachInTanzania").style.display="block";
                    document.getElementById("imgTeachInTanzania").style.display="block";
                    document.getElementById("spnTeach").style.display="none";
                    document.getElementById("imgTeach").style.display="none";
                    document.getElementById("spnTeachInHimalya").style.display="none";
                    document.getElementById("imgHimalyanFootHill").style.display="none";
			}
			if((i==3)||(i==0))
			{
			                     document.getElementById("spnTeachInHimalya").style.display="block";
                                document.getElementById("imgHimalyanFootHill").style.display="block";
                                document.getElementById("spnTeach").style.display="none";
                                document.getElementById("imgTeach").style.display="none";
                                document.getElementById("spnTeachInTanzania").style.display="none";
                                document.getElementById("imgTeachInTanzania").style.display="none";
			}
			document.getElementById("anchTeach").style.color="#FFFFFF";
			document.getElementById("anchSplOffer").style.color="#868686";
			document.getElementById("anchVolunteer").style.color="#868686";
			document.getElementById("anchIntern").style.color="#868686";
			document.getElementById("anchOneOfKind").style.color="#868686";
			 document.getElementById("anchTeach").style.backgroundColor="#CD4293"
                 document.getElementById("anchSplOffer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchVolunteer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchIntern").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchOneOfKind").style.backgroundColor="#FFFFFF"
                document.getElementById("imgFootballCoach").style.display="none";
                document.getElementById("spnFootball").style.display="none";
                document.getElementById("imgRockMaster").style.display="none";
                document.getElementById("spnRockMaster").style.display="none";
                document.getElementById("imgJournalism").style.display="none";
                document.getElementById("spnJournalism").style.display="none";
                document.getElementById("imgHotelManagement").style.display="none";
                document.getElementById("spnHotelTrainee").style.display="none";
                document.getElementById("spnVolunteerInRomania").style.display="none";
                document.getElementById("imgSupportAustistic").style.display="none";
                document.getElementById("spnAustisticChildren").style.display="none";
                document.getElementById("imgRomania").style.display="none";
                 document.getElementById("spnIntern").style.display="none";
                 document.getElementById("imgIntern").style.display="none";
                 document.getElementById("spnOneOfKind").style.display="none";
                 document.getElementById("imgOneOfKind").style.display="none";
                 document.getElementById("spnVolunteer").style.display="none";
                 document.getElementById("imgVoulnteer").style.display="none";
                 document.getElementById("spnSplOffer").style.display="none";
                 document.getElementById("imgSplOffer").style.display="none";
            break;
        case 2 :
            
            if(i==1)
			{
			                    document.getElementById("spnVolunteer").style.display="block";
                                document.getElementById("imgVoulnteer").style.display="block";
                                document.getElementById("spnVolunteerInRomania").style.display="none";
                                document.getElementById("imgSupportAustistic").style.display="none";
                                document.getElementById("spnAustisticChildren").style.display="none";
                                document.getElementById("imgRomania").style.display="none";
			}
            if(i==2)
			{
			                    document.getElementById("spnVolunteer").style.display="none";
                                document.getElementById("imgVoulnteer").style.display="none";
                                document.getElementById("spnVolunteerInRomania").style.display="block";
                                document.getElementById("imgSupportAustistic").style.display="none";
                                document.getElementById("spnAustisticChildren").style.display="none";
                                document.getElementById("imgRomania").style.display="block";
			}
			if((i==3)||(i==0))
			{
			                    document.getElementById("spnVolunteer").style.display="none";
                                document.getElementById("imgVoulnteer").style.display="none";
                                document.getElementById("spnVolunteerInRomania").style.display="none";
                                document.getElementById("imgSupportAustistic").style.display="block";
                                document.getElementById("spnAustisticChildren").style.display="block";
                                document.getElementById("imgRomania").style.display="none";
			}
			document.getElementById("anchTeach").style.color="#868686";
			document.getElementById("anchSplOffer").style.color="#868686";
			document.getElementById("anchVolunteer").style.color="#FFFFFF";
			document.getElementById("anchIntern").style.color="#868686";
			document.getElementById("anchOneOfKind").style.color="#868686";
			
			
			    document.getElementById("anchTeach").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchSplOffer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchVolunteer").style.backgroundColor="#CD4293"
                 document.getElementById("anchIntern").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchOneOfKind").style.backgroundColor="#FFFFFF"
			
               document.getElementById("spnTeachInTanzania").style.display="none";
                document.getElementById("imgTeachInTanzania").style.display="none";
                document.getElementById("spnTeachInHimalya").style.display="none";
                document.getElementById("imgHimalyanFootHill").style.display="none";
                document.getElementById("imgFootballCoach").style.display="none";
                document.getElementById("spnFootball").style.display="none";
                document.getElementById("imgRockMaster").style.display="none";
                document.getElementById("spnRockMaster").style.display="none";
                document.getElementById("imgJournalism").style.display="none";
                document.getElementById("spnJournalism").style.display="none";
                document.getElementById("imgHotelManagement").style.display="none";
                document.getElementById("spnHotelTrainee").style.display="none";
                document.getElementById("spnTeach").style.display="none";
              document.getElementById("imgTeach").style.display="none";
             document.getElementById("spnIntern").style.display="none";
              document.getElementById("imgIntern").style.display="none";
              document.getElementById("spnOneOfKind").style.display="none";
              document.getElementById("imgOneOfKind").style.display="none";
              
              document.getElementById("spnSplOffer").style.display="none";
              document.getElementById("imgSplOffer").style.display="none";
            break;
          case 3 :
             if(i==1)
			{
			                    document.getElementById("spnIntern").style.display="block";
                                document.getElementById("imgIntern").style.display="block";
			                    
                                document.getElementById("imgJournalism").style.display="none";
                                document.getElementById("spnJournalism").style.display="none";
                                document.getElementById("imgHotelManagement").style.display="none";
                                document.getElementById("spnHotelTrainee").style.display="none";
                                
			}
            if(i==2)
			{
			                    document.getElementById("spnIntern").style.display="none";
			                    document.getElementById("imgIntern").style.display="none";			                    
                                document.getElementById("imgJournalism").style.display="block";
                                document.getElementById("spnJournalism").style.display="block";
                                document.getElementById("imgHotelManagement").style.display="none";
                                document.getElementById("spnHotelTrainee").style.display="none";
			}
		
			if((i==3)||(i==0))
			{
			                    document.getElementById("spnIntern").style.display="none";
                                document.getElementById("imgIntern").style.display="none";
			                    
                                document.getElementById("imgJournalism").style.display="none";
                                document.getElementById("spnJournalism").style.display="none";
                                document.getElementById("imgHotelManagement").style.display="block";
                                document.getElementById("spnHotelTrainee").style.display="block";
			}
			
			document.getElementById("anchTeach").style.color="#868686";
			document.getElementById("anchSplOffer").style.color="#868686";
			document.getElementById("anchVolunteer").style.color="#868686";
			document.getElementById("anchIntern").style.color="#FFFFFF";
			document.getElementById("anchOneOfKind").style.color="#868686";
              
                document.getElementById("anchTeach").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchSplOffer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchVolunteer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchIntern").style.backgroundColor="#CD4293"
                 document.getElementById("anchOneOfKind").style.backgroundColor="#FFFFFF"
              
              
                document.getElementById("spnTeachInTanzania").style.display="none";
                document.getElementById("imgTeachInTanzania").style.display="none";
                document.getElementById("spnTeachInHimalya").style.display="none";
                document.getElementById("imgHimalyanFootHill").style.display="none";
                document.getElementById("imgFootballCoach").style.display="none";
                document.getElementById("spnFootball").style.display="none";
                document.getElementById("imgRockMaster").style.display="none";
                document.getElementById("spnRockMaster").style.display="none";
                document.getElementById("spnVolunteerInRomania").style.display="none";
                document.getElementById("imgSupportAustistic").style.display="none";
                document.getElementById("spnAustisticChildren").style.display="none";
                document.getElementById("imgRomania").style.display="none";
                
                document.getElementById("spnTeach").style.display="none";
                document.getElementById("imgTeach").style.display="none";
             
             document.getElementById("spnOneOfKind").style.display="none";
             document.getElementById("imgOneOfKind").style.display="none";
             document.getElementById("spnVolunteer").style.display="none";
             document.getElementById("imgVoulnteer").style.display="none";
             document.getElementById("spnSplOffer").style.display="none";
             document.getElementById("imgSplOffer").style.display="none";
            break;
            case 4 :
                 if(i==1)
			{
			                    document.getElementById("spnOneOfKind").style.display="block";
                                document.getElementById("imgOneOfKind").style.display="block";
			                    
                                document.getElementById("imgFootballCoach").style.display="none";
                                document.getElementById("spnFootball").style.display="none";
                                document.getElementById("imgRockMaster").style.display="none";
                                document.getElementById("spnRockMaster").style.display="none";
                                
			}
            if(i==2)
			{
			                     document.getElementById("spnOneOfKind").style.display="none";
                                document.getElementById("imgOneOfKind").style.display="none";
			                    
                                document.getElementById("imgFootballCoach").style.display="none";
                                document.getElementById("spnFootball").style.display="none";
                                document.getElementById("imgRockMaster").style.display="block";
                                document.getElementById("spnRockMaster").style.display="block";
			}
			if((i==3)||(i==0))
			{
			                   document.getElementById("spnOneOfKind").style.display="none";
                                document.getElementById("imgOneOfKind").style.display="none";
			                    
                                document.getElementById("imgFootballCoach").style.display="block";
                                document.getElementById("spnFootball").style.display="block";
                                document.getElementById("imgRockMaster").style.display="none";
                                document.getElementById("spnRockMaster").style.display="none";
			}
			document.getElementById("anchTeach").style.color="#868686";
			document.getElementById("anchSplOffer").style.color="#868686";
			document.getElementById("anchVolunteer").style.color="#868686";
			document.getElementById("anchIntern").style.color="#868686";
			document.getElementById("anchOneOfKind").style.color="#FFFFFF";
			
			    document.getElementById("anchTeach").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchSplOffer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchVolunteer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchIntern").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchOneOfKind").style.backgroundColor="#CD4293"
			
            
                 document.getElementById("spnTeachInTanzania").style.display="none";
                document.getElementById("imgTeachInTanzania").style.display="none";
                document.getElementById("spnTeachInHimalya").style.display="none";
                document.getElementById("imgHimalyanFootHill").style.display="none";
                
                document.getElementById("imgJournalism").style.display="none";
                document.getElementById("spnJournalism").style.display="none";
                document.getElementById("imgHotelManagement").style.display="none";
                document.getElementById("spnHotelTrainee").style.display="none";
                document.getElementById("spnVolunteerInRomania").style.display="none";
                document.getElementById("imgSupportAustistic").style.display="none";
                document.getElementById("spnAustisticChildren").style.display="none";
                document.getElementById("imgRomania").style.display="none";
                
             document.getElementById("spnTeach").style.display="none";
              document.getElementById("imgTeach").style.display="none";
             document.getElementById("spnIntern").style.display="none";
              document.getElementById("imgIntern").style.display="none";
              
              document.getElementById("spnVolunteer").style.display="none";
               document.getElementById("imgVoulnteer").style.display="none";
              document.getElementById("spnSplOffer").style.display="none";
              document.getElementById("imgSplOffer").style.display="none";
            break;
            case 5 :
                    document.getElementById("anchTeach").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchSplOffer").style.backgroundColor="#CD4293"
                 document.getElementById("anchVolunteer").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchIntern").style.backgroundColor="#FFFFFF"
                 document.getElementById("anchOneOfKind").style.backgroundColor="#FFFFFF"
                document.getElementById("anchTeach").style.color="#868686";
			document.getElementById("anchSplOffer").style.color="#FFFFFF";
			document.getElementById("anchVolunteer").style.color="#868686";
			document.getElementById("anchIntern").style.color="#868686";
			document.getElementById("anchOneOfKind").style.color="#868686";
            
                document.getElementById("spnTeach").style.display="none";
                document.getElementById("imgTeach").style.display="none";
                document.getElementById("spnIntern").style.display="none";
                document.getElementById("imgIntern").style.display="none";
                document.getElementById("spnOneOfKind").style.display="none";
                document.getElementById("imgOneOfKind").style.display="none";
                document.getElementById("spnVolunteer").style.display="none";
                document.getElementById("imgVoulnteer").style.display="none";
                document.getElementById("spnTeachInTanzania").style.display="none";
                document.getElementById("imgTeachInTanzania").style.display="none";
                document.getElementById("spnTeachInHimalya").style.display="none";
                document.getElementById("imgHimalyanFootHill").style.display="none";
                document.getElementById("imgFootballCoach").style.display="none";
                document.getElementById("spnFootball").style.display="none";
                document.getElementById("imgRockMaster").style.display="none";
                document.getElementById("spnRockMaster").style.display="none";
                document.getElementById("imgJournalism").style.display="none";
                document.getElementById("spnJournalism").style.display="none";
                document.getElementById("imgHotelManagement").style.display="none";
                document.getElementById("spnHotelTrainee").style.display="none";
                document.getElementById("spnVolunteerInRomania").style.display="none";
                document.getElementById("imgSupportAustistic").style.display="none";
                document.getElementById("spnAustisticChildren").style.display="none";
                document.getElementById("imgRomania").style.display="none";
                                  
              document.getElementById("spnSplOffer").style.display="block";
              document.getElementById("imgSplOffer").style.display="block";
            break;
            

    }

}
function showInfoDiv()
{
    document.getElementById("divShowInfoBookmark").style.display="block";
   
}
function hideInfoDiv()
{
    document.getElementById("divShowInfoBookmark").style.display="none";
   
}
function showInfoDivtop()
{
    document.getElementById("divShowInfoBookmarktop").style.display="block";
   
}
function hideInfoDivtop()
{
    document.getElementById("divShowInfoBookmarktop").style.display="none";
   
}
function showHideCountry(selected)
{
    
    switch(selected)
    {
       case 1 :
     
        document.getElementById("divCountryAtGlance").style.display="block";
        document.getElementById("divThingToDo").style.display="none";
        document.getElementById("divCountryCulture").style.display="none";
        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="81px";
         
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink_Roll"
        document.getElementById("spnTileCountryAtGlance").className="tilePink_Roll"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
        
        document.getElementById("spnLftCrvCultureNCustoms").className="curvePink"
        document.getElementById("spnTileCultureNCustoms").className="tilePink"
        document.getElementById("spnRghtCrvCultureNCustoms").className="curvePink"
        if (document.getElementById("divGapYearIndia") != null) 
         {
           document.getElementById("divGapYearIndia").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="201px";
		   document.getElementById("spnLftCrvGapYearIndia").className="curvePink"
           document.getElementById("spnTileGapYearIndia").className="tilePink"
           document.getElementById("spnRghtCrvGapYearIndia").className="curvePink"
         }
         if (document.getElementById("divGapYearEcuador") != null) 
         {
           document.getElementById("divGapYearEcuador").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="81px";
		   document.getElementById("spnLftCrvGapYearEcuador").className="curvePink"
           document.getElementById("spnTileGapYearEcuador").className="tilePink"
           document.getElementById("spnRghtCrvGapYearEcuador").className="curvePink"
         }
        break;
       case 2:
    
        document.getElementById("divCountryAtGlance").style.display="none";
        document.getElementById("divThingToDo").style.display="block";
        document.getElementById("divCountryCulture").style.display="none";
        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="221px";
        
        
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink_Roll"
        document.getElementById("spnTileThingsToDo").className="tilePink_Roll"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvCultureNCustoms").className="curvePink"
        document.getElementById("spnTileCultureNCustoms").className="tilePink"
        document.getElementById("spnRghtCrvCultureNCustoms").className="curvePink"
         if (document.getElementById("divGapYearIndia") != null) 
         {
           document.getElementById("divGapYearIndia").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="341px";
		   document.getElementById("spnLftCrvGapYearIndia").className="curvePink"
           document.getElementById("spnTileGapYearIndia").className="tilePink"
           document.getElementById("spnRghtCrvGapYearIndia").className="curvePink"
         }
          if (document.getElementById("divGapYearEcuador") != null) 
         {
           document.getElementById("divGapYearEcuador").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="350px";
		   document.getElementById("spnLftCrvGapYearEcuador").className="curvePink"
           document.getElementById("spnTileGapYearEcuador").className="tilePink"
           document.getElementById("spnRghtCrvGapYearEcuador").className="curvePink"
         }

        break;
        case 3:
  
       document.getElementById("divCountryAtGlance").style.display="none";
        document.getElementById("divThingToDo").style.display="none";
        document.getElementById("divCountryCulture").style.display="block";
        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="381px";
        
        
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
        
        document.getElementById("spnLftCrvCultureNCustoms").className="curvePink_Roll"
        document.getElementById("spnTileCultureNCustoms").className="tilePink_Roll"
        document.getElementById("spnRghtCrvCultureNCustoms").className="curvePink_Roll"
         if (document.getElementById("divGapYearIndia") != null) 
         {
           document.getElementById("divGapYearIndia").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="501px";
		   document.getElementById("spnLftCrvGapYearIndia").className="curvePink"
           document.getElementById("spnTileGapYearIndia").className="tilePink"
           document.getElementById("spnRghtCrvGapYearIndia").className="curvePink"
         }
         if (document.getElementById("divGapYearEcuador") != null) 
         {
           document.getElementById("divGapYearEcuador").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="501px";
		   document.getElementById("spnLftCrvGapYearEcuador").className="curvePink"
           document.getElementById("spnTileGapYearEcuador").className="tilePink"
           document.getElementById("spnRghtCrvGapYearEcuador").className="curvePink"
         }
        break;
        
        case 4:
        
          
        document.getElementById("divGapYearIndia").style.display="block";
    
        document.getElementById("divCountryAtGlance").style.display="none";
        document.getElementById("divThingToDo").style.display="none";
        document.getElementById("divCountryCulture").style.display="none";
        
      
         document.getElementById("spnCountryDwnArrow").style.marginLeft="61px";
        
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
        
        document.getElementById("spnLftCrvCultureNCustoms").className="curvePink"
        document.getElementById("spnTileCultureNCustoms").className="tilePink"
        document.getElementById("spnRghtCrvCultureNCustoms").className="curvePink"
        
        
        document.getElementById("spnLftCrvGapYearIndia").className="curvePink_Roll"
        document.getElementById("spnTileGapYearIndia").className="tilePink_Roll"
        document.getElementById("spnRghtCrvGapYearIndia").className="curvePink_Roll"
         if (document.getElementById("divGapYearEcuador") != null) 
         {
           document.getElementById("divGapYearEcuador").style.display="none"
		   document.getElementById("spnCountryDwnArrow").style.marginLeft="220px";
		   document.getElementById("spnLftCrvGapYearEcuador").className="curvePink"
           document.getElementById("spnTileGapYearEcuador").className="tilePink"
           document.getElementById("spnRghtCrvGapYearEcuador").className="curvePink"
         }
        
        break;
        case 5:
        
          
        document.getElementById("divGapYearEcuador").style.display="block";
    
        document.getElementById("divCountryAtGlance").style.display="none";
        document.getElementById("divThingToDo").style.display="none";
        document.getElementById("divCountryCulture").style.display="none";
        
      
         document.getElementById("spnCountryDwnArrow").style.marginLeft="661px";
        
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
        
        document.getElementById("spnLftCrvCultureNCustoms").className="curvePink"
        document.getElementById("spnTileCultureNCustoms").className="tilePink"
        document.getElementById("spnRghtCrvCultureNCustoms").className="curvePink"
        
        
        document.getElementById("spnLftCrvGapYearIndia").className="curvePink"
        document.getElementById("spnTileGapYearIndia").className="tilePink"
        document.getElementById("spnRghtCrvGapYearIndia").className="curvePink"
        
             document.getElementById("spnLftCrvGapYearEcuador").className="curvePink_Roll"
        document.getElementById("spnTileGapYearEcuador").className="tilePink_Roll"
        document.getElementById("spnRghtCrvGapYearEcuador").className="curvePink_Roll"
        
        break;
        
        }
       
}
function showHideCity(selected)
{
    
    switch(selected)
    {
       case 1 :
        
        document.getElementById("divKnowYourCity").style.display="block";
        document.getElementById("divAroundCity").style.display="none";
        document.getElementById("divCultureNCustomsCity").style.display="none";
        
        document.getElementById("spnCityDwnArrow").style.marginLeft="51px";
         
        document.getElementById("spnLftCrvKnowYourCity").className="curvePink_Roll"
        document.getElementById("spnTileKnowYourCity").className="tilePink_Roll"
        document.getElementById("spnRghtCrvKnowYourCity").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvCityCulture").className="curvePink"
        document.getElementById("spnTileCityCulture").className="tilePink"
        document.getElementById("spnRghtCrvCityCulture").className="curvePink"
        
        document.getElementById("spnLftCrvAroundCity").className="curvePink"
        document.getElementById("spnTileAroundCity").className="tilePink"
        document.getElementById("spnRghtCrvAroundCity").className="curvePink"
        
         

        
        
        break;
       case 2:
       
       document.getElementById("divKnowYourCity").style.display="none";
        document.getElementById("divAroundCity").style.display="none";
        document.getElementById("divCultureNCustomsCity").style.display="block";
        
        document.getElementById("spnCityDwnArrow").style.marginLeft="221px";
         
        document.getElementById("spnLftCrvKnowYourCity").className="curvePink"
        document.getElementById("spnTileKnowYourCity").className="tilePink"
        document.getElementById("spnRghtCrvKnowYourCity").className="curvePink"
        
        document.getElementById("spnLftCrvCityCulture").className="curvePink_Roll"
        document.getElementById("spnTileCityCulture").className="tilePink_Roll"
        document.getElementById("spnRghtCrvCityCulture").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvAroundCity").className="curvePink"
        document.getElementById("spnTileAroundCity").className="tilePink"
        document.getElementById("spnRghtCrvAroundCity").className="curvePink"
        break;
        
        
        case 3:
       
       document.getElementById("divKnowYourCity").style.display="none";
        document.getElementById("divAroundCity").style.display="block";
        document.getElementById("divCultureNCustomsCity").style.display="none";
        
        document.getElementById("spnCityDwnArrow").style.marginLeft="361px";
         
        document.getElementById("spnLftCrvKnowYourCity").className="curvePink"
        document.getElementById("spnTileKnowYourCity").className="tilePink"
        document.getElementById("spnRghtCrvKnowYourCity").className="curvePink"
        
        document.getElementById("spnLftCrvCityCulture").className="curvePink"
        document.getElementById("spnTileCityCulture").className="tilePink"
        document.getElementById("spnRghtCrvCityCulture").className="curvePink"
        
        document.getElementById("spnLftCrvAroundCity").className="curvePink_Roll"
        document.getElementById("spnTileAroundCity").className="tilePink_Roll"
        document.getElementById("spnRghtCrvAroundCity").className="curvePink_Roll"
        break;
        
        

         

        
        
        }
       
}
function showTxtBox(objId1,replacedby,replaced)

{      
   
    var newid = objId1.replace(replaced,replacedby);
    document.getElementById(objId1).style.display="none";    
     document.getElementById(newid).style.display="block";
      document.getElementById(newid).focus();
}
function hideTxtBox(objId1,replacedby,replaced)

{      
   if (document.getElementById(objId1).value=="")
   {
        var newid = objId1.replace(replaced,replacedby);
        document.getElementById(objId1).style.display="none";    
        document.getElementById(newid).style.display="block";
     }
}
function showMultiTxtBox(objId1)
{
    
    if (document.getElementById(objId1).value=="Remark or Query?")
    {
        document.getElementById(objId1).value="";
    }
  
}
function hideMultiTxtBox(objId1)
{
   if(document.getElementById(objId1).value=="")
   {
        document.getElementById(objId1).value="Remark or Query?";
    }
  
}
function showHideProjects(selected)
{
    
switch(selected)
    {
       case 1 :
        document.getElementById("divProjectInfo").style.display="block";
        document.getElementById("divCostNOtherDetails").style.display="none";
        document.getElementById("divAddToMyGapCostNDetails").style.display="none";
        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="41px";
         
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink_Roll"
        document.getElementById("spnTileCountryAtGlance").className="tilePink_Roll"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
       
        break;
       case 2:
       document.getElementById("divProjectInfo").style.display="none";
        document.getElementById("divCostNOtherDetails").style.display="block";

        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="221px";
        
          document.getElementById("divAddToMyGapCostNDetails").style.display="block";
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        
        document.getElementById("spnLftCrvThingsToDo").className="curvePink_Roll"
        document.getElementById("spnTileThingsToDo").className="tilePink_Roll"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink_Roll"
        
       
        break;
}
}

function showHideJourneys(selected)
{
    
switch(selected)
    {
       case 1 :
        document.getElementById("divJourneySection").style.display="block";
        document.getElementById("divItineraryDetails").style.display="none";
         document.getElementById("divDestinationDetail").style.display="none";
        
        document.getElementById("spnJourneyDwnArrow").style.marginLeft="41px";
         
        document.getElementById("spnLftCrvJourneys").className="curvePink_Roll"
        document.getElementById("spnTileJourneys").className="tilePink_Roll"
        document.getElementById("spnRghtCrvJourneys").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvItinerary").className="curvePink"
        document.getElementById("spnTileItinerary").className="tilePink"
        document.getElementById("spnRghtCrvItinerary").className="curvePink"
        
        document.getElementById("spnLftCrvDestinations").className="curvePink"
        document.getElementById("spnTileDestinations").className="tilePink"
        document.getElementById("spnRghtCrvDestinations").className="curvePink"
       
        break;
       case 2:
       document.getElementById("divJourneySection").style.display="none";
        document.getElementById("divItineraryDetails").style.display="block";
         document.getElementById("divDestinationDetail").style.display="none";
        
        document.getElementById("spnJourneyDwnArrow").style.marginLeft="150px";
         
        document.getElementById("spnLftCrvJourneys").className="curvePink"
        document.getElementById("spnTileJourneys").className="tilePink"
        document.getElementById("spnRghtCrvJourneys").className="curvePink"
        
        document.getElementById("spnLftCrvItinerary").className="curvePink_Roll"
        document.getElementById("spnTileItinerary").className="tilePink_Roll"
        document.getElementById("spnRghtCrvItinerary").className="curvePink_Roll"
        
        document.getElementById("spnLftCrvDestinations").className="curvePink"
        document.getElementById("spnTileDestinations").className="tilePink"
        document.getElementById("spnRghtCrvDestinations").className="curvePink"
        
       
        break;
        
         case 3:
       document.getElementById("divJourneySection").style.display="none";
        document.getElementById("divItineraryDetails").style.display="none";
         document.getElementById("divDestinationDetail").style.display="block";
        
        document.getElementById("spnJourneyDwnArrow").style.marginLeft="270px";
         
        document.getElementById("spnLftCrvJourneys").className="curvePink"
        document.getElementById("spnTileJourneys").className="tilePink"
        document.getElementById("spnRghtCrvJourneys").className="curvePink"
        
        document.getElementById("spnLftCrvItinerary").className="curvePink"
        document.getElementById("spnTileItinerary").className="tilePink"
        document.getElementById("spnRghtCrvItinerary").className="curvePink"
        
        document.getElementById("spnLftCrvDestinations").className="curvePink_Roll"
        document.getElementById("spnTileDestinations").className="tilePink_Roll"
        document.getElementById("spnRghtCrvDestinations").className="curvePink_Roll"
        
       
        break;
}
}



function showHideAboutUs(selected)
{
    
switch(selected)
    {
       case 1 :
           
        document.getElementById("divAboutUsInfo").style.display="none";
        document.getElementById("divAboutUsAffilation").style.display="block";
        
        
        document.getElementById("spnCountryDwnArrow").style.marginLeft="41px";
         
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink_Roll"
        document.getElementById("spnTileCountryAtGlance").className="tilePink_Roll"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink_Roll"
        document.getElementById("spnLftCrvThingsToDo").className="curvePink"
        document.getElementById("spnTileThingsToDo").className="tilePink"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink"
        
       
        break;
       case 2:
       
        document.getElementById("divAboutUsInfo").style.display="block";
        document.getElementById("divAboutUsAffilation").style.display="none";
        document.getElementById("spnCountryDwnArrow").style.marginLeft="221px";         
        document.getElementById("spnLftCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnTileCountryAtGlance").className="tilePink"
        document.getElementById("spnRghtCrvCountryAtGlance").className="curvePink"
        document.getElementById("spnLftCrvThingsToDo").className="curvePink_Roll"
        document.getElementById("spnTileThingsToDo").className="tilePink_Roll"
        document.getElementById("spnRghtCrvThingsToDo").className="curvePink_Roll"
       
       
        
        
        
    }
}

function bullet()
{
    document.getElementById("spnCountryDwnArrow").style.marginLeft="135px"; 
}
function randomHome()
{
    i = Math.round(5*Math.random());
    showHide(i);
}
function getClasses()
{
    
    var selected=document.getElementById("UCNewSearch1_ddlAOE");
    var mainSelect=document.getElementById("UCNewSearch1_ddlCountry");
    document.getElementById("UCNewSearch1_hdnCountryID").value=mainSelect.value
    var hdnCountryID= document.getElementById("UCNewSearch1_hdnCountryID").value
    
     if(hdnCountryID != 0)
      {
        for (i=0;i<mainSelect.length;i++)
        {
           if(mainSelect.options[i].value == hdnCountryID)
              {
               selected.disabled=false;
               clearOptions(selected);
                populateFreesatMake();
                break;
              }
          }
        }          
      else
      {
        selected.disabled=true;
      }
}   
function addOption(selectbox,text,value )
{ //Function for adding an option into Select Box
    var optn = document.createElement("OPTION");
    optn.text = text;
    optn.value = value;
    selectbox.options.add(optn); 
}
function clearOptions(selectbox)
{ //Function for removing all options of a Select Box
    while(selectbox.options.length>0)
        selectbox.remove(0)
}
function loadXMLDoc(dname) 
{
if (window.XMLHttpRequest)
  {
  xmlDoc=new window.XMLHttpRequest();
  xmlDoc.open("GET",dname,false);
  xmlDoc.send("");
  return xmlDoc.responseXML;
  }
// IE 5 and IE 6
else if (ActiveXObject("Microsoft.XMLDOM"))
  {
  xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
  xmlDoc.async=false;
  xmlDoc.load(dname);
  return xmlDoc;
  }
alert("Error loading document");
return null;
}

function populateFreesatMake()
{       
    var browserName=navigator.appName;
    xmlDoc=loadXMLDoc(document.getElementById("UCNewSearch1_hdnCompletePath").value + "XML/CountryClassname.xml");  
    var hdnCountryValue=document.getElementById("UCNewSearch1_hdnCountryID").value;
    var x = xmlDoc.getElementsByTagName("countryid");
    var y = xmlDoc.getElementsByTagName("classname");
    var z = xmlDoc.getElementsByTagName("classid");
    if (browserName=="Netscape")
    {
        for(j=0; j<x.length; j++)
        {
            if(x[j].childNodes[0].nodeValue == hdnCountryValue)
            {
               addOption(document.getElementById("UCNewSearch1_ddlAOE"),y[j].childNodes[0].nodeValue,z[j].childNodes[0].nodeValue);
            }
        }
    }
    else if (browserName=="Microsoft Internet Explorer")
    {
        for(j=0; j<x.length; j++)
        {
            if(x[j].childNodes[0].nodeValue == hdnCountryValue)
            {
               addOption(document.getElementById("UCNewSearch1_ddlAOE"),y[j].childNodes[0].nodeValue,z[j].childNodes[0].nodeValue);
            }
        }
    }   
}

    function redirectSearchListing()
{
    document.getElementById('UCNewSearch1_btnSearch').click();
   //document.getElementById("UCNewSearch1_ancSearch").href= document.getElementById("UCNewSearch1_hdnCompletePath").value + 'GapYearPlanner/MyGapSearchListing.aspx?ConID=&ClassIDs='+ document.getElementById("UCNewSearch1_ddlAOE").value +'&Dur='+ document.getElementById("UCNewSearch1_ddlDuration").value + '&KW='+ document.getElementById("UCNewSearch1_ddlCountry").value
}

function ShowOtherCategories()
{
  $("#divOtherCategory").show("slow");
}
function HideOtherCategories()
{
  $("#divOtherCategory").hide("slow");
}









function ShowCountryProjects()
{
    $("#divProjectsList").show("slow");
}

function HideCountryProjects()
{
  
  $("#divProjectsList").show("slow");
}

function ShowProjects(ID)
{
 document.getElementById('TeachProjects').style.display ="none";
 document.getElementById('VolunteerProjects').style.display = "none";
 document.getElementById('InternsProjects').style.display = "none";
 document.getElementById('OneOfAkindProjects').style.display = "none";
 
 switch(ID)
 {
  case "TeachProjects": 
    document.getElementById(ID).style.display = "inline";
    break;
  case "VolunteerProjects":  
   document.getElementById(ID).style.display = "inline";
   break;
  case "InternsProjects":
   document.getElementById(ID).style.display = "inline";
   break;
  case "OneOfAkindProjects":    
   document.getElementById(ID).style.display = "inline";
   break;
 }
 
 
}
function HideProjects(ID)
{
  document.getElementById(ID).style.display = "none";
}