	var classUpArrow = "main_links";
	var classDownArrow = "main_links_active";
	var minimenu = true;
	var magmenu = true;
	var premimenu = true;
	var travelbagmenu = true;
	var travelgroupmenu = true;

	function showHidemag()
	{
       
		if(magmenu)
		{
            if(document.getElementById('magDisId'))
			{
                document.getElementById('magDisId').style.display = "";
            }
			document.getElementById('mag').style.display = "";
			document.getElementById("om").className = classDownArrow;

			if(document.getElementById('magMore'))
			{
				document.getElementById('magMore').style.display = "";
			}
			magmenu = false;
		}
		else
		{
            if(document.getElementById('magDisId'))
			{
                document.getElementById('magDisId').style.display = "none";
            }
			document.getElementById('mag').style.display = "none";
			document.getElementById("om").className = classUpArrow;

			if(document.getElementById('magMore'))
			{
				document.getElementById('magMore').style.display = "none";
			}
            if(document.getElementById('magTogId'))
			{
				document.getElementById('magTogId').style.display = "none";
			}
			magmenu = true;
		}
	}

	function showHideMini()
	{
        
		if(minimenu)
		{
            if(document.getElementById('miniDisId'))
			{
                document.getElementById('miniDisId').style.display = "";
            }
            
			document.getElementById('mini').style.display = "";
			document.getElementById("omg").className = classDownArrow;
			if(document.getElementById('miniMore'))
			{
				document.getElementById('miniMore').style.display = "";
			}
			minimenu = false;
		}
		else
		{
			document.getElementById('mini').style.display = "none";
			document.getElementById("omg").className = classUpArrow;
			if(document.getElementById('miniMore'))
			{
				document.getElementById('miniMore').style.display = "none";
			}
            if(document.getElementById('miniDisId'))
			{
				document.getElementById('miniDisId').style.display = "none";
			}
            if(document.getElementById('miniTogId'))
			{
				document.getElementById('miniTogId').style.display = "none";
			}
			minimenu = true;
		}
	}

	function showHidePre()
	{
		if(premimenu)
		{
            
            if(document.getElementById('preDisId'))
			{
                document.getElementById('preDisId').style.display = "";
            }
			document.getElementById('pre').style.display = "";
			document.getElementById("opg").className = classDownArrow;
			if(document.getElementById('preMore'))
			{
				document.getElementById('preMore').style.display = "";
			}
			premimenu = false;
		}
		else
		{
			document.getElementById('pre').style.display = "none";
			document.getElementById("opg").className = classUpArrow;
			if(document.getElementById('preMore'))
			{
				document.getElementById('preMore').style.display = "none";
			}
            if(document.getElementById('preTogId'))
			{
				document.getElementById('preTogId').style.display = "none";
			}
            if(document.getElementById('preDisId'))
			{
				document.getElementById('preDisId').style.display = "none";
			}
			premimenu = true;
		}
	}
	function showHideTravelbag()
	{
		var content = document.getElementById('travelbag').innerHTML;
		if(content.length >3)
		{
			if(travelbagmenu)
			{
                if(document.getElementById('TrGRDisId'))
                {
                    document.getElementById('TrGRDisId').style.display = "";
                }
				document.getElementById('travelbag').style.display = "";
				document.getElementById("mtc").className = classDownArrow;
				if(document.getElementById('travelbagMore'))
				{
					document.getElementById('travelbagMore').style.display = "";
				}
				travelbagmenu = false;
			}
			else
			{
				document.getElementById('travelbag').style.display = "none";
				document.getElementById("mtc").className = classUpArrow;
				if(document.getElementById('travelbagMore'))
				{
					document.getElementById('travelbagMore').style.display = "none";
				}
                if(document.getElementById('TrGRDisId'))
                {
                    document.getElementById('TrGRDisId').style.display = "none";
                }
                if(document.getElementById('TrGRTogId'))
                {
                    document.getElementById('TrGRTogId').style.display = "none";
                }
				travelbagmenu = true;
			}
		}
	}
	function showHideTravelGroup()
	{
		var content = document.getElementById('grp').innerHTML;
		if(content.length >3)
		{
			if(travelgroupmenu)
			{
                if(document.getElementById('carnetDisId'))
                {
                    document.getElementById('carnetDisId').style.display = "";
                }
				document.getElementById('grp').style.display = "";
				document.getElementById("mtg").className = classDownArrow;
				if(document.getElementById('grpMore'))
				{
					document.getElementById('grpMore').style.display = "";
				}
				travelgroupmenu = false;
			}
			else
			{
				document.getElementById('grp').style.display = "none";
				document.getElementById("mtg").className = classUpArrow;
				if(document.getElementById('grpMore'))
				{
					document.getElementById('grpMore').style.display = "none";
				}
                if(document.getElementById('carnetDisId'))
                {
                    document.getElementById('carnetDisId').style.display = "none";
                }
                if(document.getElementById('carnetTogId'))
                {
                    document.getElementById('carnetTogId').style.display = "none";
                }
				travelgroupmenu = true;
			}
		}
	}

	function forgot(path,pwidht,pheight)
	{
		window.open(path, "win", "width=" + pwidht + ", height=" + pheight + ", scrollbars=yes, toolbar=no, resizable=yes");
	}
	
	function fnLogin(frmName)
	{
        //alert("test");
		var str ="doc=document." + frmName; 
		eval(str);
		switch(frmName)
		{
			case "loginFrmmag" :
				//doc.urlredirect.value = retunUrlmag();
				//alert(doc.urlredirect.value);
				break;
			case "loginFrmmini" :
				//doc.urlredirect.value = retunUrlmini();
				//alert(doc.urlredirect.value);
				break;
		}
		if(doc.login.value == "")
		{
			alert("Please Enter the Email Address");
			doc.login.focus();
			return false;
		}
		else
		{
				if ((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(doc.login.value)) == false)
					{
							
							alert("Invalid Email Address")
							
							doc.login.focus();
							doc.login.select();
							return false;
					}
		}
		if(doc.pass.value == "")
		{
			alert("Please Enter Password");
			doc.pass.focus();
			return false;
		}
        //alert("test1");
		doc.submit();
	}

    function keycheck(e)
    {
        if(e.keyCode==13)
            return true;
        
        return false;
    }
	//** retunr url as per menu
	function retunUrlmag()
	{
		var obj = document.magZine.magRdo;
		str = "";
		for(i=0;i<obj.length;i++)
		{

			if(obj[i].checked == true)
			{
				str = obj[i].value;
				break;
			}
		}
		return str;
	}
	
	function retunUrlmini()
	{
		var obj = document.miniGuide.miniRdo;
		str = "";
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].checked == true)
			{
				str = obj[i].value;
				break;
			}
		}
		return str;
	}
	//*** Balloon functions
	function visibleDiv(timeSec,id)
	{
		setTimeout(function () {showDiv(id);}, timeSec);
	}

	function disappearDiv(timeSec,id)
	{
		setTimeout(function () {hideDiv(id);}, timeSec);
	}

	function showDiv(id)
	{
		//alert(document.getElementById("'" + id +  "'"));
		document.getElementById(id).style.display = "";
	}
	
	function hideDiv(id)
	{
		document.getElementById(id).style.display = "none";
	}

	function openwindow(page)
	{
		window.open(page,"mywindow","toolbar=0,menubar=0,resizable=0,width=350,height=250");
	}

	function popUp(URL,width,height) 
	{
		day = new Date();
		id = day.getTime();
		eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0, scrollbars=1, location=0, statusbar=0, menubar=0, resizable=1, width=" + width + ", height="+ height +", left = 412, top = 134');");
	}	
    function toggle(tid,did,fadeid) 
    {
        var ele = document.getElementById(tid);
        var text = document.getElementById(did);
        
        if(tid=='magTogId')
        {
            if(document.getElementById('miniTogId').style.display == "block")
            {
                var e1 = document.getElementById('omg');
                var e2 = document.getElementById('miniMore');
                var e3 = document.getElementById('mini1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('miniTogId').style.display = "";
            }

            /*if(document.getElementById('preTogId').style.display == "block")
            {
                var e1 = document.getElementById('opg');
                var e2 = document.getElementById('preMore');
                var e3 = document.getElementById('pre1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                document.getElementById('preTogId').style.display = "";
            }*/

            if(document.getElementById('TrGRTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtc');
                var e2 = document.getElementById('travelbagMore');
                var e3 = document.getElementById('travelbag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                document.getElementById('preTogId').style.display = "";
            }

            if(document.getElementById('carnetTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtg');
                var e2 = document.getElementById('grpMore');
                var e3 = document.getElementById('grp1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                document.getElementById('carnetTogId').style.display = "";
            }
            
            var element1 = document.getElementById('om');
            var element2 = document.getElementById('magMore');
            var element3 = document.getElementById('mag1');
        }
        else if(tid=='miniTogId')
        {
            
            if(document.getElementById('magTogId').style.display == "block")
            {
                var e1 = document.getElementById('om');
                var e2 = document.getElementById('magMore');
                var e3 = document.getElementById('mag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('magTogId').style.display = "";
            }

            

            /*if(document.getElementById('preTogId').style.display == "block")
            {
                var e1 = document.getElementById('opg');
                var e2 = document.getElementById('preMore');
                var e3 = document.getElementById('pre1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('preTogId').style.display = "";
            }*/

            if(document.getElementById('TrGRTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtc');
                var e2 = document.getElementById('travelbagMore');
                var e3 = document.getElementById('travelbag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('TrGRTogId').style.display = "";
            }

            if(document.getElementById('carnetTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtg');
                var e2 = document.getElementById('grpMore');
                var e3 = document.getElementById('grp1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('carnetTogId').style.display = "";
            }
            var element1 = document.getElementById('omg');
            var element2 = document.getElementById('miniMore');
            var element3 = document.getElementById('mini1');
        }
        /*else if(tid=='preTogId')
        {
            if(document.getElementById('magTogId').style.display == "block")
            {
                var e1 = document.getElementById('om');
                var e2 = document.getElementById('magMore');
                var e3 = document.getElementById('mag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('magTogId').style.display = "";
            }

            if(document.getElementById('miniTogId').style.display == "block")
            {
                var e1 = document.getElementById('omg');
                var e2 = document.getElementById('miniMore');
                var e3 = document.getElementById('mini1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('miniTogId').style.display = "";
            }

            if(document.getElementById('TrGRTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtc');
                var e2 = document.getElementById('travelbagMore');
                var e3 = document.getElementById('travelbag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('TrGRTogId').style.display = "";
            }

            if(document.getElementById('carnetTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtg');
                var e2 = document.getElementById('grpMore');
                var e3 = document.getElementById('grp1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('carnetTogId').style.display = "";
            }
            var element1 = document.getElementById('opg');
            var element2 = document.getElementById('preMore');
            var element3 = document.getElementById('pre1');
        }*/
        else if(tid=='TrGRTogId')
        {
            if(document.getElementById('magTogId').style.display == "block")
            {
                var e1 = document.getElementById('om');
                var e2 = document.getElementById('magMore');
                var e3 = document.getElementById('mag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('magTogId').style.display = "";
            }

            if(document.getElementById('miniTogId').style.display == "block")
            {
                var e1 = document.getElementById('omg');
                var e2 = document.getElementById('miniMore');
                var e3 = document.getElementById('mini1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('miniTogId').style.display = "";
            }

            /*if(document.getElementById('preTogId').style.display == "block")
            {
                var e1 = document.getElementById('opg');
                var e2 = document.getElementById('preMore');
                var e3 = document.getElementById('pre1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('preTogId').style.display = "";
            }*/

            
            if(document.getElementById('carnetTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtg');
                var e2 = document.getElementById('grpMore');
                var e3 = document.getElementById('grp1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                document.getElementById('carnetTogId').style.display = "";
            }
            var element1 = document.getElementById('mtc');
            var element2 = document.getElementById('travelbagMore');
            var element3 = document.getElementById('travelbag1');
        }
        else if(tid=='carnetTogId')
        {
            if(document.getElementById('magTogId').style.display == "block")
            {
                var e1 = document.getElementById('om');
                var e2 = document.getElementById('magMore');
                var e3 = document.getElementById('mag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('magTogId').style.display = "";
            }

            if(document.getElementById('miniTogId').style.display == "block")
            {
                var e1 = document.getElementById('omg');
                var e2 = document.getElementById('miniMore');
                var e3 = document.getElementById('mini1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                document.getElementById('miniTogId').style.display = "";
            }

            /*if(document.getElementById('preTogId').style.display == "block")
            {
                var e1 = document.getElementById('opg');
                var e2 = document.getElementById('preMore');
                var e3 = document.getElementById('pre1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('preTogId').style.display = "";
            }*/

            if(document.getElementById('TrGRTogId').style.display == "block")
            {
                var e1 = document.getElementById('mtc');
                var e2 = document.getElementById('travelbagMore');
                var e3 = document.getElementById('travelbag1');
                var IndOpacityAsInt=100;
                var IndOpacityAsDecimal = IndOpacityAsInt;
                if (IndOpacityAsInt > 100)
                    IndOpacityAsInt = IndOpacityAsDecimal = 100; 
                else if (IndOpacityAsInt < 0)
                    IndOpacityAsInt = IndOpacityAsDecimal = 0; 

                IndOpacityAsDecimal /= 100;
                if (IndOpacityAsInt < 1)
                    IndOpacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

                e1.style.opacity = (IndOpacityAsDecimal);
                e1.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e2.style.opacity = (IndOpacityAsDecimal);
                e2.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                e3.style.opacity = (IndOpacityAsDecimal);
                e3.style.filter  = "alpha(opacity=" + IndOpacityAsInt + ")";
                
                document.getElementById('TrGRTogId').style.display = "";
            }

            var element1 = document.getElementById('mtg');
            var element2 = document.getElementById('grpMore');
            var element3 = document.getElementById('grp1');
        }
        //var element1 = document.getElementById('om');
        //var element2 = document.getElementById('magMore');
        //var element3 = document.getElementById('mag');
        
            
        if(ele.style.display == "block") 
        {
            var opacityAsInt=100;
            ele.style.display = "none";
            // text.innerHTML = "show";
            //document.getElementById(fadeid).style.display='';
            var opacityAsDecimal = opacityAsInt;
            if (opacityAsInt > 100)
                opacityAsInt = opacityAsDecimal = 100; 
            else if (opacityAsInt < 0)
                opacityAsInt = opacityAsDecimal = 0; 

            opacityAsDecimal /= 100;
            if (opacityAsInt < 1)
                opacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

            element1.style.opacity = (opacityAsDecimal);
            element1.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
            
            element2.style.opacity = (opacityAsDecimal);
            element2.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
            
            element3.style.opacity = (opacityAsDecimal);
            element3.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
        }
        else 
        {
            var opacityAsInt=50;
            ele.style.display = "block";
            // text.innerHTML = "hide";
            //document.getElementById(fadeid).style.display='block';
            
            
            var opacityAsDecimal = opacityAsInt;
            if (opacityAsInt > 100)
                opacityAsInt = opacityAsDecimal = 100; 
            else if (opacityAsInt < 0)
                opacityAsInt = opacityAsDecimal = 0; 

            opacityAsDecimal /= 100;
            if (opacityAsInt < 1)
                opacityAsInt = 1; // IE7 bug, text smoothing cuts out if 0

            element1.style.opacity = (opacityAsDecimal);
            element1.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
            
            element2.style.opacity = (opacityAsDecimal);
            element2.style.filter  = "alpha(opacity=" + opacityAsInt + ")";
            
            element3.style.opacity = (opacityAsDecimal);
            element3.style.filter  = "alpha(opacity=" + opacityAsInt + ")";



        }
    } 
    
	var cookieName="cookiesPriceVal";
	var cookieName1="cookiesPrice";
    document.cookie = cookieName + '=; expires=Thu, 01-Jan-70 00:00:01 GMT;';
    document.cookie = cookieName1 + '=; expires=Wed, 01-Jan-70 00:00:01 GMT;';


