function framebreaker(){
/*	if(top!=self){
		top.location=self.document.location;
	}*/
}

function runnifty(){ //http://pro.html.it/articoli/id_599/idcat_31/pag_4/pag.html
	if(!NiftyCheck())
    return;
    Rounded("div#searchbar","all","#FFF","#00cc11","smooth"); 
    Rounded("div#searchinner","all","#00cc11","#eeffee","smooth");
    Rounded("div#contactbar","all","#FFF","#ffdd00","smooth");
    Rounded("div#contactinner","all","#ffdd00","#ffffdd","smooth");
    Rounded("div#listcont","all","#FFF","#2280DD","smooth");
    Rounded("div#OrderContent","all","#2280DD","#aaddff","smooth");
    Rounded("div#manproductsbar","all","#fff","#999","smooth");
    Rounded("div#maninner","all","#999","#eee","smooth");
    Rounded("div#cablock","tr bl","#fff","#ee2200","smooth");
    Rounded("div#accountadded","tr", "#fff", "#000", "smooth");
    Rounded("div#accountadded","bl", "#fff", "#00bb33", "smooth");
    Rounded("div.confirmbox","tr", "#fff", "#000", "smooth");
    Rounded("div.confirmbox","bl", "#fff", "#00bb33", "smooth");
    Rounded("div#signlink","tr bl","#fff","#ee2200","smooth");
    Rounded("div#prod_images","all","#FFF","#99ccff","smooth");
    Rounded("div#destbar","all","#fff","#80C9FF","smooth");
    Rounded("div#destinner","all","#80C9FF","#eee","smooth");
//    Rounded("div#categorysubs","all","#FFF", "#eee", "smooth");
  //  Rounded("div#csinner","all","#eee","#FFF","smooth");
}
    
function fixheights(){
	//Nifty corners mess up IE layouts when the InsideContent is of a smaller height than the sidebar. This fixes that.
	if(document.getElementById){
		content = document.getElementById('InsideContent');
		sidebar = document.getElementById('InsideSidebar');
		sidebarheight = sidebar.offsetHeight;
		contentheight = content.offsetHeight;
		newheight = sidebarheight + 100;
	
		if(contentheight<newheight){
			content.style.height = parseFloat(newheight) + "px";
		}
	}
}

addEvent(window, 'load', fixheights);
addEvent(window, 'load', runnifty);
addEvent(window, 'load', fixheights);
addEvent(window, 'load', framebreaker);
