document.write('<style>h1,h2 {visibility:hidden; letter-spacing:-1px; } </style>');
$(document)
		.ready(function() {
		$(".button,.button2,.button3").hover(function(){
			var par = $(this).parents(".block-multiply:first")
			if(par.html() != null){
			par.find(".button,.button2,.button3").addClass("button-hover");			
			}else{
				$(this).addClass("button-hover");	
			}
		},
		function(){
			var par = $(this).parents(".block-multiply:first")
			if(par.html() != null){
				par.find(".button,.button2,.button3").removeClass("button-hover");
				}else{
					$(this).removeClass("button-hover");	
				}
		})
		
		$(".button-click").click(function(){
			location.href=$(this).find("a").attr("href");
		}).css({cursor:"pointer"});
		
		$(".video").flash({
            src: "uploads/files/flash/video/player_lite.swf",       
            height: "358",
            width: "555",
            wmode: "transparent",
            bgcolor: "#ffffff",
            scale: "noscale",
            allowFullscree: "true",
            allowScriptAccess: "sameDomain",
            flashvars: {		
				// These following lines allows you to customize the main parameters
				
				myVideoPath:$(".video").children("a").attr("href"), // The video path (absolute or relative)
				autoStart: "false", // Auto Play (true or false)
				autoLoop: "false", // Auto Loop (true or false)
				soundOff: "false", // Sound Off (true or false)
				player_width: "555", // The width of the player in pixels (it must be the same than SWFObject)
				player_height: "358", // The height of the player in pixels (it must be the same than SWFObject)				
				
				player_bg_color: "0xffffff", // player background
				panel_bg_color: "0xe3e2e2", // panel background
				bt_play_color: "0x212121", // symbol play
				bt_pause_color: "0x212121", // symbol pause
				progress_bar_cursor_color: "0x212121", // progress cursor
				progress_bar_fluid_color: "0x212121", // progress fluid
				progress_bar_buffer_color: "0xe3e2e2", // progress buffer
				progress_bar_bg_color: "0xffffff", // progress background
				bt_volume_on_color: "0x212121", // speaker in state on
				bt_volume_wave_color: "0x212121", // the 3 vertical lines when the speaker is in state on
				bt_volume_off_color: "0x212121", // speaker in state off
				bt_volume_cross_color: "0xff0000" // the cross when the speaker is in state off
			}            


});
		$(".audio").flash({
			src: "uploads/files/flash/video/player_lite.swf",       
			height: "60",
			width: "555",
			wmode: "transparent",
			bgcolor: "#ffffff",
			scale: "noscale",
			allowFullscree: "true",
			allowScriptAccess: "sameDomain",
			flashvars: {		
			// These following lines allows you to customize the main parameters
			
			myVideoPath:$(".audio").children("a").attr("href"), // The video path (absolute or relative)
			autoStart: "false", // Auto Play (true or false)
			autoLoop: "false", // Auto Loop (true or false)
			soundOff: "false", // Sound Off (true or false)
			player_width: "555", // The width of the player in pixels (it must be the same than SWFObject)
			player_height: "60", // The height of the player in pixels (it must be the same than SWFObject)				
			
			player_bg_color: "0xffffff", // player background
			panel_bg_color: "0xe3e2e2", // panel background
			bt_play_color: "0x212121", // symbol play
			bt_pause_color: "0x212121", // symbol pause
			progress_bar_cursor_color: "0x212121", // progress cursor
			progress_bar_fluid_color: "0x212121", // progress fluid
			progress_bar_buffer_color: "0xe3e2e2", // progress buffer
			progress_bar_bg_color: "0xffffff", // progress background
			bt_volume_on_color: "0x212121", // speaker in state on
			bt_volume_wave_color: "0x212121", // the 3 vertical lines when the speaker is in state on
			bt_volume_off_color: "0x212121", // speaker in state off
			bt_volume_cross_color: "0xff0000" // the cross when the speaker is in state off
		}            
		
		});

});
 
$(window).load(function() { 
 
$('.imagecycle  a').cycle({timeout: 0});
    $('.imagecycle a').hover( function(){
    	if($(this).children("img:first").css("opacity")==1) {	
    		$(this).cycle({timeout: 100,speed:400});
    	}else{ 	
    		$(this).cycle('resume');
    	}
    },
	 function(){
	 	$(this).cycle('pause');
	})
	
	$('.gallery ul').cycle({
        fx:     'fade',
        prev:   '#prev',
        next:   '#next',
        speed: 500,
        timeout: 0
   }); 
    
    $(".gallery ul li a").click(function() {
		$("#next").click();
		return false;
 })
 

 $('a.zoom').zoomimage({
	 controls: false,
	 centered: true

	 
 });

    
    $(".content-left-case").css({minHeight:$('.content-right').height()-30})
});

