if( typeof dev.hercoupon.elements == "undefined" ) dev.hercoupon.elements = 
{
cssloaded:0,

  featureTestReady: function()
  {
    return ($("validate") && dev.hercoupon.css);
  },

  startView: function()
  {
    var head = document.getElementsByTagName('HEAD')[0]; 
    if(!head) return;
    var csspaths = new Array();

    if(this.featureTestReady())
    {
	dev.hercoupon.cssprofile.init();

	if(browser.ua.indexOf('msie 5.2') == -1)  
	{
  	    for(var i=0,len=arguments.length;i<len;i++)
  	    {
    		var arg = arguments[i];
    		switch(arg)
    		{
    		case "dropdown": 
			if(!dev.hercoupon.cssprofile.features.directchild) csspaths.push("/css/dropdown_help.css");
			dev.hercoupon.ui.register('dropdowns');
			break;

    		case "backcompat": 
			var compatmode = true;
			break;

    		}
  	    }
	}

  	if(!dev.hercoupon.cssprofile.features.after)
  	{
    	    dev.hercoupon.ui.register('markers');	
  	}

  	if(dev.hercoupon.cssprofile.features.stretch)
  	{
    	    csspaths.push("/css/layout/units/compact_ie.css");
  	}

  	if(dev.hercoupon.cssprofile.features.iebox)
  	{
    	    csspaths.push("/css/layout/units/menu_ie.css"); 
    	    if(!compatmode)
    	    {
   		csspaths.push("/css/layout/master_ie.css"); 
    	    }
  	}

  	if(!dev.hercoupon.cssprofile.features.directchild) 
  	{
    	    csspaths.push("/css/layout/modules/globalnav_ie.css");
  	}

    }

    if(!dev.hercoupon.www.is && csspaths.length) 
    {
  	var i = csspaths.length-1;
  	do 
  	{
    	    csspaths[i] = "http://jwang.hercoupon.com"+csspaths[i];
  	}
  	while (i--);
    }
    this.cssloaded = dev.hercoupon.css.attachCssToDOM(csspaths,head);
    return true;
  }

};
