

function viewSubmenuLowband(arg){
			
    switch(arg){
        case 2:
            document.getElementById("gnb_submenu2_low").style.display = "block";
            document.getElementById("MenuItem2_low").className = "on";
            break;
        case 3:
            document.getElementById("gnb_submenu3_low").style.display = "block";
            document.getElementById("MenuItem3_low").className = "on";
            break;
        case 4:
            document.getElementById("gnb_submenu4_low").style.display = "block";
            document.getElementById("MenuItem4_low").className = "on";
            break;
        case 5:
            document.getElementById("gnb_submenu5_low").style.display = "block";
            document.getElementById("MenuItem5_low").className = "on";
            break;
		 case 7:
            document.getElementById("gnb_submenu7_low").style.display = "block";
            document.getElementById("MenuItem7_low").className = "on";
            break;
    }
}
function viewSubmenu(arg){
			
    switch(arg){
        case 2:
            document.getElementById("gnb_submenu2_low").style.display = "none";
            document.getElementById("MenuItem2_low").className = "on";
            break;
        case 3:
            document.getElementById("gnb_submenu3_low").style.display = "none";
            document.getElementById("MenuItem3_low").className = "on";
            break;
        case 4:
            document.getElementById("gnb_submenu4_low").style.display = "block";
            document.getElementById("MenuItem4_low").className = "on";
            break;
        case 5:
            document.getElementById("gnb_submenu5_low").style.display = "none";
            document.getElementById("MenuItem5_low").className = "on";
            break;
		 case 7:
            document.getElementById("gnb_submenu7_low").style.display = "none";
            document.getElementById("MenuItem7_low").className = "on";
            break;
    }
}
 
function hiddenSubmenuLowband(arg) {
					
    switch(arg){

        case 2:
            document.getElementById("gnb_submenu2_low").style.display = "none";
            document.getElementById("MenuItem2_low").className = "";
            break;
        case 3:
            document.getElementById("gnb_submenu3_low").style.display = "none";
            document.getElementById("MenuItem3_low").className = "";
            break;
        case 4:
            document.getElementById("gnb_submenu4_low").style.display = "none";
            document.getElementById("MenuItem4_low").className = "";
            break;
        case 5:
            document.getElementById("gnb_submenu5_low").style.display = "none";
            document.getElementById("MenuItem5_low").className = "";
            break;
		case 7:
            document.getElementById("gnb_submenu7_low").style.display = "none";
            document.getElementById("MenuItem7_low").className = "";
            break;
    }
} 
		
function getBrands(cate,subcate)
{
    if (subcate=="" || cate=="")
    {
        $("#dynamicBrands").html("<span id='availbleTitle'>Available Brands:</span>");
        return;
    }
    $.ajax({
        url:"Data.php?qtype=brands&cate="+cate+"&subcate="+subcate,
        type:"GET",
        success:function(msg){
            document.getElementById("dynamicBrands").innerHTML = "<span id='availbleTitle'>Available Brands:</span>"+msg;
			document.getElementById("dynamicBrands").innerHTML = "Available Brands:<span id='AvaliableText'> Select Any Available Brand</span>"+msg;
        }
    });
}

function getCate(brand, cate){

    if (brand=="" || cate=="")
    {
        $("#dynamicProducts").html("<span id='availbleTitle'>Available Products:</span> ");
        return;
    }

    $.ajax({
        url:"Data.php?qtype=products&brand="+brand+"&cate="+cate,
        type:"GET",
        success:function(msg){
            document.getElementById("dynamicProducts").innerHTML ="<span id='availbleTitle'>Available Products:</span> "+msg;
			document.getElementById("dynamicProducts").innerHTML = "Available Products:<span id='AvaliableText'> Choose Your favourate Product</span>"+msg;
        }
    });
}
function loginVerify()
{
	jQuery(function ($) {
	
	var OSX = {
		container: null,
		init: function () {
			$("input.osx, a.osx").click(function (e) {
				e.preventDefault();	

				$("#osx-modal-content").modal({
					overlayId: 'osx-overlay',
					containerId: 'osx-container',
					closeHTML: null,
					minHeight: 80,
					opacity: 65, 
					position: ['0',],
					overlayClose: true,
					onOpen: OSX.open,
					onClose: OSX.close
				});
			});
		},
		open: function (d) {
			var self = this;
			self.container = d.container[0];
			d.overlay.fadeIn('slow', function () {
				$("#osx-modal-content", self.container).show();
				var title = $("#osx-modal-title", self.container);
				title.show();
				d.container.slideDown('slow', function () {
					setTimeout(function () {
						var h = $("#osx-modal-data", self.container).height()
							+ title.height()
							+ 20; // padding
						d.container.animate(
							{height: h}, 
							200,
							function () {
								$("div.close", self.container).show();
								$("#osx-modal-data", self.container).show();
							}
						);
					}, 300);
				});
			})
		},
		close: function (d) {
			var self = this; // this = SimpleModal object
			d.container.animate(
				{top:"-" + (d.container.height() + 20)},
				500,
				function () {
					self.close(); // or $.modal.close();
				}
			);
		}
	};

	OSX.init();

});
}

function openAnswer(id)
{
	$('#basic-modal-content1'+id).modal();
}

function openNews(id)
{
	$('#basic-modal-content2'+id).modal();
}
