

var windowOptions = 'resizable=yes,toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=yes';
	var wWith ="800";
	var wHeight="600";
	var windowName="Name";
	$(document).ready(function(){
			/*$('a.thickbox').xpThickbox({
					'ajax_callback' : function(){
						$('a.new-window').click(function(){
							var url = $(this).attr('href');
							var newWindow = window.open(url,windowName,windowOptions+',width=300,height=420');
							newWindow.focus();
							return false;
						});
					}
			});*/
			$('a.new-window-fullsize').click(function(){
				var url = $(this).attr('href');
				var newWindow = window.open(url,windowName,windowOptions+',width=640,height=480');
				newWindow.focus();
				return false;
			});
			
			//$('.image-wrapper').cycle({pause:true});
			$('a.new-window').click(function(){
				var url = $(this).attr('href');
				var newWindow = window.open(url,windowName,windowOptions+',width='+wWith+',height='+wHeight);
				return false;
			});
			try {
				$("#youtube").youtube({
					type: 'users',
					keyword: 'orioncostruzioni',
					callback: 'myFunction'
				});
			}
			catch(ex){}
	});
	
	$(window).load(function(){
		$('#accordion .articles').accordion({header:'div.xt-title-wrapper'/*, clearStyle: true*/, autoHeight: false});
	});
	
	
	
	
    function getVideoId(url)
	{
	   var arrayURL= url.split("=");
	   if (arrayURL)
	    {
		   return arrayURL[1];
		}
	}
    
	
	
	
	
	


