// JavaScript Document
                $(function(){
                                $("#page-wrap").wrapInner(document.createElement("tr"));
                                $("#page-wrap").wrapInner(document.createElement("table"));
                                $(".info,.text,.catalog,.information").wrap("<td>");
                 });
                
                $(function(){
                                positionFooter(); 
                                function positionFooter(){
                                if($(document.body).height() < $(window).height()){
                                $("#footer-wrapper").css({position: "absolute",top:($(window).scrollTop()+$(window).height()-$("#footer-wrapper").height())+"px"})
		}	
                }
                
                
        
var repeatCount = 0;

function ScrollSmoothly(scrollPos,repeatTimes, direction) {
	if(repeatCount < repeatTimes)
		if(direction == 'right')
			window.scrollBy(90,0);
		else
			window.scrollBy(-90,0);
	else
	{
		repeatCount = 0;
		clearTimeout(cTimeout);
		return;
	}
	repeatCount++;
	cTimeout = setTimeout("ScrollSmoothly('" + scrollPos + "','"+ repeatTimes +"','"+ direction +"')",10);
}
 
/* Initialization code. */
if (window.addEventListener)
        window.addEventListener('DOMMouseScroll', wheel, false);
window.onmousewheel = document.onmousewheel = wheel;
 
                
                $(window)
                                .scroll(positionFooter)
                                .resize(positionFooter)
                });