
/**
 * adds actions to container headers of collapsible containers
 */
$(document).ready(function() {
	// add click handler to header
	objContainerHeader = $(".jh-c_container_collapsible > .jh-c_container_header");
	objContainerHeader.bind('click', function (event) {
		objContainerContent = $(this).parent().children(".jh-c_container_content:first");
		objContainerContent.slideToggle("fast");
		$(this).parent().toggleClass("jh-c_container_collapsed");
		return true;
	});
	
	// hide all boxes, that shall be hidden per default (defined by backend ->
	// items should have additional class .jh-c_container_collapsed)
	// not using "click"-event here, because that whould toggle (i.e. "remove")
	// current state of "jh-c_container_collapsed"
	$(".jh-c_container_collapsible.jh-c_container_collapsed > .jh-c_container_content").hide();
	
	scrollerButtonsVarianten.thisObject = 'jh-c_product_variant_mainframe';
	var variantenScr = new variantenScrollerContainer('jh-c_product_variant_mainframe');
	variantenScr.init(false,false,'jh-c_product_variant_mainframe');
});



/**
 * @className varVariant
 * @classDescription Literate Object 
 * 
 * @param none	-> needs prepaired HTML see templates
 * 
 * @description gemeinsame Variablen für den beide Varianten scrollers. 
 * 				diese werden an einem asciosative Array gehängt so das
 * 				das Packet an Variable bei x beliebige Varianten scrollers
 *  			vorhanden sein kann.
 *  
 */
var varVariant = {
		vHeight : 140,
		button_more_locked : false,
		button_up_down_locked : false, 
		varianten_white_space_top : 155,
		extra_height_ie6 : 0,
		ie6_small_box_Extra: 0,
		more_products_margin_right : 5,
		isAjax : false,
		MoreProductsId : 'jh-c_product_more',
		objName : 'jh-c_product_variant_mainframe',
		init : function(objName)
		{
			if($.browser.msie && $.browser.version=="6.0") 
			{
				this.ie6_small_box_Extra = 25;
				this.varianten_white_space_top = 125;
				this.extra_height_ie6 = 60;
				this.more_products_margin_right = 3;
			}
			this.objName = objName ? objName :'jh-c_product_variant_mainframe';
		}
		
};
$(document).ready(function() {
// initierung damit auch der IE6 sein abweichende variablen bekommt
varVariant.init();
// array
});


