$(document).ready(function () {	
	// Fix PNG for IE6 and below
	if ((/MSIE (5\.5|6\.)/).test(navigator.userAgent)) { 
		supersleight.init();
	}	
	btnHover();
	product();
});


function btnHover() {
	$(".BtnStyle").hover(
		function(){
			$(this).addClass("Hover");
		},
		function(){
			$(this).removeClass("Hover");		
	})
}

function getQueryVariable(variable) 
{
  var query = window.location.search.substring(1);
  var vars = query.split("&");
  for (var i=0;i<vars.length;i++) {
    var pair = vars[i].split("=");
    if (pair[0] == variable) {
      return pair[1];
    }
  }
  
  return 1; 
}


function product(){
	$(".ProductsPanel .Details").hide();
	$(".ProductFeatures li:first").addClass("Active");	
	$(".ProductsPanel .Details:first").show();
	
	$(".ProductFeatures").find("li").each(function(index){
			$(this).bind("click", function(e){
				$(".ProductFeatures").find("li").removeClass();
				$(".ProductsPanel .Details").hide();
				$(this).addClass("Active");
				$(".ProductsPanel .Details:eq(" + index + ")").show();
			});
	});		
}