/*
	Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
	Available via Academic Free License >= 2.1 OR the modified BSD license.
	see: http://dojotoolkit.org/license for details
*/


if(!dojo._hasResource["dojoc.sandbox.rounded.Rounded"]){dojo._hasResource["dojoc.sandbox.rounded.Rounded"]=true;dojo.provide("dojoc.sandbox.rounded.Rounded");dojo.require("dijit._Widget");dojo.require("dijit._Templated");dojo.declare("dojoc.sandbox.rounded.Rounded",[dijit._Widget,dijit._Templated],{templateString:"<div class=\"Rounded\" dojoAttachPoint=\"outerNode\" dojoAttachEvent=\"onmouseover: onMouseOver, onmouseout: onMouseOut, onclick: onClick\">\n\t<div class=\"RoundedContent\" dojoAttachPoint=\"roundedContent\">\n\t\t<div class=\"RoundedTop\" dojoAttachPoint=\"roundedTop\"></div>\n\t\t\t<div dojoAttachPoint=\"contentNode\">\n\t\t\t\t<div dojoAttachPoint=\"containerNode\"></div>\n\t\t\t</div>\n\t\t</div>\n\t\t<div class=\"RoundedBottom\" dojoAttachPoint=\"roundedBottom\"><div dojoAttachPoint=\"roundedBottomDiv\"></div>\n\t</div>\n</div>\n",bgImg:"",bgImgAlt:"",radius:10,postCreate:function(){var _1=this.radius;var _2=dojo.style(this.outerNode,"height");var _3=dojo.style(this.outerNode,"width");if(_2>0){var _4={height:_2-(2*_1)+"px",width:_3-(2*_1)+"px"};var _5={marginLeft:_1+"px",marginBottom:_1+"px",width:_3-_1+"px",height:_2-_1+"px"};}else{var _4={width:_3-(2*_1)+"px"};var _5={marginLeft:_1+"px",marginBottom:_1+"px",width:_3-_1+"px"};}dojo.style(this.contentNode,_4);dojo.style(this.outerNode,_5);var _6=(this.bgImgAlt.length&&dojo.isIE<7);var _7=this[(_6?"bgImgAlt":"bgImg")];var _8=["roundedContent","roundedTop","roundedBottom","roundedBottomDiv"];dojo.forEach(_8,function(_9){var n=this[_9];var _b={backgroundImage:"url("+_7+")"};switch(_9){case _8[0]:dojo.mixin(_b,{paddingTop:_1+"px",paddingRight:_1+"px"});break;case _8[1]:dojo.mixin(_b,{width:_1+"px",marginLeft:-1*_1+"px"});break;case _8[2]:dojo.mixin(_b,{height:_1+"px"});break;case _8[3]:dojo.mixin(_b,{height:_1+"px",width:_1+"px",marginLeft:-1*_1+"px"});break;}dojo.style(n,_b);},this);},setBgImg:function(_c,_d){var _e=(_d.length&&dojo.isIE<7);dojo.forEach(["roundedContent","roundedTop","roundedBottom","roundedBottomDiv"],function(_f){dojo.style(this[_f],"backgroundImage","url("+(_e?_d:_c)+")");},this);},onMouseOver:function(){},onMouseOut:function(){},onClick:function(){}});}
