/**
 * FileName:settings.js
 * @author
 */

$(function(){
	uaRO('rollover');
	uaScroll();
	$('.block-search-01 input').setDefaultValue({
		def:'#999',
		foc:'#999'
	});
	$('.block-search-01 .submit').jsSubmit();
	$('.block-utility-01 input').setDefaultValue({
		def:'#999',
		foc:'#999'
	});
/*	$('.block-utility-01 .submit a').jsSubmit(); */
	$('#area-sub-01 .block-navigation-03 li:not(.new,.last_one,.blog) a').menuOpener({
		speed: 6,
		interval: 10,
		style:{'position':'static'},
		openTrigger:'#area-sub-01 .block-navigation-03 li.current > a'
	});
	$('#area-sub-01 .block-navigation-03 > ul > li > a').bind("click", function(){
		if ($('#area-sub-01 .block-navigation-03 li').hasClass("current") ) {
			$('#area-sub-01 .block-navigation-03 li.current').children().children().attr("src",
					uaRollover.strReplace($('#area-sub-01 .block-navigation-03 li.current').children().children().attr("src"), "-cur.gif", ".gif"));
			$('#area-sub-01 .block-navigation-03 li.current').removeClass("current");
		}
		 $(this).parent().addClass("current");
		 $(this).children().attr("src", uaRollover.strReplace($(this).children().attr("src"), "-ovr.gif", "-cur.gif"));
	});
});


function winopen(uri, name, prop){
	 var extra = new Array();
	 if(prop){
	 (prop.left)?extra[extra.length] = "left="+prop.left:"";
	 (prop.top)?extra[extra.length] = "top="+prop.top:"";
	 (prop.height)?extra[extra.length] = "height="+prop.height:"";
	 (prop.width)?extra[extra.length] = "width="+prop.width:"";

	 extra[extra.length] = (prop.channelmode)?"channelmode="+prop.channelmode:"channelmode=no";
	 extra[extra.length] = (prop.directories)?"directories="+prop.directories:"directories=no";
	 extra[extra.length] = (prop.fullscreen)?"fullscreen="+prop.fullscreen:"fullscreen=no";
	 extra[extra.length] = (prop.location)?"location="+prop.location:"location=no";
	 extra[extra.length] = (prop.menubar)?"menubar="+prop.menubar:"menubar=no";
	 extra[extra.length] = (prop.resizable)?"resizable="+prop.resizable:"resizable=yes";
	 extra[extra.length] = (prop.scrollbars)?"scrollbars="+prop.scrollbars:"scrollbars=yes";
	 extra[extra.length] = (prop.status)?"status="+prop.status:"status=no";
	 extra[extra.length] = (prop.titlebar)?"titlebar="+prop.titlebar:"titlebar=no";
	 extra[extra.length] = (prop.toolbar)?"toolbar="+prop.toolbar:"toolbar=no";
	 }
	 extra = extra.join(",");

	 var newwin=window.open(uri,name,extra);
	 newwin.focus();
}


