var dpiOld = screen.deviceXDPI;
checkDPI = function() {
		
		var dpi = screen.deviceXDPI;
		if (jQuery.browser.msie) {
			if (dpi != 96 && dpiOld != dpi) 
				window.location.reload();
			else if(dpi == 96 && dpiOld != dpi)
			{
				dpiOld = dpi;
				jQuery('img[src$=.png]').each(function() {
	      		     this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src="+this.src+",sizingMethod='scale')";
	            });
			}
		}
}

setInterval('checkDPI()', 1000);

function clickWho() {
	var dpi = screen.deviceXDPI;
	if (jQuery.browser.msie && dpi != 96)
	{	
			
			if( jQuery('#content1').is(':visible') ) {
			 	jQuery('#content1').hide();
				jQuery('#content0').show();
		    }
	
		 	if( jQuery('#content2').is(':visible') ) {
			 	jQuery('#content2').hide();
				jQuery('#content0').show();
		    }

			if( jQuery('#content3').is(':visible') ) {
		    	
				jQuery('#content3').hide();
				jQuery('#content0').show();
		    }
		    
		    if( jQuery('#content4').is(':visible') ) {
		    	
		    	jQuery('#content4').hide();
				jQuery('#content0').show();
		    }
		    
		    if( jQuery('#content5').is(':visible') ) {
		    	
		    	jQuery('#content5').hide();
				jQuery('#content0').show();
		    }
		    
		    
		    if( jQuery('#content6').is(':visible') ) {
		    	
		    	jQuery('#content6').hide();
				jQuery('#content0').show();
		    }
		    
		    if( jQuery('#content7').is(':visible') ) {
		    	
		    	jQuery('#content7').hide();
				jQuery('#content0').show();
		    }
	}
	else
	{
		
	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
    	});
    }
	
    if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
    	});
    }

	if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
    	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
     	});
    }
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content0').fadeIn();	
     	});
    }
	}
    
}





function clickServices() {
	var dpi = screen.deviceXDPI;
	if (jQuery.browser.msie && dpi != 96)
	{	
	
			if( jQuery('#content0').is(':visible') ) {
			 	jQuery('#content0').hide();
				jQuery('#content1').show();
		    }
			
			if( jQuery('#content2').is(':visible') ) {
			 	jQuery('#content2').hide();
				jQuery('#content1').show();
		    }

			if( jQuery('#content3').is(':visible') ) {
		    	
				jQuery('#content3').hide();
				jQuery('#content1').show();
		    }
		    
		    if( jQuery('#content4').is(':visible') ) {
		    	
		    	jQuery('#content4').hide();
				jQuery('#content1').show();
		    }
		    
		    if( jQuery('#content5').is(':visible') ) {
		    	
		    	jQuery('#content5').hide();
				jQuery('#content1').show();
		    }
		    
		    
		    if( jQuery('#content6').is(':visible') ) {
		    	
		    	jQuery('#content6').hide();
				jQuery('#content1').show();
		    }
		    
		    if( jQuery('#content7').is(':visible') ) {
		    	
		    	jQuery('#content7').hide();
				jQuery('#content1').show();
		    }
	}
	else
	{
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
    	});
    }


    if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
    	});
    }

	if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
    	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
     	});
    }
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content1').fadeIn();	
     	});
    }
	}
    
}

function clickGallery() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	
		if( jQuery('#content0').is(':visible') ) {
	    	
	    	jQuery('#content0').hide();
			jQuery('#content2').show();
	    }
		
		if( jQuery('#content1').is(':visible') ) {
	    	
	    	jQuery('#content1').hide();
			jQuery('#content2').show();
	    }

		if( jQuery('#content3').is(':visible') ) {
	    	
	    	
	       	jQuery('#content3').hide();
			jQuery('#content2').show();
	    }
	    
	    if( jQuery('#content4').is(':visible') ) {
	      
	    	jQuery('#content4').hide();
			jQuery('#content2').show();
	    }
	    
	    if( jQuery('#content5').is(':visible') ) {
	    	
	       	jQuery('#content5').hide();
			jQuery('#content2').show();
	    }
	    
	    
	    if( jQuery('#content6').is(':visible') ) {
	    	
	       	jQuery('#content6').hide();
			jQuery('#content2').show();
	    }
	    
	    if( jQuery('#content7').is(':visible') ) {
	    	
	       	jQuery('#content7').hide();
			jQuery('#content2').show();
	    }
	}
	else
	{
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
    	});
    }
	
	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
    	});
    }

	if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
    	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
     	});
    }
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content2').fadeIn();	
     	});
    }
	}
  
}

