﻿function log(o){
	if(window.console){
		console.log(o)
	}
}
$(function(){
	// Tabs
	$('#tabs').tabs();
    //$('.rounded').corners("3px");
    //$('.rounded-bottom').corners("bottom");
    //$('.rounded-top').corners("top");
    
    $(".mod").each(function (){
    	var that = this;
    	$(["tl","tr","bl","br"]).each(function (i){
			var style = "";
			if($.browser.msie && $.browser.version == "6.0"){
				if(i==1 || i == 3){
					style = " style='left:" + ($(that).width()+parseInt($(that).css("padding-left"))+parseInt($(that).css("padding-right"))-4) + "px'";
				}
			}
			$(that).append("<div class='corner-img-"+this+"'"+style+"></div>")
		});
	});
	$(".rightCol .mod-orange .framed").each(function (){
		$(this).append("<img src='/images/praevention/frame_dotted_orange_bottom.gif' alt='' class='frame-bottom' />");
	});
	$(".rightCol .mod-grey .framed").each(function (){
		$(this).append("<img src='/images/praevention/frame_dotted_grey_bottom.gif' alt='' class='frame-bottom' />");
	});
	$(".rightCol .mod-mint .framed").each(function (){
		$(this).append("<img src='/images/praevention/frame_dotted_mint_bottom.gif' alt='' class='frame-bottom' />");
	});
	$(".main .frame-top").each(function (){
		$(this).append("<img src='/images/praevention/wizard_body_frame_bottom.gif' alt='' class='frame-bottom' />");
	});
});

