$(document).ready(
	function(){		
		 $(".typography embed").attr({ 
          width: "409",
		  wmode: "opaque",
          height: "331"
        });
		 
		 $(".typography object").attr({ 
		  width: "409",
		  wmode: "opaque",
          height: "331"
        });
		 $(".typography iframe").attr({ 
		  width: "409",
          height: "331"
        });
		
		/* Using custom settings */ 
		$("a.mailfriend").fancybox({ 
			'zoomOpacity' : true,
			'zoomSpeedIn': 300, 
			'zoomSpeedOut': 300, 
			'overlayShow': true,
			'frameWidth': 250,
			'frameHeight': 320,
			'overlayOpacity': 0.75
		}); 
		$("a.copylink").fancybox({ 
			'zoomOpacity' : true,
			'zoomSpeedIn': 300, 
			'zoomSpeedOut': 300, 
			'overlayShow': true,
			'frameWidth': 325,
			'frameHeight': 250,
			'overlayOpacity': 0.75
		}); 
		$("a.iframe").fancybox({ 
			'zoomOpacity' : true,
			'zoomSpeedIn': 300, 
			'zoomSpeedOut': 300, 
			'overlayShow': true,
			'frameWidth': 300,
			'frameHeight': 450,
			'overlayOpacity': 0.75
		}); 
		$("a.popup").fancybox({ 
			'zoomOpacity' : true,
			'zoomSpeedIn': 300, 
			'zoomSpeedOut': 300, 
			'overlayShow': true,
			'frameWidth': 760,
			'frameHeight': 500,
			'overlayOpacity': 0.75
		}).trigger('click'); 
		$("ul.sf-menu").supersubs({ 
            minWidth:    10,   // minimum width of sub-menus in em units 
            maxWidth:    27,   // maximum width of sub-menus in em units 
            extraWidth:  1     // extra width can ensure lines don't sometimes turn over 
                               // due to slight rounding differences and font-family 
        }).superfish();  // call supersubs first, then superfish, so that subs are 
                         // not display:none when measuring. Call before initialising 
                         // containing tabs for same reason. 

//		$("#accord").accordion(
//		{
//			autoHeight: false,
//			collapsible:true,
//			active:false,
//			navigation: true,
//			header: '.accordheader'
//			
//			
//		});
//		
//		$("#accordion").accordion(
//		{
//			autoHeight: false,
//			collapsible:true,
//			active:false,
//			navigation: true,
//			header: '.rightBlockHeader'
//			
//			
//		});

		$(function() {
			$("#accordion").accordion({
				collapsible: true,
				header: 'h3',
				active:false,
				autoHeight: false,
				event: 'click'
			});
		});
		$('#accordion div a').click(function() {
			return true;
		});
		
		$('input[type="text"]').focus(function() {  
           	this.value = '';  
     	});  
	
	}
);
