


$(document).ready(function(){ 
	
	$('#pause').click(function(event) {
		event.preventDefault();

		$('#slideshow_mainss_TopLeft').cycle('pause');
	});
	$('#play').click(function(event) { 
		event.preventDefault();
		$('#slideshow_mainss_TopLeft').cycle('resume', true); 
	});
	$('#listen a').click(function(event) { 
		event.preventDefault();
		custNewWindow(event);
	});
	
	

function custNewWindow(e){
var win = null;
	var target = (e.target || e.srcElement);
	
	var resourceId= target.getAttribute('id');
	var resourceType= target.getAttribute('type');
	var h=360;
	var w=600;
	
	if(!resourceType)
		resourceType="0";
	
	//alert(resourceId);
	
	
	
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
	settings ='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=false,resizable';
	
	e = (e || window.event);
		 
		if (e.preventDefault)
			e.preventDefault();
		else
			e.returnValue = false;
	
		
	win = window.open("522705.ihtml?FileID="+resourceId+"&type="+resourceType,null,settings);
	
}
}); 