function clickClients() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	
			 if( jQuery('#content0').is(':visible') ) {
		    	
			 	jQuery('#content0').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		    }


			 if( jQuery('#content1').is(':visible') ) {
		    	
			 	jQuery('#content1').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		    }

			if( jQuery('#content2').is(':visible') ) {
		    	
				jQuery('#content2').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
				
		    }
		    
		    if( jQuery('#content4').is(':visible') ) {
		    	
		    	jQuery('#content4').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
				
		    }
		    
		    if( jQuery('#content5').is(':visible') ) {
		    	
		    	jQuery('#content5').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		    }
			
		    
		    if( jQuery('#content6').is(':visible') ) {
		    	
		    	jQuery('#content6').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		    }
		    
		    if( jQuery('#content7').is(':visible') ) {
		    	
		    	jQuery('#content7').hide();
				jQuery('#content3').show();
				jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		    }
	}
	else
	{
		
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		});
    }
	
    if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
		});
    }

	if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content3').fadeIn();	
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
    	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
     	});
    }
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content3').fadeIn();
			jQuery('#divClients').jScrollPane({scrollbarWidth:5, animateTo:true});
     	});
    }
	}

}
function clickCasting() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	
	
		if( jQuery('#content0').is(':visible') ) {
	    	
			jQuery('#content0').hide();
			jQuery('#content4').show();
			
	    }
		
		if( jQuery('#content1').is(':visible') ) {
	    	
			jQuery('#content1').hide();
			jQuery('#content4').show();
			
	    }

		if( jQuery('#content2').is(':visible') ) {
	    	
			jQuery('#content2').hide();
			jQuery('#content4').show();
			
	    }
	    
	    if( jQuery('#content3').is(':visible') ) {
	    	
	    	jQuery('#content3').hide();
			jQuery('#content4').show();
			
	    }
	    
	    if( jQuery('#content5').is(':visible') ) {
	    	
	    	jQuery('#content5').hide();
			jQuery('#content4').show();
			
	    }
	    
	    
	    if( jQuery('#content6').is(':visible') ) {
	    	
	    	jQuery('#content6').hide();
			jQuery('#content4').show();
	    }
	    
	    if( jQuery('#content7').is(':visible') ) {
	    	jQuery('#content7').hide();
			jQuery('#content4').show();
	    }
	}
	else
	{
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
    	});
    }
	
 	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
    	});
    }

	if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
    	});
    }
    
    if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
     	});
    }
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content4').fadeIn();	
     	});
    }
	}
}


function clickBook() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	

		if( jQuery('#content0').is(':visible') ) {
	    	
	    	jQuery('#content0').hide();
			jQuery('#content5').show();
	    }
		
		if( jQuery('#content1').is(':visible') ) {
	    	
	    	jQuery('#content1').hide();
			jQuery('#content5').show();
	    }

		if( jQuery('#content2').is(':visible') ) {
	    	
			jQuery('#content2').hide();
			jQuery('#content5').show();
	    }
	    
	    if( jQuery('#content3').is(':visible') ) {
	    	
	    	jQuery('#content3').hide();
			jQuery('#content5').show();
	    }
	    
	    if( jQuery('#content4').is(':visible') ) {
	    	
	    	jQuery('#content4').hide();
			jQuery('#content5').show();
	    }
	    
	    
	    if( jQuery('#content6').is(':visible') ) {
	    	
	    	jQuery('#content6').hide();
			jQuery('#content5').show();
	    }
	    
	    if( jQuery('#content7').is(':visible') ) {
	    	
	    	jQuery('#content7').hide();
			jQuery('#content5').show();
	    }
	}
	else
	{
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
    	});
    }
	
 	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
    	});
    }

	if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
    	});
    }
    
    if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
     	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content5').fadeIn();	
     	});
    }
    
	}
}

