
function openwin_text(url , w , h )
{
	window.open(url,"","toolbar=no,location=no,directories=no,resizable=no,scrollbars=yes,width="+w+",height="+h);
}
function openwin_win(url)
{
	window.open(url,"","toolbar=yes,location=yes,directories=no,resizable=yes,scrollbars=yes");
}

function openwin(img , w , h , title )
{
	var hWnd;
	if(hWnd!=null)
	hWnd.close();
	hWnd=window.open(img,"","scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,width=" + w + ",height=" + h );
	hWnd.document.open();
	hWnd.document.write("<html>");
	hWnd.document.write("<head>");
	hWnd.document.write("<title>" + title + "</title>");
	hWnd.document.write("</head>");
	hWnd.document.write("<body bgcolor=#ffffff bottommargin=0 leftmargin=0 marginheight=0 marginwidth=0 rightmargin=0 topmargin=0 style='border:0px;'>");
	hWnd.document.write("<table align=center width=100% height=100% cellspacing=0 cellpadding=0 border=0>");
	hWnd.document.write("<tr><td><img src='"+img+"' border=0></td></tr>");
	hWnd.document.write("</table></body></html>");
	hWnd.document.close();
}

function openwin1(img , w , h , title )
{
	var hWnd;
	if(hWnd!=null)
	hWnd.close();
	hWnd=window.open(img,"","scrollbars=yes,toolbar=no,location=no,directories=no,resizable=no,width=" + w + ",height=" + h );
	hWnd.document.open();
	hWnd.document.write("<html>");
	hWnd.document.write("<head>");
	hWnd.document.write("<title>" + title + "</title>");
	hWnd.document.write("</head>");
	hWnd.document.write("<body bgcolor=#ffffff bottommargin=0 leftmargin=0 marginheight=0 marginwidth=0 rightmargin=0 topmargin=0 style='border:0px;'>");
	hWnd.document.write("<table align=center width=100% height=100% cellspacing=0 cellpadding=0 border=0>");
	hWnd.document.write("<tr><td><img src='"+img+"' border=0></td></tr>");
	hWnd.document.write("</table></body></html>");
	hWnd.document.close();
}

function pics( img , url ) {
		document.images[img].src = url;
}

function redirect( uri ) {
	document.location.href=uri;
}


function IEPngFix( img , width , height , style ) {

	var code = '<IMG SRC="'+ img +'" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER=0 STYLE="' + style + '">';
	if( navigator.userAgent.indexOf("Opera") > 1 )
		document.write(code);
	else
		if( navigator.userAgent.indexOf("MSIE 6") > 1 )
			document.write('<IMG SRC="/img/emp.gif" WIDTH="' + width + '" HEIGHT="' + height + '" BORDER="0" ALT="" STYLE="filter: progid:DXImageTransform.Microsoft.AlphaImageLoader (src=' + img + ' , sizingMethod=scale ); '+ style +'">');
		else
			if(navigator.userAgent.indexOf("MSIE 5") != -1)
				document.write(code);
			else
				document.write(code);
				
}


function ShowDiv( id ) {
	var layer = document.getElementById(id);
		layer.style.display = "block"; 
}

function HideDiv( id ) {
	var layer = document.getElementById(id);
		layer.style.display = "none"; 
}

function show( id ) {
	var layer = document.getElementById(id);
	if( layer.style.display == "none" )
		layer.style.display = "block"; 
	else
		layer.style.display = "none"; 
}

function colorChange( id , bgColor ) {
	var el = document.getElementById( id );
	el.style.backgroundColor = bgColor;
}

function entry( target, selected, restored)
{
	eval(target + ".location='" + selected.options[selected.selectedIndex].value + "'");
	if ( restored ) selected.selectedIndex=0;
}

function chBg( id , bgcolor ) {
	var el = document.getElementById(id);
	el.style.backgroundColor = bgcolor;
}

function setCur( id , flag ) {
	var el = document.getElementById(id);
	if( flag ) {
		el.style.cursor = 'pointer';
		el.style.cursor = 'hand';
	}
	else
		el.style.cursor = 'pointer';
}

function getLocation( url ) {
	document.location.href = url;
}


function close_rich() {
	var el = document.getElementById( "richmedia" );
	el.style.display = "none" ;
}

jQuery(document).ready(function() {
	$("#various5").fancybox({
		'width'				: 660,
		'height'			: 405,
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe'
	});
});
