function showVideoPhoto(photoUrl) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;
	
	window.open("showIconVideo.php?iconUrl="+photoUrl,"photoURL","width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
}

function showPicture(galleryid, photoType,categoryid,linkid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	//alert(linkid);
	winWidth = 800;
	winHeight = 600;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("../php/showPictureFrame.php?linkid="+ linkid +"&galleryid=" + galleryid + "&photoType=" + photoType + "&category="+categoryid, "picture", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}
function showClip(galleryid,linkid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	//alert(linkid);
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("showClipFrame.php?linkid="+ linkid +"&galleryid=" + galleryid, "picture", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}


function showInterview(newsid) {
	sWidth = screen.availWidth;
	sHeight = screen.availHeight;
	
	winWidth = 600;
	winHeight = 500;
	
	sLeft = (sWidth - winWidth) / 2;
	sTop = (sHeight - winHeight) / 2;

	window.open("showInterviewFrame.php?newsid=" + newsid, "sudhirFullInterview", "width=" + winWidth + ",height=" + winHeight + ",top=" + sTop + ",left=" + sLeft + ",toolbar=0,menubar=0,status=0,scrollbars=1,resizable=0");
	return;
}

function closeWindow() {
	parent.window.opener.window.focus();
	parent.window.close();
}
/*
function printWindow() {
	parent.mainFrame.focus();
	window.print(parent.mainFrame);
}
*/
//-------new one-----
function printWindow() {
	//parent.window.focus();
	window.print();
}
//---------------