function clickArchive() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	
		
		if( jQuery('#content0').is(':visible') ) {
	    	
			jQuery('#content0').hide();
			jQuery('#content6').show();
	    }
		
		if( jQuery('#content1').is(':visible') ) {
	    	
			jQuery('#content1').hide();
			jQuery('#content6').show();
	    }

		if( jQuery('#content2').is(':visible') ) {
	    	
			jQuery('#content2').hide();
			jQuery('#content6').show();
	    }
	    
	    if( jQuery('#content3').is(':visible') ) {
	    	
	    	jQuery('#content3').hide();
			jQuery('#content6').show();
	    }
	    
	    if( jQuery('#content4').is(':visible') ) {
	    	
	    	jQuery('#content4').hide();
			jQuery('#content6').show();
	    }
	    
	    
	    if( jQuery('#content5').is(':visible') ) {
	    	
	    	jQuery('#content5').hide();
			jQuery('#content6').show();
	    }
	    
	    if( jQuery('#content7').is(':visible') ) {
	    	
	    	jQuery('#content7').hide();
			jQuery('#content6').show();
	    }
	}
	else
	{
	
	
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
    	});
    }


 	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
    	});
    }

	if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
    	});
    }
    
    if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
     	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
     	});
    }
    
    if( jQuery('#content7').is(':visible') ) {
    	
    	jQuery('#content7').fadeOut('', function() {
       		jQuery('#content6').fadeIn();	
     	});
    }
	}
}


function clickContacts() {
	var dpi = screen.deviceXDPI;
	
	if (jQuery.browser.msie && dpi != 96)
	{	

		if( jQuery('#content0').is(':visible') ) {
	    	
			jQuery('#content0').hide();
			jQuery('#content7').show();
	    }


		if( jQuery('#content1').is(':visible') ) {
	    	
			jQuery('#content1').hide();
			jQuery('#content7').show();
	    }

		if( jQuery('#content2').is(':visible') ) {
	    	
	    	jQuery('#content2').hide();
			jQuery('#content7').show();
	    }
	    
	    if( jQuery('#content3').is(':visible') ) {
	    	
	    	jQuery('#content3').hide();
			jQuery('#content7').show();
	    }
	    
	    if( jQuery('#content4').is(':visible') ) {
	    	
	    	jQuery('#content4').hide();
			jQuery('#content7').show();
	    }
	    
	    
	    if( jQuery('#content5').is(':visible') ) {
	    	
	    	jQuery('#content5').hide();
			jQuery('#content7').show();
	    }
	    
	    if( jQuery('#content6').is(':visible') ) {
	    	
	    	jQuery('#content6').hide();
			jQuery('#content7').show();
	    }
	}
	else
	{
		
	if( jQuery('#content0').is(':visible') ) {
    	
    	jQuery('#content0').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
    	});
    }
	
		
 	if( jQuery('#content1').is(':visible') ) {
    	
    	jQuery('#content1').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
    	});
    }

	if( jQuery('#content2').is(':visible') ) {
    	
    	jQuery('#content2').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
    	});
    }
    
    if( jQuery('#content3').is(':visible') ) {
    	
    	jQuery('#content3').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
     	});
    }
    
    if( jQuery('#content4').is(':visible') ) {
    	
    	jQuery('#content4').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
     	});
    }
    
    
    if( jQuery('#content5').is(':visible') ) {
    	
    	jQuery('#content5').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
     	});
    }
    
    if( jQuery('#content6').is(':visible') ) {
    	
    	jQuery('#content6').fadeOut('', function() {
       		jQuery('#content7').fadeIn();	
     	});
    }
    
	}
}