$(document).ready(function(){
    $(".menu > li > a").not(".open").find("+ ul").hide();
    $(".menu > li > a").click(function(){
        $(this).find("+ ul").slideToggle("fast");
    });
    
    
// rollover function

	$("img.rollover").hover(
function()
{
this.src = this.src.replace("_off","_on");
},
function()
{
this.src = this.src.replace("_on","_off");
}
);

	
//	$("a.single_image").fancybox();
	
	/* Using custom settings */
	
	$("a.inline").fancybox({
		'hideOnContentClick': true
	});

	/* Apply fancybox to multiple items */
	
	$("a.group").fancybox({
		'padding'           : 0,
		'overlayColor' : '#000',
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
        'autoDimensions'	: true,
		'speedIn'		:	400, 
		'speedOut'		:	200, 
        'autoScale'     	: true,
		'cyclic'		:	false,
		'overlayShow'	:	true,
		'overlayOpacity'  :	0.7,
		'titleShow'  	: true,
		'titlePosition' 		: 'outside',
		'titleFormat'	:  	null,
		'hideOnOverlayClick' : true,
		'hideOnContentClick'	: true

	});
	$("a.media").fancybox({
		'padding'           : 0,
		'overlayColor' : '#000',
		'transitionIn'	:	'fade',
		'transitionOut'	:	'fade',
        'autoDimensions'	: false,
		'speedIn'		:	400, 
		'speedOut'		:	200, 
        'autoScale'     	: false,
		'cyclic'		:	false,
		'overlayShow'	:	true,
		'overlayOpacity'  :	0.7,
		'titleShow'  	: true,
		'titlePosition' 		: 'outside',
		'titleFormat'	:  	null,
		'hideOnOverlayClick' : true,
		'hideOnContentClick'	: true

	});
	

        $("a.fancy_swf").fancybox({
	    'padding'           : 10,
		'overlayColor' : '#000',
		'overlayOpacity'  :	0.7,
		'width'	: 1000,
		'height'	: 500,
        'autoScale'     	: true,
'autoDimensions'	: true,
        'transitionIn'		: 'none',
		'cyclic'		:	true,
		'transitionOut'		: 'none',
		'swf'			: {
			   	 'wmode'		: 'opaque'
			},
		'titleShow'  	: true,
		'titlePosition' 		: 'outside',
		'titleFormat'	:  	null,
		'hideOnOverlayClick' : true,
		'hideOnContentClick'	: false
	
	});
 $("a.iframe").fancybox({
 	'width'		: '80%',
		'overlayColor' : '#000',
		'overlayOpacity'  :	0.7,
		'height'		: '80%',
		'margin' : 0,
		'padding'  :  5,
		'hideOnOverlayClick' : true,
		'hideOnContentClick'	: false,
		'cyclic'		:	true
		
		
	
 });
  $("#fejs").css({opacity: 0}).animate({opacity: 1});
		$("#fejsframe").hide();
	
			 $("#fejs").mouseenter(function(){ 
			 $("#fejsframe").css({display: 'block', opacity: 0}).animate({opacity: 1});
			 });
			 $("#fejs").mouseleave(function(){ 
			 $("#fejsframe").hide();
			 });
});
/*
 function detectBrowser() 
		{ 
    	var BO = new Object(); 
    	BO["ie"]        = false  
    	BO["ie4"]       = BO["ie"] && (document.getElementById == null); 
    	BO["ie5"]       = BO["ie"] && (document.namespaces == null) && (!BO["ie4"]); 
    	BO["ie6"]       = BO["ie"] && (document.implementation != null) && (document.implementation.hasFeature != null); 
    	BO["ie55"]      = BO["ie"] && (document.namespaces != null) && (!BO["ie6"]); 
    //	@cc_on
    //	BO["ie7"]       = @_jscript_version == '5.7';
    //	@ 
    	BO["ns4"]       = !BO["ie"] &&  (document.layers != null) &&  (window.confirm != null) && (document.createElement == null); 
    	BO["opera"]     = (self.opera != null); 
    	BO["gecko"]     = (document.getBoxObjectFor != null); 
    	BO["khtml"]     = (navigator.vendor == "KDE"); 
    	BO["konq"]      = ((navigator.vendor == 'KDE') || (document.childNodes) && (!document.all) && (!navigator.taintEnabled)); 
    	BO["safari"]    = (document.childNodes) && (!document.all) && (!navigator.taintEnabled) && (!navigator.accentColorName); 
    	BO["safari1.2"] = (parseInt(0).toFixed == null) && (BO["safari"] && (window.XMLHttpRequest != null)); 
    	BO["safari2.0"] = (parseInt(0).toFixed != null) && BO["safari"] && !BO["safari1.2"]; 
    	BO["safari1.1"] = BO["safari"] && !BO["safari1.2"] && !BO["safari2.0"]; 
			
    	return BO; 
		} 
BO = detectBrowser();
 */

