$(function() {
    
	var menuScroller
    

	// scroll
	if($("div.col1 div.scroller").length >0) $("div.col1 div.scroller").peScroll()
    if($("div.col2 div.scroller").length >0) $("div.col2 div.scroller").peScroll()
	
	//IE6 FIX
	if(typeof document.body.style.maxHeight === "undefined") {		
		var minHeight = 580
		var minWidth = 1024
		var ieResizeTimeout = null
		var ieResize = function(){	
			var html = $('div.full, html, body')
			if(html.height()<minHeight)
				html.css('height',minHeight+'px')
			else
				html.css('height','100%')
			if(html.width()<minWidth)
				html.css('width',minWidth+'px')
			else
				html.css('width','100%')
		}
		ieResize()
		$(window).resize(function() {
			if(ieResizeTimeout) clearTimeout(ieResizeTimeout)
			ieResizeTimeout = setTimeout(function(){ieResize()}, 1000)
			})
	}
    
    $('ul.menuLanguage li:not(:first)').hide()
    $('ul.menuLanguage li:first a').click(function(){
        if($('ul.menuLanguage li:not(:first)').is(":visible")){
            $('ul.menuLanguage li:not(:first)').hide('blind')
        }
        else{
            $('ul.menuLanguage li:not(:first)').show('blind')
        }
    })
    
    $('ul.menuLeft li.backArrow a').click(function(e){
        e.preventDefault()
        parent.history.back();
    })

})
