$(function(){
	if($('img.bgmaximage') != null){
		$('img.bgmaximage').maxImage({
			isBackground: true,
			verticalAlign: 'left',
			verticalOffset: 0,
			horizontalOffset: 0,
			overflow: 'auto'
		});
	 }
});

$(function(){
	if($('a') != null){
		//$("a").fadeTo(0,1.0);
		$("a").hover(function(){
			$(this).animate({'opacity' : '0.6'}, 0);
		},
    	function(){
        	$(this).animate({'opacity' : '1'}, 250);
    	});
	}
});

/*unction switchOrientation(){
	var orientation = window.orientation;
	if(orientation == 0){
		$("body").addClass("portrait");
		$("body").removeClass("landscape");
	}else{
		$("body").addClass("landscape");
		$("body").removeClass("portrait");
	}
}

$(function(){
	switchOrientation();
	var agent = navigator.userAgent;
	if(agent.search(/iPhone/) != -1){
		window.onorientationchange = switchOrientation;
	}else{
		window.onresize = switchOrientation;
	}
});*/
