var isInIFrame = (window.location != window.parent.location) ? true : false;
jQuery(document).ready(function() {
      if (isInIFrame == true) {
		jQuery(".barholder").css("display","none"); 
	
      	jQuery(".barholder2").css("display","none");  


      } else if ( jQuery('body').hasClass('home') ){
	
	
	
	} else {
        jQuery(".blackBar").css("display","block");   
		jQuery(".barholder").css("display","block"); 
		jQuery('.barholder').css('margin-bottom', '0px');
		jQuery('#closeback').css('position', 'relative');
		jQuery('#closeback').css('top', '-50px');
		jQuery('#closeback').css('width', '970px');
		jQuery('#closeback').css('margin-top', '0');
		jQuery('#closeback').css('margin-bottom', '0');
		jQuery('#closeback').css('margin-left', 'auto');
		jQuery('#closeback').css('margin-right', 'auto');
		jQuery('#contentWrapper').css('background', '#FFF');	
		jQuery('#contentWrapper').css('position', 'relative');	
		jQuery('#contentWrapper').css('overflow', 'hidden');			
		jQuery('#blackBar-nav').css('display', 'none');
		jQuery('.whiteBar').css('margin-bottom', '0px');
		jQuery('.whiteBar').css('margin-top', '20px');
		jQuery('body').css('background', '#333');  
		
		   
		// jQuery('a').attr({ target: '_blank'});
		
		
		
		 jQuery('body').click(function () { 
   
	      document.location.href = 'http://www.dreimorgen.com/';
		});
		
		
		
		jQuery('body').hover(function() {
				 jQuery(this).css('cursor','pointer');
				 }, function() {
				 jQuery(this).css('cursor','auto');
				});
				
					jQuery('#posts_content').hover(function() {
							 jQuery('body').css('cursor','auto');
							 }, function() {
							 jQuery('body').css('cursor','pointer');
							});
		
		
		jQuery('#posts_content').click(function () { 
			return false ;
		});
        		jQuery('#contentWrapper').click(function () { 
			return false ;
		});

		
		jQuery('a').click(function () { 
			window.open( $(this).attr('href') );
		});
}	



		//thishref = jQuery(this.href);
      //alert(thishref.length);

      //jQuery("a").fancybox();
 
//jQuery('#viewport').click(function() {
//  alert('Handler for .click() called.');
//});

//jQuery('#viewport').mousedown(function() {
//		alert('Handler for .click() called.');
//});


//jQuery('#viewport').bind('mousedown', function(){
//     alert('Handler for .click() called.');
//    });

//jQuery('*').mousedown(function() {
//		jQuery("body").css("cursor","url(http://version2.dreimorgen.com/wp-content/themes/dreimorgen/images/closedhand.ico)");  
//});

});

