﻿		var ua = navigator.userAgent.toLowerCase();
		var isOpera = (ua.indexOf('opera')  > -1);
		var isIE = (!isOpera && ua.indexOf('msie') > -1);
			 
		function getDocumentHeight() {
			  return Math.max(document.compatMode != 'CSS1Compat' ? document.body.scrollHeight : document.documentElement.scrollHeight, getViewportHeight());
		}
			 
		function getViewportHeight() {
		  return ((document.compatMode || isIE) && !isOpera) ? (document.compatMode == 'CSS1Compat') ? document.documentElement.clientHeight : document.body.clientHeight : (document.parentWindow || document.defaultView).innerHeight;
		}
		function getClientHeight(){
		return (window.innerHeight ? window.innerHeight : (document.documentElement.clientHeight ? document.documentElement.clientHeight : document.body.offsetHeight));
		}

jQuery(document).ready(function(){
	jQuery('.img_zoom').fancyzoom();

	
	wid = jQuery(".content").height();
	if (wid < getClientHeight()) {jQuery(".content").css('height',(getClientHeight()-46));}	
	
	jQuery(".accordion").click
	(
		function()
			{
				if (jQuery(this).next(".accordion_s").css("display") == "none")
				{
					jQuery(this).next(".accordion_s").slideDown(300);
				}
				else
				{
					jQuery(this).next(".accordion_s").slideUp(300);
				}
			}
	);		
	/*jQuery(".menu_text").hover(
		function(){
			jQuery(this).css('background',"#e77843");
		},
		function(){
			jQuery(this).css('background',"");
		});*/
	/*jQuery(".menu_text_r").hover(
		function(){
			jQuery(this).css('background',"#e77843");
		},
		function(){
			jQuery(this).css('background',"");
		});*/
})

