$(document).ready(function(){

    flashembed("homeFlash", { 
      src:'swf/homepage.swf',  
      version:[9,115], 
      expressInstall:'expressinstall.swf',
      wmode:"transparent",
      width:"946px",
      height:"394px"
    });
    
    
    $("#mainNav a").mouseover(function(){
        $(this).addClass("hover");
    });
    
    $("#mainNav a").mouseout(function(){
        $(this).removeClass("hover");
    });
    
    $("#container").prepend($("#footer"));
	$("#footer div.content").eq(0).css("position", "absolute").css("text-align", "center").css("bottom", "28px").css("width", "100%");
	$("#container").append($("#footer div.content").eq(0));
	
    if($.fn.lightBox){
        $('.gallery a').lightBox();
    }
    $('.gallery a').mouseover(function(){
        $(this).parent("li").addClass("hover");
    });
    $('.gallery a').mouseout(function(){
        $(this).parent("li").removeClass("hover");
    });
    $('.gallery ul').append("<div class='clear'></div>");
	
	
	$("body#pageProd div.gallery ul").each(function(){
		$(this).find("li").each(function(i){
		
			if(i%3==0 && i!=0){
				$(this).before("<br />");
				$(this).css("clear","left");	
			}
		});
	
	});
	
	if($("div#videodiv").get(0)){
		swfobject.embedSWF("swf/videoplayer.swf", "videodiv", "432", "271", "9.0.0", "swf/expressInstall.swf", flashvars, params, attributes);
	}
		if($.browser.msie && parseInt($.browser.version)<7){
		pngfix();
		
	}

})