$(document).ready(function(){
var tabContainers = $('div.tabcontenwrap > div.tabcontent');
if(document.getElementById("customheight"))
{
    custom_height = parseFloat(document.getElementById("customheight").innerHTML);
}
else
{
    custom_height = 970;
}

$('div.product_wrap ul.ptabs a').click(function () {
//alert(custom_height);
tabContainers.hide().filter(this.hash).show();
divs = document.getElementById("tabcontainer").getElementsByTagName("div");
if(this.hash == "#whatsnew"||this.hash == "#comparison")
{
    document.getElementById("tabcontainer").style.height = custom_height + 230 + "px";
    divs[0].style.height = custom_height + 230 + "px";
}
else
{
    if(document.getElementById("tabcontainer").style.height != "")
    {
	document.getElementById("tabcontainer").style.height = custom_height + "px";
	divs[0].style.height = custom_height + "px";
    }
}
$('div.product_wrap ul.ptabs a').removeClass('selected');
$(this).addClass('selected');

return false;
}).filter(':first').click();


var settings2 = {tl: { radius: 10 },tr: { radius: 10 },bl: { radius: 10 },br: { radius: 10 }};
//$('.tabcontenwrap').hide();
obj2curve = document.getElementById('tabcontainer');
curvyCorners(settings2, obj2curve);  

obj3curve = document.getElementById('smallbox');
curvyCorners(settings2, obj3curve);  

obj4curve = document.getElementById('smallbox').getElementsByTagName("h3");
curvyCorners(settings2, obj4curve[0]);  


});
