function confirmation(url, message)
{
    if (window.confirm(message)) {
        document.location = url;
    }
}

function $(id)
{
    return document.getElementById(id);
}

function initShadows()
{
	/*
	if ($('contentBox')) {
		height = $('contentBox').offsetHeight;
		$('contentBoxShadow').style.height = height+'px';
		$('contentBoxShadowMiddle').style.height = height-40+'px';
	}
	
	if ($('sideMenu')) {
		height = $('sideMenu').offsetHeight;
		$('sideMenuShadow').style.height = height+'px';
		$('sideMenuShadowMiddle').style.height = height-30+'px';
	}
	*/
	//height = $('productNav').offsetHeight;
	/*
	thisOne = document.getElementById("productNav");
	items = thisOne.getElementsByTagName("a");
	if(items.length-24 > 0){
		
		var current_height = (530 + ((items.length-24)/3)*70);
		$('contentBox').style.height = current_height+'px';
	}else{
		var current_height = 520;
	}
	*/
	//alert(current_height);
	//alert(height);
	current_height = 520;
	if($('#productNav')){
		
	}
	if ($('textContent')) {
		//alert('aaa');
		//height = $('contentBox').offsetHeight;
		height = $('textContent').offsetHeight;
		//alert(height);
		if(height > current_height){
			$('contentBox').style.height = height+60+'px';
		}
	}
	//alert($('.thumb').num());
	//stretchBody(); 
}

function stretchBody()
{ 
	
	if ($('#contentBox')) {
		
		height = $('#contentBox').offsetHeight;
		$('#container').style.height = height+160+'px';
	}
}


