// For Additional Product Images Scroll Bar 
var speed = 5;
var grap  = 175;

if($("#pageBody").length>0 || $("#indexHomeBody").length>0 || $("#contactusBody").length>0 || $("#privacyBody").length>0 || $("#conditionsBody").length>0) {
	
} else {
	
 // $("#main,#pagebody").css({ 'padding-bottom' : '20px' });
 //$("#main,#pagebody").css({ 'height' : 'auto', 'padding-bottom' : '20px' });
	//$("#navBreadCrumb").css({ 'margin' : '15px 15px 0 0', 'width' : '566px' });
  $("#left").show();  

}

$("#Payment .clearBoth:first").css({ 'display' : 'none' });

if($("#indexHomeBody").length>0) {
  $("#pagebody").css({ 'margin-top' : '15px' });
}

if($("#mainImage").length>0) {
  var mainImage = $("#mainImage img").attr("src");
  $("#main").css({ 'background-image' : 'url('+mainImage+')', 'background-repeat' : 'no-repeat' });
} else { 
  $("#main").css({ 'background-image' : 'url(images/image/main_generic.jpg)', 'background-repeat' : 'no-repeat' });
 }

  $.fn.customFadeIn = function(speed, callback) {
    $(this).fadeIn(speed, function() {
      if(!$.support.opacity)
        $(this).get(0).style.removeAttribute('filter');
      if(callback != undefined)
        callback();
    });
  };

$("#menu li:first").addClass("menuFirst");
$("#menu li:last").addClass("menuLast");
$("#menu li:last a").addClass("selectedLast");
$('<div class="clear"></div>').insertAfter('.whats_newd');

    $("input").focus(function () {
        $(this).css("border-color","#f7bb1b");
    });
    $("input").blur(function () {
      $(this).removeAttr("style");   
    });

jQuery.fn.fadeToggle = function(speed, easing, callback) {
   return this.animate({opacity: 'toggle'}, speed, easing, callback);
}; 

$("#minimize").click(function() {	
 if($("#pagebody").is(":visible")) { $(this).css("backgroundPosition","right"); }
if($("#pagebody").is(":hidden")) { $(this).css("backgroundPosition","left"); }	
 $("#pagebody").fadeToggle();	 	
});

$(".cbox3 a, .cbox4 a, .cbox45 a").hover(function() {
  
  $(this).parent().css("backgroundPosition","top right");
  $(this).parent().css("borderBottom","3px solid #f7bb1b");
  
}, function() {
  
  $(this).parent().removeAttr("style");
  
});

$("#faqDrop a").not("#faqDrop .shout a").click(function() {
  
  if($(this).parent().find(".shout").is(":hidden")) {
    $("#faqDrop .shout").slideUp();
  }
  
  $(this).parent().find(".shout").slideToggle();
  return false;
  
});

$('.pagebodyMenu').scrollFollow({
  speed: 600,
  offset: 8  
});


//$("#ezPageDefault h2").not(":first").css({ 'padding-top' : '80px' });

