$(document).ready(function() {


$('.roundme').cornerz({
      radius: 8  
      });
$('.ZakladkiBox').cornerz({
    radius: 8,
    corners: "br bl"
})

 $('.sa_warning').cornerz({
      radius: 8  
});







 $('.bestdomen .bestdomenpart:first').addClass('bordered')

 $('.nameurl').each(function(i){
	$(this).click(function(){
			  
  $('#domenallinfowrap_cloned').remove();
  $('.bd_tab .name').removeClass('acttd');
  $('.bd_tab .price').removeClass('acttd');
  
  		
		$(this).parent().addClass('acttd')
		$(this).parent().next().addClass('acttd')

		var domenwrap =  $('#domenallinfowrap').clone().attr('id', 'domenallinfowrap_cloned');
		var domenname = $(this).text();
		var domentic = $(this).next().text();
		var domenpr = $(this).next().next().text();
		var domenlifetime = $(this).next().next().next().text();
		var domenregtime = $(this).next().next().next().next().text();
		var domenprice = $(this).parent().next().html();
		var domenorder = $(this).parent().next().next().children().attr("href");
		var domenauction = $(this).next().next().next().next().next().text();
		$(this).next().next().after(domenwrap);
		$('.domenname').html(domenname);
		$('.ticonly').html(domentic);
		$('.pronly').html(domenpr);
		$('.dtlifetime').html(domenlifetime);
		$('.dtregtime').html(domenregtime);
		$('.domenprice_prices').html(domenprice);
		$('.domenorderlink').attr('href', domenorder);
		
		if (domenauction)
			$('.domenauctionLink').attr('href', domenauction).show();
		else
			$('.domenauctionLink').hide();
		
		

		}) 
 })
 

 
 $('.closeonly, .closepic').live('click', function() {
  $('#domenallinfowrap_cloned').remove();
    $('.bd_tab .name').removeClass('acttd');
	$('.bd_tab .price').removeClass('acttd');
});

 



})
