function pic_popup(mylink, windowname, title, width, height, scrollbars)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href; 
	var pic_popup;
	(scrollbars == true) ? pic_popup = window.open('', windowname, 'width='+width+',height='+height+',scrollbars') : pic_popup = window.open('', windowname, 'width='+width+',height='+height);
	pic_popup.document.write('<html><head><title>'+title+'</title></HEAD><body><center><img src="');
	pic_popup.document.write(href);
	pic_popup.document.write('" /></center></body></html>');
	pic_popup.document.close();
	return false;
}

function mov_popup(mylink, windowname)
{
if (! window.focus)return true;
var href;
if (typeof(mylink) == 'string')
href=mylink;
else
href=mylink.href;
//window.open(href, windowname, 'width=450,height=300,scrollbars=no');
var mov_popup = window.open('', windowname, 'width=450,height=300,scrollbars=no');
	mov_popup.document.write('<html><head><title>');
	mov_popup.document.write(windowname);
	mov_popup.document.write('</title> <LINK rel="StyleSheet" href="/agama.css" type="text/css" media="screen, print"><LINK rel="SHORTCUT ICON" href="/favicon.ico"><SCRIPT TYPE="text/javascript">window.focus();</SCRIPT></head><body><br /><p align="center"></p><center><embed src="');
	mov_popup.document.write(href);
	mov_popup.document.write('" width="320" height="200" align="absmiddle"></embed><div align="center" class="verdana_11_19">You can\'t see the clip? Download the<a href="http://www.apple.com/quicktime/download/" onClick="window.open(this.href, \'popupwindow\', \'width=500,height=500,scrollbars,resizable\'); return false;"><strong>Quick Time player</strong></a>!<br />or <a href="http://www.free-codecs.com/QT_Lite_download.htm" onClick="window.open(this.href, \'popupwindow\', \'width=500,height=500,scrollbars,resizable\'); return false;"><strong>Quicktime Lite!</strong></a> </div></center><p></p></body></html>');
	mov_popup.document.close();
	return false;
}

function flv_popup(mylink, windowname)
{
	if (! window.focus)return true;
	var href;
	if (typeof(mylink) == 'string')
	href=mylink;
	else
	href=mylink.href;
	var popup = window.open('','Video_Clip', 'width=450,height=250,scrollbars=0,toolbar=0,menubar=0,titlebar=0,resizable=0,location=0,status=0');
	popup.document.write('<head><title>');
	popup.document.write(windowname);
	popup.document.write('</title> <LINK rel="StyleSheet" href="/agama.css" type="text/css" media="screen, print" /><LINK rel="SHORTCUT ICON" href="/favicon.ico" /><SCRIPT TYPE="text/javascript">window.focus();</SCRIPT></head><br />');
	popup.document.write('<div align="center"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" viewastext="" id="Object1" height="210" width="320"><param name="movie" value="/audio_video/videos/player.swf?src=');
	popup.document.write(mylink);
	popup.document.write('" /><param name="quality" value="high" /><embed src="/audio_video/videos/player.swf?src=');
	popup.document.write(mylink);
	popup.document.write('" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" height="210" width="320"></embed></div></object></center></html>');	
	popup.document.close();
	return false;
}