 $(document).ready(function(){
	if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style)
	{
		var strHref=window.location.href;
		var str1="http://reddust-staging.lovestockleaf.com/";
		var str2="http://reddust-staging.lovestockleaf.com/#";
		var str3="http://reddust-staging.lovestockleaf.com/?home";
		//alert(strHref.indexOf("http://reddust-staging.lovestockleaf.com/"));
		if(strHref!=str1&&strHref!=str2&&strHref!=str3)
		{
			DD_belatedPNG.fix("#header .container,#footer_wrapper");
		}
	}
    $("a.splash_link#homelink").click(function () {
      $("#welcome").fadeOut("slow", function(){

		$(".home #main ").fadeIn("slow", function(){
			$("#footer_wrapper").fadeIn("slow");
			if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style)
			{
			//alert(1);
			DD_belatedPNG.fix("#header .container,#footer_wrapper");
			}
			 featuredcontentslider.init({
		            id: "slider1",  //id of main slider DIV
		            contentsource: ["inline", ""],  //Valid values: ["inline", ""] or ["ajax", "path_to_file"]
		            toc: "#increment",  //Valid values: "#increment", "markup", ["label1", "label2", etc]
		            nextprev: ["Previous", "Next"],  //labels for "prev" and "next" links. Set to "" to hide.
		            enablefade: [true, 0.1],  //[true/false, fadedegree]
		            autorotate: [true, 5000],  //[true/false, pausetime]
		            onChange: function(previndex, curindex){  //event handler fired whenever script changes slide
		                //previndex holds index of last slide viewed b4 current (1=1st slide, 2nd=2nd etc)
		                //curindex holds index of currently shown slide (1=1st slide, 2nd=2nd etc)
		            }
		        })
		
				$('.home-box .logos').innerfade({
					speed: 1000,
					timeout: 5000,
					type: 'sequence',
					containerheight: '110px'
				});
				
				$('.push').css('height', $('#footer').height());
				$('#main').css('margin-bottom', (0 - $('#footer').height()));
				$('#footer_wrapper').css('height', $('#footer').height());
		});
		
		})
    });
 });
