// JavaScript Document


init();

var pageID;






function isSafari() {
	if(navigator && navigator.userAgent) {
		var an = navigator.userAgent.toLowerCase(); 
		if(an.indexOf('safari') != -1 && an.indexOf('chrome') == -1) {
			return true;
		}
	}
	return false;
}

function isIE() {
	if(navigator && navigator.appName) {
		var an = navigator.appName.toLowerCase(); 
		if(an.indexOf('internet explorer') != -1) {
			return true;
		}
	}
	return false;
}

function isChrome() {
	if(navigator && navigator.userAgent) {
		var an = navigator.userAgent.toLowerCase(); 
		if(an.indexOf('chrome') != -1) {
			return true;
		}
	}
	return false;
}

function isFirefox() {
	if(navigator && navigator.userAgent) {
		var an = navigator.userAgent.toLowerCase(); 
		if(an.indexOf('firefox') != -1) {
			return true;
		}
	}
	return false;
}

function isOpera() {
	if(navigator && navigator.appName) {
		var an = navigator.appName.toLowerCase(); 
		if(an.indexOf('opera') != -1) {
			return true;
		}
	}
	return false;
}

/*

$(document).ready(function() {
	$("#pickup_area").hover(function() {
	$("#controllBtn").fadeIn(0);
	},
		function() {
	$("#controllBtn").fadeOut(0);
	});
	
	$("#prev").hover(function() {
	$("#controllBtn").stop().fadeIn(0);
	},
		function() {
	$("#controllBtn").stop().fadeOut(0);
	});
	
	$("#next").hover(function() {
	$("#controllBtn").stop().fadeIn(0);
	},
		function() {
	$("#controllBtn").stop().fadeOut(0);
	});

});
*/


/*
// COMMON NAVIGATION ROLLOVER 
$(document).ready(function(){
         $('#navi li a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 250);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 250);});
		 
		 $('#navi_common li a').hover(function(){
		         $(this).stop().animate({'opacity' : '0'}, 250);
		 }, function(){$(this).stop().animate({'opacity' : '1'}, 250);});
});


// THUMBNAIL COLOR
$(document).ready(function(){
	$(".article_thumb li.ships").hover(function() {
		$(this).stop().animate({ backgroundColor: "#003459" ,color: "#FFFFFF"}, 100);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.women").hover(function() {
		$(this).stop().animate({ backgroundColor: "#FF3366" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.jet").hover(function() {
		$(this).stop().animate({ backgroundColor: "#0099CC" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.khaju").hover(function() {
		$(this).stop().animate({ backgroundColor: "#FF6633" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.liflattie").hover(function() {
		$(this).stop().animate({ backgroundColor: "#CC6699" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.kids").hover(function() {
		$(this).stop().animate({ backgroundColor: "#FFCC00" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	$(".article_thumb li.other").hover(function() {
		$(this).stop().animate({ backgroundColor: "#B2B2B2" ,color: "#FFFFFF"}, 200);
	},function() {
	$(this).stop().animate({ backgroundColor: "#FFFFFF" , color: "#4F5961"}, 400);	
  });
	
	
});
*/


/*
$(document).ready(function(){
        $("#tab_b > li:first").addClass("select");
        $("#tab_b > li").hover(function(){
            $(this).css("cursor","pointer");
        },function(){
            $(this).css("cursor","default");
        });
 
        $("#tab > div").hide();
        $("#tab > div:first").show();
 
    $("#tab_b > li").click(function () {
        $("#tab_b > li").removeClass("select");
        $(this).addClass("select");
        $("#tab > div").hide();
        $("#tab > div").eq($("#tab_b > li").index(this)).fadeIn(1000);
    });
 
});

*/
