//scroll
/*
Event.observe(window, 'load', function() {
	$$('a[href^=#]:not([href=#])').each(function(element) {
		element.observe('click', function(event) {
		new Effect.ScrollTo(this.hash.substr(1));
		Event.stop(event);
		}.bindAsEventListener(element))
	})
})
*/

//subwin
function SubWin(URL,Name,Scroll,Width,Height){
	var Option =""
		+"left=" +0
		+"screenX=" +0
		+",top=" +0
		+",screenY=" +0
		+",toolbar=" +0
		+",location=" +0
		+",status=" +0
		+",menubar=" +0
		+",scrollbars=" +Scroll
		+",resizable=" +1
		+",width=" +Width
		+",height=" +Height;

win=window.open(URL, Name, Option);
win.focus();
}

//curvycorners

window.onload = function()
{
    /*
    The new 'validTags' setting is optional and allows
    you to specify other HTML elements that curvyCorners
    can attempt to round.

    The value is comma separated list of html elements
    in lowercase.

    validTags: ["div", "form"]

    The above example would enable curvyCorners on FORM elements.
    */
    settings = {
        tl: { radius: 5 },
        tr: { radius: 5 },
        bl: { radius: 5 },
        br: { radius: 5 },
        antiAlias: true,
        autoPad: true,
        validTags: ["div","h3","h4"]
    }

    /*
    Usage:

    newCornersObj = new curvyCorners(settingsObj, classNameStr);
    newCornersObj = new curvyCorners(settingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
    */
    var isMSIE = /*@cc_on!@*/false;
	if (isMSIE) {
	    var myBoxObject = new curvyCorners(settings, "radius");
    		myBoxObject.applyCornersToAll();
    	}
}

