function displayPage(url, name, width, height, scrollvalue) {
	w = window.open(url, name, 'width='+width+', height='+height+', scrollbars='+scrollvalue+', menubar=no, resizable=0');
	w.moveTo(screen.width/2-width/2, screen.height/2-height/2);
}

function showImg( img_src, img_w, img_h, img_name ) {
	img_w_n = img_w+20;
	img_h_n = img_h+20;
	img_w_o = img_w;
   var popup = window.open('','','width=' + img_w_n + ',height=' + img_h_n + ',resizable=0,scrollbars=no,menubar=no');
   popup.document.open();
   popup.document.write('<html><head><title>'+img_name+'<\/title><\/head>');
   popup.document.write('<body style="margin: 0;padding: 0; position: relative;">');
   popup.document.write('<a href="javascript:window.close();" style="margin: 0 ;border: none; padding: 0;"><img style="margin: 0;border: 10px solid #eeeeee;padding: 0;" src=' + img_src + ' /></a>');
   popup.document.write('<br /><div style="position: absolute; top:10; left: 10; background-color: #ffffff; filter:alpha(opacity=75); opacity:.75; width: '+img_w_o+'; padding: 5px 0; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px;"><p style="margin: 0 5px; padding: 0;">'+img_name+'<\/p><\/div>');
   popup.document.write('<\/body><\/html>');
//   popup.document.focus();
   popup.document.close();
}

$(document).ready(function(){
	$("ul.topnav li.li_1").hover(function() {
		$(this).find("ul.subnav").stop(true, true).slideDown('fast').show();
		
		$(this).hover(function() {
		}, function(){	
			$(this).find("ul.subnav").stop(true, true).slideUp('slow');
		});

		}).hover(function() { 
			$(this).addClass("subhover");
		}, function(){
			$(this).removeClass("subhover");
	});
});

